summaryrefslogtreecommitdiff
path: root/Documentation/git-tools.txt
diff options
context:
space:
mode:
authorLibravatar Isabella Stephens <istephens@atlassian.com>2018-06-15 16:29:28 +1000
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-15 10:29:14 -0700
commit7f81c00f3b1bd45c2954b18550b8e351651f72f3 (patch)
treeca5a971b2a150d15d20dcd14fee9346db6abee0a /Documentation/git-tools.txt
parentblame: prevent error if range ends past end of file (diff)
downloadtgif-7f81c00f3b1bd45c2954b18550b8e351651f72f3.tar.xz
log: prevent error if line range ends past end of file
If the -L option is used to specify a line range in git log, and the end of the range is past the end of the file, git will fail with a fatal error. This commit prevents such behaviour - instead we perform the log for existing lines within the specified range. This commit also fixes a corner case where -L ,-n:file would be treated as a log over the whole file. Now we treat this as -L 1,-n:file and blame the first line of the file instead. Signed-off-by: Isabella Stephens <istephens@atlassian.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-tools.txt')
0 files changed, 0 insertions, 0 deletions