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

Re: RCS keyword expansion

From
Sam Vilain <sam@vilain.net>
Date
Oct 11, 2007, 21:20 UTC
Message-ID
<470E93B4.3080300@vilain.net>
In-Reply-To
<Pine.LNX.4.62.0710111953460.7441@perkele.intern.softwolves.pp.se>
Peter Karlsson wrote:
Show 10 quoted lines
> Randal L. Schwartz:
> 
>> That's not a job for a source code manager to do.  It's a job for your 
>> build/install tool.
> 
> Since there is no build step involved (my web site is just a CVS checkout at 
> the moment), it's a job for the checkout step. I'd really want to avoid 
> having a separate copy of the web site just so that I can do a "make 
> install". That would sort of negate the savings in disk space I hope seeing 
> by moving from CVS to Git.

The problem is that asking for the "last commit that changed a file" is one of those features which comes out of the wash with proper merge support. There is often no clear answer to that question.

Here's an example. Say two people apply a patch on their own branches, which are subsequently merged. The file was the same on both branches; the commits may have exactly the same date, but different committers.

Now, consider what happens as you are switching branches. Instead of just being able to check the file identity in the tree, the system has to somehow know that the (derived) ancestry of the file is different, and now the content has to change. That makes something that was extremely fast, slow.

It's the sort of thing that's possible to arrange to work using hooks (with whatever arbitrary decisions you choose to make for the areas where it would be ambiguous), but no-one bothered because people realised that it probably means you're trying to encapsulate the information in the wrong place.

Sam.
Previous: Florian WeimerNext: Lars Hjemli
Message 26 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.