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

Re: CVS-$Id:$ replacement in git?

From
RDRogan Dawes <discard@dawes.za.net>
Date
Aug 31, 2007, 16:58 UTC
Message-ID
<46D848CA.3060707@dawes.za.net>
In-Reply-To
<7v8x7r1wyy.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
Show 22 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
>> On Fri, 31 Aug 2007, Andreas Hildebrandt wrote:
>>
>>> But unfortunately, we internally rely heavily on the $Id:$ - expansion 
>>> of CVS, that is the ability to have a line like
>>>
>>> $Id:$
>>>
>>> in the source file expanded to something like
>>>
>>> $Id: HINFile.C,v 1.64 2005/02/09 13:02:41 oliver Exp $
>>>
>>> The information we want to store in the file would be something like the 
>>> SHA1 of the last commit that touched that file, the date when it 
>>> happened and the person who commited it.
>> Please see Documentation/gitattributes.txt, look for 'ident'.
> 
> Please do _not_ see that.  ident is about blob object name and
> does not have anything to do with the commit, pathname,
> committer, nor date, and this is deliberately so.
> 
For more details see this thread:
<http://thread.gmane.org/gmane.comp.version-control.git/44750>
Rogan
Previous: Junio C HamanoNext: Johannes Schindelin
Message 4 of 6 in “CVS-$Id:$ replacement in git?”
  1. Andreas HildebrandtAug 31, 2007
  2. Johannes SchindelinAug 31, 2007
  3. Junio C HamanoAug 31, 2007
  4. Rogan DawesAug 31, 2007
  5. Johannes SchindelinAug 31, 2007
  6. Junio C HamanoAug 31, 2007

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.