From: Karsten Blees <karsten.blees@gmail.com>
To: "Konstantin Khomoutov" <kostix+git@007spb.ru>,
"Konrád Lőrinczi" <klorinczi@gmail.com>
Cc: Sebastian Schuberth <sschuberth@gmail.com>, git@vger.kernel.org
Subject: Re: Git doesn't detect change, if file modification time is restored to original one
Date: Thu, 23 Jul 2015 17:16:13 +0200 [thread overview]
Message-ID: <55B1053D.7030006@gmail.com> (raw)
In-Reply-To: <20150723175342.77f635820fb9f1b69a73d39a@domain007.com>
Am 23.07.2015 um 16:53 schrieb Konstantin Khomoutov:
> On Thu, 23 Jul 2015 11:14:11 +0200
> Konrád Lőrinczi <klorinczi@gmail.com> wrote:
>
> [...]
>> I accept these solutions as workarounds, but the real solution would
>> be: Dev suggestions:
>> 1) Add a --force-reread option to git status, so user can force
>> reread tree. git status --force-reread
>>
>> 2) Add status.force-reread (true or false) option to .git/config so
>> user can set this variable permanently for a repo.
>> status.force-reread = false (should be default)
>>
>> Could be possible to implement 1) and 2) features to next git release?
>
> Could you explain what's your real use case with preserving mtimes
> while changing the files? I mean, implementing "mtime-stability"
> in your tools appears to be a good excersize in programming but what
> real-world problem does it solve?
>
I'd like to add that this is not a git-specific problem: resetting mtime
on purpose will fool lots of programs, including backup software, file
synchronization tools (rsync, xcopy /D), build systems (make), and web
servers / proxies (If-Modified-Since requests).
So you would typically reset mtime if you *want* programs to ignore the
changes.
next prev parent reply other threads:[~2015-07-23 15:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-23 7:29 Git doesn't detect change, if file modification time is restored to original one Konrád Lőrinczi
2015-07-23 7:58 ` Sebastian Schuberth
2015-07-23 9:14 ` Konrád Lőrinczi
2015-07-23 14:53 ` Konstantin Khomoutov
2015-07-23 15:16 ` Karsten Blees [this message]
2015-07-23 17:32 ` Junio C Hamano
2015-07-23 14:17 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55B1053D.7030006@gmail.com \
--to=karsten.blees@gmail.com \
--cc=git@vger.kernel.org \
--cc=klorinczi@gmail.com \
--cc=kostix+git@007spb.ru \
--cc=sschuberth@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.