diff options
author | 2016-10-10 14:03:51 -0700 | |
---|---|---|
committer | 2016-10-10 14:03:51 -0700 | |
commit | 1172e16af07d6e15bca6398f0ded18a0ae7b9249 (patch) | |
tree | 24cfd020511f1b345d1890c7281651db080f43c5 /Documentation | |
parent | Merge branch 'nd/shallow-deepen' (diff) | |
parent | blame: dwim "blame --reverse OLD" as "blame --reverse OLD.." (diff) | |
download | tgif-1172e16af07d6e15bca6398f0ded18a0ae7b9249.tar.xz |
Merge branch 'jc/blame-reverse'
It is a common mistake to say "git blame --reverse OLD path",
expecting that the command line is dwimmed as if asking how lines
in path in an old revision OLD have survived up to the current
commit.
* jc/blame-reverse:
blame: dwim "blame --reverse OLD" as "blame --reverse OLD.."
blame: improve diagnosis for "--reverse NEW"
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/blame-options.txt | 5 | ||||
-rw-r--r-- | Documentation/git-blame.txt | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/blame-options.txt b/Documentation/blame-options.txt index 02cb6845cd..2669b87c9d 100644 --- a/Documentation/blame-options.txt +++ b/Documentation/blame-options.txt @@ -28,12 +28,13 @@ include::line-range-format.txt[] -S <revs-file>:: Use revisions from revs-file instead of calling linkgit:git-rev-list[1]. ---reverse:: +--reverse <rev>..<rev>:: Walk history forward instead of backward. Instead of showing the revision in which a line appeared, this shows the last revision in which a line has existed. This requires a range of revision like START..END where the path to blame exists in - START. + START. `git blame --reverse START` is taken as `git blame + --reverse START..HEAD` for convenience. -p:: --porcelain:: diff --git a/Documentation/git-blame.txt b/Documentation/git-blame.txt index 9dccb3319b..fdc3aea30a 100644 --- a/Documentation/git-blame.txt +++ b/Documentation/git-blame.txt @@ -10,7 +10,7 @@ SYNOPSIS [verse] 'git blame' [-c] [-b] [-l] [--root] [-t] [-f] [-n] [-s] [-e] [-p] [-w] [--incremental] [-L <range>] [-S <revs-file>] [-M] [-C] [-C] [-C] [--since=<date>] - [--progress] [--abbrev=<n>] [<rev> | --contents <file> | --reverse <rev>] + [--progress] [--abbrev=<n>] [<rev> | --contents <file> | --reverse <rev>..<rev>] [--] <file> DESCRIPTION |