Re: [PATCH 3/3] Documentation: tweak git diff help slightly
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 9, 2020, 05:45 UTC
- Message-ID
- <xmqqimg0iyg9.fsf@gitster.c.googlers.com>
- In-Reply-To
- <9318365915cfe1898b2942c735d675656ce7b5e5.1591661021.git.gitgitgadget@gmail.com>
"Chris Torek via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 7 quoted lines
> 'git diff' [<options>] [<commit>] [--] [<path>...] > 'git diff' [<options>] --cached [<commit>] [--] [<path>...] > 'git diff' [<options>] <commit> <commit> [--] [<path>...] > +'git diff' [<options>] <commit>..<commit> [--] [<path>...] > +'git diff' [<options>] <commit>...<commit> [--] [<path>...] > 'git diff' [<options>] <blob> <blob> > 'git diff' [<options>] --no-index [--] <path> <path>
We actually are trying to wean users off of saying "diff A..B" which is a nonsense notation, so I'd rather not to see it added here. Describing "diff A...B" is a good idea, though.
While we have our attention on this part of the documentation, would it make sense to also add description on invoking the combined diff as well?