* Bug in git-completion.bash in __git_heads() function
@ 2017-12-04 9:16 Amandeep Gautam
2017-12-04 9:43 ` SZEDER Gábor
0 siblings, 1 reply; 2+ messages in thread
From: Amandeep Gautam @ 2017-12-04 9:16 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug in git-completion.bash in __git_heads() function
2017-12-04 9:16 Bug in git-completion.bash in __git_heads() function Amandeep Gautam
@ 2017-12-04 9:43 ` SZEDER Gábor
0 siblings, 0 replies; 2+ messages in thread
From: SZEDER Gábor @ 2017-12-04 9:43 UTC (permalink / raw)
To: Amandeep Gautam; +Cc: SZEDER Gábor, git
Hi,
> 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.
The for-each-ref format modifier ':strip=<N>' was introduced in
v2.7.1~15^2 (tag: do not show ambiguous tag names as "tags/foo",
2016-01-25) and the completion script started using it in
v2.13.0-rc0~46^2~8 (completion: don't disambiguate tags and branches,
2017-03-23).
It seems you're using an old Git with a recentish completion script.
You could either upgrade Git, or use the completion script that was
shipped with it.
Gábor
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-04 9:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-04 9:16 Bug in git-completion.bash in __git_heads() function Amandeep Gautam
2017-12-04 9:43 ` SZEDER Gábor
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).