Make usage documentation for git-blame and git-annotate consistent.
PATCH 1/1 Make usage documentation for git-blame and git-annotate consistent.
Added git-annotate usage in the synopsis. The extended information in the git-blame usage was removed, as no other builtin does this and it just repeats what is in the full documentation.
Signed-off-by Brian Hetro <[email protected]>
--- Documentation/git-annotate.txt | 5 ++++- Documentation/git-blame.txt | 6 +++--- builtin-blame.c | 17 +---------------- 3 files changed, 8 insertions(+), 20 deletions(-)
Documentation/git-annotate.txt +4 -1
@@ -7,7 +7,10 @@ git-annotate - Annotate file lines with commit info SYNOPSIS -------- -git-annotate [options] file [revision] +[verse] +'git-annotate' [-b] [-l] [--root] [-t] [-p] [--incremental] [-L n,m] + [-S <revs-file>] [-M] [-C] [-C] [--since=<date>] + [<rev> | --contents <file>] [--] <file> DESCRIPTION -----------
Documentation/git-blame.txt +3 -3
@@ -8,9 +8,9 @@ git-blame - Show what revision and author last modified each line of a file SYNOPSIS -------- [verse] -'git-blame' [-c] [-b] [-l] [--root] [-t] [-f] [-n] [-s] [-p] [-w] [--incremental] [-L n,m] - [-S <revs-file>] [-M] [-C] [-C] [--since=<date>] - [<rev> | --contents <file>] [--] <file> +'git-blame' [-c] [-b] [-l] [--root] [-t] [-f] [-n] [-s] [-p] [-w] + [--incremental] [-L n,m] [-S <revs-file>] [-M] [-C] [-C] + [--since=<date>] [<rev> | --contents <file>] [--] <file> DESCRIPTION -----------
builtin-blame.c +1 -16
@@ -20,22 +20,7 @@#include "mailmap.h" static char blame_usage[] = -"git-blame [-c] [-b] [-l] [--root] [-t] [-f] [-n] [-s] [-p] [-w] [-L n,m] [-S <revs-file>] [-M] [-C] [-C] [--contents <filename>] [--incremental] [commit] [--] file\n" -" -c Use the same output mode as git-annotate (Default: off)\n" -" -b Show blank SHA-1 for boundary commits (Default: off)\n" -" -l Show long commit SHA1 (Default: off)\n" -" --root Do not treat root commits as boundaries (Default: off)\n" -" -t Show raw timestamp (Default: off)\n" -" -f, --show-name Show original filename (Default: auto)\n" -" -n, --show-number Show original linenumber (Default: off)\n" -" -s Suppress author name and timestamp (Default: off)\n" -" -p, --porcelain Show in a format designed for machine consumption\n" -" -w Ignore whitespace differences\n" -" -L n,m Process only line range n,m, counting from 1\n" -" -M, -C Find line movements within and across files\n" -" --incremental Show blame entries as we find them, incrementally\n" -" --contents file Use <file>'s contents as the final image\n" -" -S revs-file Use revisions from revs-file instead of calling git-rev-list\n" ; +"git-blame [-c] [-b] [-l] [--root] [-t] [-f] [-n] [-s] [-p] [-w] [--incremental] [-L n,m] [-S <revs-file>] [-M] [-C] [-C] [--since=<date>] [<rev> | --contents <file>] [--] <file>" ;static int longest_file;static int longest_author;
Signature · 1 line
1.5.3.rc6.23.g0058-dirty
Quoted 1 line · Brian Hetro
Added git-annotate usage in the synopsis.
I'd rather not do this. The git-annotate wrapper is a transitional measure for backward compatibility, and I do not think we should advertise the options that are added in git-blame there, even though the command option parser is lazy and does not turn them off. Ideally disabling non annotate options would be a good thing to have if it were free, but I do not think it is worth it.