From: Pierre Habouzit <madcoder@debian.org>
To: Git ML <git@vger.kernel.org>
Subject: Re: [FIXED PATCH] git-describe: Add a --match option to limit considered tags.
Date: Sat, 22 Dec 2007 19:02:44 +0100 [thread overview]
Message-ID: <20071222180244.GD23262@artemis.madism.org> (raw)
In-Reply-To: <20071221214954.GA16481@artemis.madism.org>
[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]
Like I said on IRC, I saw that git describe --contains has a bad
behaviour:
$ git describe --match='asd*' HEAD; echo $?
fatal: cannot describe 'e272415ab7da3bde51af2ce95c88d7be3abfba28'
128
$ git describe --contains HEAD; echo $?
undefined
0
THe "undefined" output is on stdout (not stderr), and returns 0.
The issue here is that it internally uses git-name-rev by exec-ing it, which
makes it hard to fix. Though I suppose that we could instead of fork-ing
share some logic with builtin-name-rev.c, but I'm not at home yet, so
won't likely have a patch for this issue.
Note that the use of the "new" --match here was just to be unable to
describe the HEAD to show the difference, the inconsistency has nothing
to do with the patch I propose, I just happen to noticed that.
AFAICT it's not a regression, it's just a misfeature :)
--
·O· Pierre Habouzit
··O madcoder@debian.org
OOO http://www.madism.org
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-12-22 18:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-21 16:18 [PATCH] git-describe: Add a --match option to limit considered tags Pierre Habouzit
2007-12-21 17:52 ` Junio C Hamano
2007-12-21 21:22 ` Pierre Habouzit
2007-12-21 21:49 ` [FIXED PATCH] " Pierre Habouzit
2007-12-22 18:02 ` Pierre Habouzit [this message]
2007-12-24 11:18 ` Pierre Habouzit
2007-12-24 15:57 ` Pierre Habouzit
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071222180244.GD23262@artemis.madism.org \
--to=madcoder@debian.org \
--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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.