summaryrefslogtreecommitdiff
path: root/t/t7510-signed-commit.sh
diff options
context:
space:
mode:
authorMartin Ågren <martin.agren@gmail.com>2020-07-13 19:10:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-07-13 19:47:38 (GMT)
commit78b76d310f3e9c0cc1e990ed93f58711e48d9ab2 (patch)
treea5d5ed92f5f91c2106d31bb2e6dc9d70cbf407cb /t/t7510-signed-commit.sh
parentbc5482e9db9bbecbfcd3a45793af78d7e0a6a638 (diff)
downloadgit-78b76d310f3e9c0cc1e990ed93f58711e48d9ab2.zip
git-78b76d310f3e9c0cc1e990ed93f58711e48d9ab2.tar.gz
git-78b76d310f3e9c0cc1e990ed93f58711e48d9ab2.tar.bz2
git-diff.txt: reorder possible usages
The description of `git diff` goes through several different invocations (numbering added by me): 1. git diff [<options>] [--] [<path>...] 2. git diff [<options>] --no-index [--] <path> <path> 3. git diff [<options>] --cached [<commit>] [--] [<path>...] 4. git diff [<options>] <commit> [--] [<path>...] 5. git diff [<options>] <commit> <commit> [--] [<path>...] 6. git diff [<options>] <commit>..<commit> [--] [<path>...] 7. git diff [<options>] <commit> <commit>... <commit> [--] [<path>...] 8. git diff [<options>] <commit>...<commit> [--] [<path>...] It then goes on to say that "all of the <commit> in the above description, except in the last two forms that use '..' notations, can be any <tree>". The "last two" actually refers to 6 and 8. This got out of sync in commit b7e10b2ca2 ("Documentation: usage for diff combined commits", 2020-06-12) which added item 7 to the mix. As a further complication, after b7e10b2ca2 we also have some potential confusion around "the '..' notation". The "..[.]" in items 6 and 8 are part of the rev notation, whereas the "..." in item 7 is manpage language for "one or more". Move item 6 down, i.e., to between 7 and 8, to restore the ordering. Because 6 refers to 5 ("synonymous to the previous form") we need to tweak the language a bit. An added bonus of this commit is that we're trying to steer users away from `git diff <commit>..<commit>` and moving it further down probably doesn't hurt. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7510-signed-commit.sh')
0 files changed, 0 insertions, 0 deletions