git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* update index mtime etc metadata
@ 2015-12-14 20:44 Joey Hess
  2015-12-15 11:17 ` Duy Nguyen
  0 siblings, 1 reply; 2+ messages in thread
From: Joey Hess @ 2015-12-14 20:44 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 732 bytes --]

Is there any available plumbing that can change the mtime etc metadata
that is recorded in the index for a file, to user-provided values? Or,
to force the current file stat metadata to be updated in the index?

I know, git update-index --refresh, but I have a case where that's too
expensive. I'm using smudge filters; I know that the cleaned version of
the file will be unchanged from what's in the index now and only the
stat metadata will change, and so I want to avoid
git update-index --refresh running the clean filter, which can
be quite expensive for a large file.

At the moment I don't see a way to do it other than using eg libgit2 to
update the appropriate fields in the index structure.

-- 
see shy jo

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-15 11:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-14 20:44 update index mtime etc metadata Joey Hess
2015-12-15 11:17 ` Duy Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).