* on-any-overwrite hook, filename for smudge filter?
@ 2009-12-13 17:55 Moe
0 siblings, 0 replies; only message in thread
From: Moe @ 2009-12-13 17:55 UTC (permalink / raw)
To: git
Hello git family.
I'm looking for a way to reliably preserve permissions in a repository.
I found the excellent metastore-utility[1] (which also backs etckeeper),
but it hooks into git-pull and can miss file overwrites caused by other
operations.
The closest I found to a global "on-any-file-overwrite" hook would be
the "smudge" filter-command as described in gitattributes(5).
Unfortunately the smudge-command seems to never learn
about a filename but merely filters stdin -> stdout.
The regular hooks don't cut it either, as for example the git-merge
hook doesn't run on partial merges ("XXX needs update").
So, is there a way to run a script after git has
overwritten any local file for any reason?
Best, Moe
[1] http://git.hardeman.nu/?p=metastore.git
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-13 18:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-13 17:55 on-any-overwrite hook, filename for smudge filter? Moe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox