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

Re: [PATCH] scripts: do not get confused with HEAD in work tree

From
Mike Hommey <mh@glandium.org>
Date
Nov 29, 2007, 07:02 UTC
Message-ID
<20071129070257.GB5144@glandium.org>
In-Reply-To
<7vbq9d29h3.fsf@gitster.siamese.dyndns.org>
On Wed, Nov 28, 2007 at 04:15:04PM -0800, Junio C Hamano wrote:
Show 5 quoted lines
> When you have a file called HEAD in your work tree, many commands that
> our scripts feed "HEAD" to would complain about the rev vs path
> ambiguity.  A solution is to form command line more carefully by
> appending -- to them, which makes it clear that we mean HEAD rev not
> HEAD file.

Shouldn't this be done for anything else, then ? You could have a file with the same name as a branch and have some commands using branch names fail too.

Mike
Previous: Junio C Hamano
Message 2 of 2 in “scripts: do not get confused with HEAD in work tree”
  1. scripts: do not get confused with HEAD in work treeJunio C Hamano, Nov 29, 2007
  2. Mike HommeyNov 29, 2007

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.