login
Header Space

 
 

Re: [new tool] git-project-version.sh

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nico -telmich- Schottelius <nico-git-20080415@...>
Cc: <git@...>
Date: Tuesday, April 15, 2008 - 8:01 am

On Tue, Apr 15, 2008 at 1:36 PM, Nico -telmich- Schottelius
<nico-git-20080415@schottelius.org> wrote:

an equivalent simpler version is:

git rev-parse [--short] HEAD

Also "git show" is a porcelain command, that means it is for humans,
not for scripts. The output of "git show" can change while the output
of "git rev-parse" (and the plumbing) is stable.

But maybe what you really want is:

git describe [--always]

Santi
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[new tool] git-project-version.sh, Nico -telmich- Schottelius..., (Tue Apr 15, 7:36 am)
Re: [new tool] git-project-version.sh, Luciano Rocha, (Tue Apr 15, 8:05 am)
Re: [new tool] git-project-version.sh, Santi Béjar, (Tue Apr 15, 8:01 am)
Re: [new tool] git-project-version.sh, Nico Schottelius, (Tue Apr 15, 8:52 am)
Re: [new tool] git-project-version.sh, Elijah Newren, (Tue Apr 15, 8:55 am)
Re: [new tool] git-project-version.sh, Nico Schottelius, (Tue Apr 15, 9:09 am)
Re: [new tool] git-project-version.sh, Björn, (Tue Apr 15, 7:55 am)
Re: [new tool] git-project-version.sh, Nico -telmich- Schottelius..., (Tue Apr 15, 8:02 am)
speck-geostationary