git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2] rev-list-options.txt: update --all about HEAD

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Feb 8, 2017, 06:06 UTC
Message-ID
<20170208060641.13793-1-pclouds@gmail.com>
In-Reply-To
<20170207133850.14056-1-pclouds@gmail.com>

This is the document patch for f0298cf1c6 (revision walker: include a detached HEAD in --all - 2009-01-16).

Even though that commit is about detached HEAD, as Jeff pointed out, always adding HEAD in that case may have subtle differences with --source or --exclude. So the document mentions nothing about the detached-ness.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 v2 drops "detached".
 Documentation/rev-list-options.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt
index 5da7cf5a8d..a02f7324c0 100644
--- a/Documentation/rev-list-options.txt
+++ b/Documentation/rev-list-options.txt
@@ -133,8 +133,8 @@ parents) and `--max-parents=-1` (negative numbers denote no upper limit).
 	for all following revision specifiers, up to the next `--not`.
 
 --all::
-	Pretend as if all the refs in `refs/` are listed on the
-	command line as '<commit>'.
+	Pretend as if all the refs in `refs/`, along with `HEAD`, are
+	listed on the command line as '<commit>'.
 
 --branches[=<pattern>]::
 	Pretend as if all the refs in `refs/heads` are listed
-- 
2.11.0.157.gd943d85
Previous: Jeff KingNext: Jeff King
Message 3 of 4 in “rev-list-options.txt: update --all about detached HEAD”
  1. rev-list-options.txt: update --all about detached HEADNguyễn Thái Ngọc Duy, Feb 7, 2017
  2. Jeff KingFeb 7, 2017
  3. rev-list-options.txt: update --all about HEADNguyễn Thái Ngọc Duy, Feb 8, 2017
  4. Jeff KingFeb 8, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.