summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorZheNing Hu <adlternative@gmail.com>2021-02-19 12:53:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-22 21:35:49 (GMT)
commit1c881026a1eebadd1eae8cc3a4418b010df35bee (patch)
treed2a330fb3bb6ab61db99d886371f7ed89c524452 /Documentation
parent1eb4136ac2a24764257567b930535fcece01719f (diff)
downloadgit-1c881026a1eebadd1eae8cc3a4418b010df35bee.zip
git-1c881026a1eebadd1eae8cc3a4418b010df35bee.tar.gz
git-1c881026a1eebadd1eae8cc3a4418b010df35bee.tar.bz2
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-difftool.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/git-difftool.txt b/Documentation/git-difftool.txt
index 484c485..143b0c4 100644
--- a/Documentation/git-difftool.txt
+++ b/Documentation/git-difftool.txt
@@ -34,6 +34,14 @@ OPTIONS
This is the default behaviour; the option is provided to
override any configuration settings.
+--rotate-to=<file>::
+ Start showing the diff for the given path,
+ the paths before it will move to end and output.
+
+--skip-to=<file>::
+ Start showing the diff for the given path, skipping all
+ the paths before it.
+
-t <tool>::
--tool=<tool>::
Use the diff tool specified by <tool>. Valid values include