From: Sebastian Schuberth <sschuberth@gmail.com>
To: git@vger.kernel.org
Subject: [PATCH] GIT-VERSION-GEN: Do not require tags to be annotated
Date: Fri, 06 Sep 2013 22:10:18 +0200 [thread overview]
Message-ID: <522A36AA.3050701@gmail.com> (raw)
For custom builds of Git it sometimes is inconvenient to annotate tags
because there simply is nothing to say, so do not require an annotation.
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
---
GIT-VERSION-GEN | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index b444c18..68b61e3 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -12,7 +12,7 @@ if test -f version
then
VN=$(cat version) || VN="$DEF_VER"
elif test -d ${GIT_DIR:-.git} -o -f .git &&
- VN=$(git describe --match "v[0-9]*" --abbrev=7 HEAD 2>/dev/null) &&
+ VN=$(git describe --tags --match "v[0-9]*" --abbrev=7 HEAD 2>/dev/null) &&
case "$VN" in
*$LF*) (exit 1) ;;
v[0-9]*)
--
1.8.3.msysgit.1.3.g5b82b42.dirty
next reply other threads:[~2013-09-06 20:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-06 20:10 Sebastian Schuberth [this message]
2013-09-06 21:40 ` [PATCH] GIT-VERSION-GEN: Do not require tags to be annotated Junio C Hamano
2013-09-07 0:37 ` Felipe Contreras
[not found] ` <CAJDDKr4JBeccwuD4PVq0ryO27Eyfz+yUAHT7xm0Dkh19SZpV4g@mail.gmail.com>
2013-09-08 0:58 ` Felipe Contreras
2013-09-07 12:28 ` Sebastian Schuberth
2013-09-07 16:10 ` Junio C Hamano
2013-09-07 19:47 ` Sebastian Schuberth
2013-09-08 17:41 ` Junio C Hamano
2013-09-09 23:21 ` Felipe Contreras
2013-09-10 8:06 ` Sebastian Schuberth
2013-09-10 9:53 ` Felipe Contreras
2013-09-10 15:59 ` Junio C Hamano
2013-09-10 19:45 ` Sebastian Schuberth
2013-09-08 0:54 ` Felipe Contreras
2013-09-06 22:34 ` Kyle J. McKay
2013-09-07 12:26 ` Sebastian Schuberth
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=522A36AA.3050701@gmail.com \
--to=sschuberth@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.
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 NNTP newsgroup(s).