From: Moe <moe@signalbeam.net>
To: git@vger.kernel.org
Subject: on-any-overwrite hook, filename for smudge filter?
Date: Sun, 13 Dec 2009 18:55:54 +0100 [thread overview]
Message-ID: <4B252AAA.2070203@signalbeam.net> (raw)
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
reply other threads:[~2009-12-13 18:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4B252AAA.2070203@signalbeam.net \
--to=moe@signalbeam.net \
--cc=git@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox