aboutsummaryrefslogtreecommitdiff
path: root/Documentation/blame-options.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-06-14 11:41:11 -0700
committerJunio C Hamano <gitster@pobox.com>2016-06-14 12:13:07 -0700
commite1d09701a4fa3a4d15dd005e2b698934e4ae9ae0 (patch)
tree09b892aeb03a45bd0f23cba26bd52afc5da924d2 /Documentation/blame-options.txt
parentd993ce1ed2f025708b0f78bed241466e35f1e8a0 (diff)
downloadgit-e1d09701a4fa3a4d15dd005e2b698934e4ae9ae0.tar.gz
git-e1d09701a4fa3a4d15dd005e2b698934e4ae9ae0.tar.xz
blame: dwim "blame --reverse OLD" as "blame --reverse OLD.."
Instead of always requiring both ends of a range, we could DWIM "OLD", which could be a misspelt "OLD..", to be a range that ends at the current commit. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/blame-options.txt')
-rw-r--r--Documentation/blame-options.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/blame-options.txt b/Documentation/blame-options.txt
index 02cb6845c..2669b87c9 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::