Re: [git-users] Git doesn't detect change, if file modification time is restored to original one

2015-07-23 Thread Philip Oakley
Hi Konrád (The original enquirer?), From: "Paul Smith" On Thu, 2015-07-23 at 01:23 -0700, Konrád Lőrinczi wrote: I should somehow ignore atime and mtime when doing diff for status. Just to be clear, what this would involve is for every file in the repo, Git would have to extract the HEAD ver

Re: [git-users] Git doesn't detect change, if file modification time is restored to original one

2015-07-23 Thread Paul Smith
On Thu, 2015-07-23 at 01:23 -0700, Konrád Lőrinczi wrote: > I should somehow ignore atime and mtime when doing diff for status. Just to be clear, what this would involve is for every file in the repo, Git would have to extract the HEAD version into a temporary file (or memory buffer) then compare

Re: [git-users] Git doesn't detect change, if file modification time is restored to original one

2015-07-23 Thread Konrád Lőrinczi
I tried: $ git update-index --refresh $ git status On branch feature/file_restore_date nothing to commit, working directory clean $ git update-index --really-refresh $ git status On branch feature/file_restore_date nothing to commit, working directory clean Unfortunately none of them was able

Re: [git-users] Git doesn't detect change, if file modification time is restored to original one

2015-07-23 Thread Philip Oakley
Does 'git update-index' offer any opportunies? (I've not RTFM'd it) - Original Message - From: Konrád Lőrinczi To: Git for human beings Cc: flatw...@users.sourceforge.net Sent: Thursday, July 23, 2015 8:26 AM Subject: Re: [git-users] Git doesn'

Re: [git-users] Git doesn't detect change, if file modification time is restored to original one

2015-07-23 Thread Konrád Lőrinczi
I tried to set core to: trustctime = false checkStat = minimal Unfortunately the change is still not detected :( It seems isn't a way to force fallback to file checking and completely ignore file modification date :( 2015. július 22., szerda 21:10:56 UTC+2 időpontban Konstantin Khomoutov

Re: [git-users] Git doesn't detect change, if file modification time is restored to original one

2015-07-22 Thread Konstantin Khomoutov
On Wed, 22 Jul 2015 11:17:13 -0700 (PDT) Konrád Lőrinczi wrote: > I wrote a search & replace perl script, which recursively searches > files and replaces text in them. After replace, it restores original > modification time (mtime) of file. > > Interesting, that git status doesn't show replaced

[git-users] Git doesn't detect change, if file modification time is restored to original one

2015-07-22 Thread Konrád Lőrinczi
I wrote a search & replace perl script, which recursively searches files and replaces text in them. After replace, it restores original modification time (mtime) of file. Interesting, that git status doesn't show replaced changes, if the mtime is same as original. Is there a way to force git s