git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-describe recognize modified files

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 19, 2010, 12:49 UTC
Message-ID
<m34omiclap.fsf@localhost.localdomain>
In-Reply-To
<20100119122122.GA28667@inner.home.ulmdo.de>
Andreas Krey <a.krey@gmx.de> writes:
Show 23 quoted lines
> On Tue, 19 Jan 2010 11:35:41 +0000, Johannes Schindelin wrote:
> ...
> > > To solve this issue, in addition to git-describe, my do_version script
> > > also run git-status, and if there are "modified:" files then it
> > > concatenates the string "+dirty" to output of git-describe.
> > 
> > The problem is that this does not describe the exact version you used very 
> > well.
> 
> I (and probably the original poster) don't care that much; for me the
> important information is that the binary (or whatever) was not built
> from the exact committed state. Thus the question is whether the
> second two lines of
> 
>  BUILDINFO=git-`git describe --abbrev=16 --always HEAD 2>/dev/null`
>  git update-index -q --refresh
>  test -z "`git diff-index --name-only HEAD --`" || BUILDINFO="$BUILDINFO.dirty"
> 
> (after GIT-VERSION-GEN) are worth to be integrated into git-describe?
> 
> (And whether it should also say '.dirty'
>  when there are untracked files present.
>  Or either for submodules.)
FYI it is integrated in git-describe since
  9f67d2e (Teach "git describe" --dirty option, 2009-10-21)
by Jean Privat (it should be present in 1.6.6, IIRC).
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Andreas KreyNext: tzachi perelstein
Message 4 of 6 in “git-describe recognize modified files”
  1. tzachi perelsteinJan 19, 2010
  2. Johannes SchindelinJan 19, 2010
  3. Andreas KreyJan 19, 2010
  4. Jakub NarebskiJan 19, 2010
  5. tzachi perelsteinJan 19, 2010
  6. tzachi perelsteinJan 19, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.