From: "SZEDER Gábor" <szeder.dev@gmail.com>
To: Amandeep Gautam <amandeepgautam5@gmail.com>
Cc: "SZEDER Gábor" <szeder.dev@gmail.com>, git@vger.kernel.org
Subject: Re: Bug in git-completion.bash in __git_heads() function
Date: Mon, 4 Dec 2017 10:43:17 +0100 [thread overview]
Message-ID: <20171204094317.7344-1-szeder.dev@gmail.com> (raw)
In-Reply-To: <CAEZzL1BOTLzrqZRehBzE8cwCvTY6qgrwZsbq5gcxWUbGyva8FQ@mail.gmail.com>
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
prev parent reply other threads:[~2017-12-04 9:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-04 9:16 Bug in git-completion.bash in __git_heads() function Amandeep Gautam
2017-12-04 9:43 ` SZEDER Gábor [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171204094317.7344-1-szeder.dev@gmail.com \
--to=szeder.dev@gmail.com \
--cc=amandeepgautam5@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).