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

Bug in git-completion.bash in __git_heads() function

From
AGAmandeep Gautam <amandeepgautam5@gmail.com>
Date
Dec 4, 2017, 09:16 UTC
Message-ID
<CAEZzL1BOTLzrqZRehBzE8cwCvTY6qgrwZsbq5gcxWUbGyva8FQ@mail.gmail.com>
Hello,
   This is the first time I am sending a bug report here, so if I have
not met the criteria please let me know.
   I found that at:
https://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L371,
the usage of refname:strip=2 generates error:
fatal: unknown refname: format strip=2.

I am using git version 1.9.1. However using %(refname:short), I believe produces intended behaviour.

If my findings are validated, I would be willing to submit a patch for this. Please let me know.

Regards, Aman

Next: SZEDER Gábor
Message 1 of 2 in “Bug in git-completion.bash in __git_heads() function”
  1. Amandeep GautamDec 4, 2017
  2. SZEDER GáborDec 4, 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.