From: "Shawn O. Pearce" <spearce@spearce.org>
To: "Santi Béjar" <sbejar@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Teach git-describe --long to output always the long format
Date: Sun, 24 Feb 2008 21:36:34 -0500 [thread overview]
Message-ID: <20080225023634.GK8410@spearce.org> (raw)
In-Reply-To: <1203864412-27977-1-git-send-email-sbejar@gmail.com>
Santi Bjar <sbejar@gmail.com> wrote:
> @@ -155,7 +156,11 @@ static void describe(const char *arg, int last_one)
>
> n = cmit->util;
> if (n) {
> - printf("%s\n", n->path);
> + if (!longformat)
> + printf("%s\n", n->path );
Extra whitespace after the "path".
> + else
> + printf("%s-0-g%s\n", n->path,
> + find_unique_abbrev(cmit->object.sha1, abbrev));
Is this really that useful? Where is having the tag and the commit
SHA-1 both useful?
> return;
> }
>
> @@ -254,6 +259,7 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
> OPT_BOOLEAN(0, "debug", &debug, "debug search strategy on stderr"),
> OPT_BOOLEAN(0, "all", &all, "use any ref in .git/refs"),
> OPT_BOOLEAN(0, "tags", &tags, "use any tag in .git/refs/tags"),
> + OPT_BOOLEAN(0, "long", &longformat, "always use long format"),
Documentation?
--
Shawn.
next prev parent reply other threads:[~2008-02-25 2:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-24 14:46 [PATCH] Teach git-describe --long to output always the long format Santi Béjar
2008-02-25 2:36 ` Shawn O. Pearce [this message]
2008-02-25 3:08 ` Junio C Hamano
2008-02-25 8:34 ` Santi Béjar
2008-02-25 8:54 ` Junio C Hamano
2008-02-25 9:05 ` Santi Béjar
2008-02-25 20:11 ` Junio C Hamano
2008-02-25 20:51 ` Santi Béjar
2008-02-26 9:19 ` Junio C Hamano
2008-02-26 9:41 ` Santi Béjar
2008-02-25 8:50 ` Jakub Narebski
2008-02-25 9:43 ` Santi Béjar
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=20080225023634.GK8410@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=sbejar@gmail.com \
/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.