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

Re: Does GIT has vc keywords like CVS/Subversion?

From
Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
Oct 10, 2006, 07:37 UTC
Message-ID
<452B4DD5.6060508@lsrfire.ath.cx>
In-Reply-To
<46a038f90610091408y29f60a12gea7040b5412331c6@mail.gmail.com>
Martin Langhoff schrieb:
> For the outside of the SCM case, keyword subst is useful indeed if
> someone has a $version_unknown tarball, unpacks it and hacks away. It
> is a pretty broken scenario, and less likely to happen nowadays with
> easy access to SCM tools.

If you still have the tar file, and if it has been created using git-archive or git-tar-tree it may contain the commit ID in an archive comment. You can use git-get-tar-commit-id to extract it in that case.

This won't work with official git project tarballs btw., as commit ID embedding has been turned off. The reason is that older tar versions extracted the comment as a regular file, which confused users.

René
Previous: Junio C HamanoNext: Shawn Pearce
Message 9 of 12 in “Does GIT has vc keywords like CVS/Subversion?”
  1. Dongsheng SongOct 9, 2006
  2. Liu YubaoOct 9, 2006
  3. Petr BaudisOct 9, 2006
  4. Linus TorvaldsOct 9, 2006
  5. Martin LanghoffOct 9, 2006
  6. Johannes SchindelinOct 9, 2006
  7. Martin LanghoffOct 9, 2006
  8. Junio C HamanoOct 9, 2006
  9. Rene ScharfeOct 10, 2006
  10. Shawn PearceOct 10, 2006
  11. Linus TorvaldsOct 10, 2006
  12. Junio C HamanoOct 10, 2006

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.