]> git.ipfire.org Git - thirdparty/git.git/commit
difftool.c: learn a new way start at specified file
authorZheNing Hu <adlternative@gmail.com>
Fri, 19 Feb 2021 12:53:54 +0000 (12:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Feb 2021 21:35:49 +0000 (13:35 -0800)
commit1c881026a1eebadd1eae8cc3a4418b010df35bee
treed2a330fb3bb6ab61db99d886371f7ed89c524452
parent1eb4136ac2a24764257567b930535fcece01719f
difftool.c: learn a new way start at specified file

`git difftool` only allow us to select file to view in turn.
If there is a commit with many files and we exit in the middle,
we will have to traverse list again to get the file diff which
we want to see. Therefore,teach the command an option
`--skip-to=<path>` to allow the user to say that diffs for earlier
paths are not interesting (because they were already seen in an
earlier session) and start this session with the named path.

Signed-off-by: ZheNing Hu <adlternative@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-difftool.txt
t/t7800-difftool.sh