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

Re: git reset and ctime

From
Drew Northup <drew.northup@maine.edu>
Date
Dec 7, 2010, 15:14 UTC
Message-ID
<1291734852.3162.12.camel@drew-northup.unet.maine.edu>
In-Reply-To
<20101206175102.GC6272@burratino>
On Mon, 2010-12-06 at 11:51 -0600, Jonathan Nieder wrote:
Show 15 quoted lines
> Drew Northup wrote:
> > On Fri, 2010-12-03 at 18:51 -0600, Jonathan Nieder wrote:
> 
> >> 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.
I hadn't yet, but it works like a charm.
> 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.
I'll have a look over that way a bit later. 

I'm also going to have to have a look at the src.rpm for this particular packaging of git and find out why it didn't create a skeleton /etc/gitconfig (without much in it) in the postinstall script. (I'm using the Dag Wieers / rpmforge one on my desktop.) It makes a lot more sense to send along a patch then randomly demand that he change it--he may have had a decent reason for not doing so.

-- 
-Drew Northup N1XIM
   AKA RvnPhnx on OPN
________________________________________________
"As opposed to vegetable or mineral error?"
-John Pescatore, SANS NewsBites Vol. 12 Num. 59
Previous: Jonathan Nieder
Message 8 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.