X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fgit-codeowners;a=blobdiff_plain;f=bin%2Fgit-codeowners;h=d565192c139cbdab4874d539c34384418bb0a4f8;hp=e620ea8bb416d02cb08fbae884b35ffbb5647212;hb=25372f260d4e7e1919a9dfec018476321d1df8e3;hpb=67e86f990f2556f12465052911eb7b96a03b8dcc diff --git a/bin/git-codeowners b/bin/git-codeowners index e620ea8..d565192 100755 --- a/bin/git-codeowners +++ b/bin/git-codeowners @@ -42,6 +42,17 @@ Alias: C<-h> You can also use C<--manual> to print the full documentation. +=head2 --color + +Enable colorized output. + +Color is ON by default on terminals; use C<--no-color> to disable. Some environment variables may +also alter the behavior of colorizing output: + +=for :list +* C - Set to disable color (same as C<--no-color>). +* C - Set the number of supportable colors (e.g. 0, 16, 256, 16777216). + =head2 --format Specify the output format to use. See L. @@ -98,7 +109,30 @@ The C<--format> argument can be one of: * C - YAML (requires L) * C - Custom format (see below) -You can specify a custom format using printf-like format sequences. +You can specify a custom format using printf-like format sequences. These are the items that can +substituted: + +=for :list +* C<%F> - Filename +* C<%O> - Owner or owners +* C<%P> - Project +* C<%T> - Pattern +* C<%n> - newline +* C<%t> - tab +* C<%%> - percent sign + +The syntax also allows padding and some filters. Examples: + + git-codeowners show -f ' * %-50F %O' # default for "show" + git-codeowners show -f '%{quote}F,%{quote}O' # ad hoc CSV + git-codeowners patterns -f '--> %{color:0c0}T' # whatever... + +Available filters: + +=for :list +* C - Quote the replacement string. +* C - Colorize the replacement string (if color is ON). +* C - Do not colorize replacement string. =cut