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

Re: RCS keyword expansion

From
Barry Fishman <barry_fishman@acm.org>
Date
Oct 12, 2007, 17:05 UTC
Message-ID
<m3y7e8jmbm.fsf@barry_fishman.acm.org>
In-Reply-To
<Pine.LNX.4.62.0710120726470.11771@perkele.intern.softwolves.pp.se>
Peter Karlsson <peter@softwolves.pp.se> writes:
Show 7 quoted lines
> Yes, but not embedded in the page in a format that is visible to the
> visitor. For CVS I use something like this:
>
> <p class="date">$Date$</p>
>
> to embed the last update time into the page.
>

I guess everyone moving from CVS/SVN to Git faces rethinking of what the RCS markers really mean in the context of their project.

In my case the identifier was just a away of seeing when the file was last changed, and who did it. I decided this fit better as an editor function, rather than a checkin function.

I changed my editor (Emacs) to convert RCS Ids to timestamps when I opened a file for reading. This would fix old files. When i wrote out files I would update the timestamp before writing them (via emacs's timestamp package). I didn't have to think about it as my RCS Id stamped files slowly evolve into my editor stamped ones. I'm sure I could do something similar in VIM, or with a script encapsulating another editor.

This actually worked out better for me. Now the timestamps were updated even when I hadn't yet checked in the file. Since I test things before checking them in, I did not have my file changed after testing by the checkin process.

I could find the the commit assocated with the file fairly quickly using "git log" and finding the commit for the file just after its timestamp.

-- 
Barry Fishman
Previous: Peter KarlssonNext: Linus Torvalds
Message 23 of 27 in “RCS keyword expansion”
  1. Peter KarlssonOct 11, 2007
  2. Johannes SixtOct 11, 2007
  3. Randal L. SchwartzOct 11, 2007
  4. Oliver KullmannOct 11, 2007
  5. Alex RiesenOct 11, 2007
  6. Johannes SchindelinOct 11, 2007
  7. Sam VilainOct 11, 2007
  8. Peter KarlssonOct 12, 2007
  9. Johannes SchindelinOct 12, 2007
  10. Peter KarlssonOct 12, 2007
  11. Johannes SixtOct 12, 2007
  12. Lars HjemliOct 12, 2007
  13. Johannes SchindelinOct 12, 2007
  14. Peter KarlssonOct 15, 2007
  15. Johannes SchindelinOct 15, 2007
  16. Jan HudecOct 12, 2007
  17. Salikh ZakirovOct 12, 2007
  18. Johannes SchindelinOct 12, 2007
  19. Zakirov SalikhOct 12, 2007
  20. Peter KarlssonOct 11, 2007
  21. Alex RiesenOct 11, 2007
  22. Peter KarlssonOct 12, 2007
  23. Barry FishmanOct 12, 2007
  24. Linus TorvaldsOct 12, 2007
  25. Florian WeimerOct 12, 2007
  26. Sam VilainOct 11, 2007
  27. Lars HjemliOct 11, 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.