Re: What's cooking in git.git (Jan 2010, #01; Mon, 04)
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 6, 2010, 07:47 UTC
- Message-ID
- <7vzl4r7jyu.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4B43A5CA.7090104@kdbg.org>
Johannes Sixt <j6t@kdbg.org> writes:
Show 10 quoted lines
> Junio C Hamano schrieb: >> While you are technically correct that the change you made in t4030 is not >> justified by the commit log message in the sense that the "hexdump" script >> will go through run_command() interface and is not subject to the special >> rules filter writers need to keep in mind, the patch text itself is a good >> change, isn't it? > > The patch text is good, but since it will not make a difference (and > there are a ton of other places that use /bin/sh successfully), the > change is not warrented at this time, IMO.
You are right (and Peff also corrected me).
Show 8 quoted lines
>> As "run-command: convert simple callsites to use_shell" is the one that >> changes the filter_buffer(), do you want to have t0021 patch before that >> one, to prepare the test for the coming change? > > Well, the test will break on Windows only after "run-command: optimize > out useless shell calls", and I wrote the commit message > accordingly. If you move it before that one (and if you are picky) the > commit message should be changed as well.
Yeah, I've reworded that one with a phrase "futureproof".
Regarding your "[PATCH 8/6] t4030, t4031", I have two questions:
Recall that MSYS bash converts POSIX style absolute paths to Windows style
absolute paths. Unfortunately, it converts a program argument that begins
with a double-quote and otherwise looks like an absolute POSIX path, but
in doing so, it strips everything past the second double-quote[*]. This
case is triggered in the two test scripts. The work-around is to place the
Windows style path between the quotes to avoid the path conversion.(1) Does "Windows style path" here mean what $(pwd) returns as opposed to
what is in $PWD?(2) The patch reads like this:
- git config diff.foo.textconv "\"$PWD\""/hexdump && + git config diff.foo.textconv "\"$(pwd)\""/hexdump &&
Does "strips everything past the second dq" mean "drops '/hexdump'"?
If so, would this also work (I am not suggesting to change it, just
asking for information)?- git config diff.foo.textconv "\"$PWD\""/hexdump && + git config diff.foo.textconv "\"$PWD/hexdump\"" &&
Thanks.