X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=bin%2Fgit-codeowners;h=2c680eb0ff91183dfb1358f1cb368da94ded5a2f;hb=3a345750fddc777385eacb334ea011f9327b774e;hp=a0bc3feb986aae9be7371b4e18599e6d854946d3;hpb=0047d0a57e8ffe0d7cfde415fa6f50dae30201d1;p=chaz%2Fgit-codeowners diff --git a/bin/git-codeowners b/bin/git-codeowners index a0bc3fe..2c680eb 100755 --- a/bin/git-codeowners +++ b/bin/git-codeowners @@ -10,7 +10,7 @@ use strict; use App::Codeowners; -our $VERSION = '0.41'; # VERSION +our $VERSION = '0.42'; # VERSION App::Codeowners->main(@ARGV); @@ -26,13 +26,15 @@ git-codeowners - A tool for managing CODEOWNERS files =head1 VERSION -version 0.41 +version 0.42 =head1 SYNOPSIS git-codeowners [--version|--help|--manual] - git-codeowners [show] [--format FORMAT] [--[no-]project] [PATH...] + git-codeowners [show] [--format FORMAT] [--owner OWNER]... + [--pattern PATTERN]... [--[no-]patterns] + [--project PROJECT]... [--[no-]projects] [PATH...] git-codeowners owners [--format FORMAT] [--pattern PATTERN] @@ -128,18 +130,33 @@ Does not yet support Zsh... =head2 show - git-codeowners [show] [--format FORMAT] [--[no-]project] [PATH...] + git-codeowners [show] [--format FORMAT] [--owner OWNER]... + [--pattern PATTERN]... [--[no-]patterns] + [--project PROJECT]... [--[no-]projects] [PATH...] Show owners of one or more files in a repo. +If C<--owner>, C<--project>, C<--pattern> are set, only show files with matching +criteria. These can be repeated. + +Use C<--patterns> to also show the matching pattern associated with each file. + +By default the output might show associated projects if the C file +defines them. You can control this by explicitly using C<--projects> or +C<--no-projects> to always show or always hide defined projects, respectively. + =head2 owners git-codeowners owners [--format FORMAT] [--pattern PATTERN] +List all owners defined in the F file. + =head2 patterns git-codeowners patterns [--format FORMAT] [--owner OWNER] +List all patterns defined in the F file. + =head2 create git-codeowners create [REPO_DIRPATH|CODEOWNERS_FILEPATH] @@ -189,7 +206,7 @@ C - Custom format (see below) =back -=head2 Custom +=head2 Format string You can specify a custom format using printf-like format sequences. These are the items that can be substituted: @@ -250,7 +267,7 @@ C - Do not colorize replacement string. =back -=head2 Table +=head2 Format table Table formatting can be done by one of several different modules, each with its own features and bugs. The default module is L, but this can be overridden using the @@ -260,6 +277,16 @@ C environment variable if desired, like this: The list of available modules is at L. +=head1 CAVEATS + +=over 4 + +=item * + +Some commands require F (at least version 1.8.5). + +=back + =head1 BUGS Please report any bugs or feature requests on the bugtracker website