Thread View: linux.kernel.git
1 messages
1 total messages
Started by Junio C Hamano
Mon, 23 Nov 2026 23:34
Re: [PATCH v4] doc/gitcli: minor fixes
Author: Junio C Hamano
Date: Mon, 23 Nov 2026 23:34
Date: Mon, 23 Nov 2026 23:34
33 lines
13921 bytes
13921 bytes
Dirk Gouders <dirk@gouders.net> writes: > - Reword the commit message and clearly list the changes > - Fix a typo in the first rule regarding flags as suggested by Andy Koppe OK. > - * When an argument can be misunderstood as either a revision or a path, > + * When arguments can be misunderstood as either a revision or a path, > they can be disambiguated by placing `--` between them. Hmph, an earlier iteration I saw had "by placing `--` before or after it" and talked about a single argument. https://lore.kernel.org/git/20261115070357.113875-1-dirk@gouders.net/ And I thought it was much less error prone than this latest version. "git log main next" where both main and next exist as both a file and a branch, and what you meant was to trace the changes made to file 'main' up to the tip of the 'next' branch, you cannot just put `--` in between, i.e., "git log next -- main", but the new text does not tell the readers that they may have to swap. "git log main" where main both exists as both a file and a branch, you would do "git log -- main" to trace the history of file 'main' up to the currently checked out commit, or "git log main --" to show the history leading to the tip of 'main'. And the earlier text captured exactly that. So, while all the other parts of this v4 may improve over v3, I think this part is a regression.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads