From: Johannes Sixt <j.sixt@viscovery.net>
To: Jari Aalto <jari.aalto@cante.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-filter-branch.txt: mention absolute path for scripts in --tree-filter
Date: Mon, 15 Mar 2010 10:30:30 +0100 [thread overview]
Message-ID: <4B9DFE36.3010707@viscovery.net> (raw)
In-Reply-To: <87vdcy7zyu.fsf@jondo.cante.net>
Jari Aalto schrieb:
> Signed-off-by: Jari Aalto <jari.aalto@cante.net>
> ---
> Documentation/git-filter-branch.txt | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt
> index 020028c..01bd0ad 100644
> --- a/Documentation/git-filter-branch.txt
> +++ b/Documentation/git-filter-branch.txt
> @@ -91,6 +91,9 @@ OPTIONS
> is then used as-is (new files are auto-added, disappeared files
> are auto-removed - neither .gitignore files nor any other ignore
> rules *HAVE ANY EFFECT*!).
> ++
> +In case the <command> is a shell script, provide an absolute path.
> +An example: --tree-filter 'sh /path/to/filter.sh'
Your choice of words is ambiguous: The --tree-filter is not the name of a
shell script, but rather the shell script itself; the example you gave is
just a shell script that happens to run only a shell on a file whose name
must be specified as an absolute path.
But doesn't the recommendation to use absolute paths apply not only to
--tree-filters, but
- to all filters;
- to all references to external files that the filters make.
I'm saying "recommendation" because git-filter-branch does not switch
directory ad lib., so theoretically, it would be possible to use relative
paths, even though the base of the relative paths would be non-obvious
because it is from inside a temporary directory named ".git-rewrite/t"
that is allocated next to .git.
-- Hannes
next prev parent reply other threads:[~2010-03-15 9:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-15 8:26 [PATCH] git-filter-branch.txt: mention absolute path for scripts in --tree-filter Jari Aalto
2010-03-15 9:30 ` Johannes Sixt [this message]
2010-03-15 11:32 ` Jari Aalto
2010-03-15 11:57 ` Johannes Sixt
2010-03-15 17:14 ` Junio C Hamano
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=4B9DFE36.3010707@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=git@vger.kernel.org \
--cc=jari.aalto@cante.net \
/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).