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

Re: git reset and ctime

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 6, 2010, 17:51 UTC
Message-ID
<20101206175102.GC6272@burratino>
In-Reply-To
<1291657037.30271.17.camel@drew-northup.unet.maine.edu>
Drew Northup wrote:
> On Fri, 2010-12-03 at 18:51 -0600, Jonathan Nieder wrote:
Show 9 quoted lines
>> Interesting.  Setting "[core] trustctime = false" in the repository
>> configuration could be a good solution (no performance downside I can
>> think of).
>
> It is worth noting that many file-based backup systems which do "online"
> backups (such as in use where I work) restore the atime by default at
> the expense of the ctime (logic being that the atime may have had value
> and the ctime changes either way--which may or may not be true) on unix
> style filesystems.

So have you tried putting "[core] trustctime = false" in /etc/gitconfig? This is exactly what the setting is for, after all.

Ideas for making this easier to find (FAQ on the git wiki? advice from porcelain when ctime-only changes happen?) would be welcome, of course.

Previous: Drew NorthupNext: Drew Northup
Message 7 of 8 in “git reset and ctime”
  1. ghazel@gmail.comDec 3, 2010
  2. Jonathan NiederDec 4, 2010
  3. ghazel@gmail.comDec 4, 2010
  4. Jonathan NiederDec 4, 2010
  5. Junio C HamanoDec 4, 2010
  6. Drew NorthupDec 6, 2010
  7. Jonathan NiederDec 6, 2010
  8. Drew NorthupDec 7, 2010

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.