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

Re: [PATCH RFC] git describe without refs distinguishes dirty working tree

From
Nicolas Pitre <nico@fluxnic.net>
Date
Oct 17, 2009, 00:31 UTC
Message-ID
<alpine.LFD.2.00.0910162028190.21739@xanadu.home>
In-Reply-To
<7vvdifq6vw.fsf@alter.siamese.dyndns.org>
On Fri, 16 Oct 2009, Junio C Hamano wrote:
Show 10 quoted lines
> But the thing is, "git describe" without arguments already works on HEAD
> and describes it, and people depend on the behaviour.
> 
> I originally thought this _might_ break and hoped it won't be a big issue,
> but now I've seen that even the kernel would break (it runs the command
> without saying "HEAD"), I do not want to risk breaking other projects I
> may not even heard of.  Some people might have copied our GIT-VERSION-GEN
> (that says "HEAD"), but I would not bet against that many many more people
> would have copied the use of "git describe" from the kernel build tree
> than from us.

OpenOCD is another project that just started using Git and copied describe usage from Linux.

Nicolas
Previous: Junio C Hamano
Message 8 of 8 in “git describe without refs distinguishes dirty working tree”
  1. git describe without refs distinguishes dirty working treeJean Privat, Oct 16, 2009
  2. Junio C HamanoOct 16, 2009
  3. Shawn O. PearceOct 16, 2009
  4. Junio C HamanoOct 16, 2009
  5. Jean PrivatOct 16, 2009
  6. Shawn O. PearceOct 16, 2009
  7. Junio C HamanoOct 16, 2009
  8. Nicolas PitreOct 17, 2009

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.