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

Re: [PATCH] rev-parse: include HEAD in --all output

From
Max Kirillov <max@max630.net>
Date
Sep 3, 2014, 16:18 UTC
Message-ID
<20140903161856.GC6385@wheezy.local>
In-Reply-To
<xmqqsika2c2i.fsf@gitster.dls.corp.google.com>
On Tue, Sep 02, 2014 at 09:59:17AM -0700, Junio C Hamano wrote:
> 
> I would rather see "rev-parse --all" not to include HEAD,
> especially if it has been documented that way.
Ok, then probably I'll want to change it in gitk.

But, with the "multiple working trees" feature, I would also want to get other HEADs in view, even if they are detached. I could add it to --all when it returns detached HEAD (like in git-rev-list), but if it does not, probably some new dedicated option should be for that purpose. Something like "git rev-parse --heads", for example.

-- 
Max
Previous: Junio C Hamano
Message 8 of 8 in “[RFC] add detached HEAD to --all listing”
  1. Max KirillovAug 27, 2014
  2. Jeff KingAug 27, 2014
  3. Max KirillovAug 27, 2014
  4. rev-parse: include HEAD in --all outputMax Kirillov, Aug 30, 2014
  5. Jeff KingAug 31, 2014
  6. Max KirillovAug 31, 2014
  7. Junio C HamanoSep 2, 2014
  8. Max KirillovSep 3, 2014

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.