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

Re: Problems with filters and git status - reproduction steps

From
Peter Krefting <peter@softwolves.pp.se>
Date
Aug 12, 2009, 09:25 UTC
Message-ID
<alpine.DEB.2.00.0908121020390.30907@ds9.cixit.se>
In-Reply-To
<4A828368.5010206@drmicha.warpmail.net>
Michael J Gruber:
> I get "Changed but not updated" already here!

With git 1.5.6.5, I do get that. With git 1.6.4, I seem to only get it after the last step.

I have 1.5.6.5 on the server with the master repo, and am running 1.6.4 on the client (although when I ran the recipe through a shell script, I got the unclean status earlier, which made me think it ran an earlier version I have installed in another directory).

> Do you really want the date in the checked-in version of the file?

Yes. This way, the checked out copy that makes my web server can do its job without requiring any of the filters being installed. And the files in history are marked as necessary.

> I would assume otherwise. Then your clean filter should really be the 
> smudge filter, and you would need a clean filter to go with it (remove the 
> date and restore the keyword).

The problem with that approach is that the "smudge" filter does not have access to the file name, and so can not look up the last change date of the file it is re-writing. And I want the last time the file was *changed*, not the time it was checked out.

Also, I imported my entire CVS history with keywords expanded to allow for this (and "checked out" the Git-generated tree over my CVS check-out to not have Git update all the time-stamps).

-- 
\\// Peter - http://www.softwolves.pp.se/
Previous: Michael J GruberNext: Peter Krefting
Message 7 of 8 in “Implementing $Date$ substitution - problem with git status”
  1. Peter KreftingAug 9, 2009
  2. Johannes SixtAug 9, 2009
  3. Peter KreftingAug 10, 2009
  4. Peter KreftingAug 12, 2009
  5. Problems with filters and git status - reproduction stepsPeter Krefting, Aug 12, 2009
  6. Michael J GruberAug 12, 2009
  7. Peter KreftingAug 12, 2009
  8. Implementing $Date$ substitution - solution using pre-commitPeter Krefting, Aug 13, 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.