From: Bob Bell <b_git@thebellsplace.com>
To: git@vger.kernel.org
Subject: Using clean/smudge scripts from repository
Date: Tue, 9 Jun 2015 21:53:50 -0400 [thread overview]
Message-ID: <20150610015349.GA5417@robin.thebellsplace.net> (raw)
I'm setting up a clean/smudge filter for a repository. In local testing
it seemed to work well. To allow for the clean/smudge scripts to be
updated as the source changes, I put the clean/smudge scripts into the
repository, and configured the filter in my ~/.gitconfig file to be
simply "./filter --clean" and "./filter --smudge".
However, when cloning a fresh repository instance, that's breaking
because a file with the filter set by .gitattributes is getting created
BEFORE the filter script itself exists.
Playing around with things, I realized that alphabetically the filter
script came after the filename being filtered. So I renamed the filter
to __filter, and that appears to have changed to order in which contents
are created during "git clone".
Is this a proper solution, or did I just "luck out"? Am I perhaps doing
something foolish?
Thanks,
Bob
next reply other threads:[~2015-06-10 2:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-10 1:53 Bob Bell [this message]
2015-06-10 15:22 ` Using clean/smudge scripts from repository Junio C Hamano
2015-06-10 20:55 ` Bob Bell
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=20150610015349.GA5417@robin.thebellsplace.net \
--to=b_git@thebellsplace.com \
--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;
as well as URLs for NNTP newsgroup(s).