From: Junio C Hamano <gitster@pobox.com>
To: Johannes Sixt <j6t@kdbg.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 08/10] t2200, t7004: Avoid glob pattern that also matches files
Date: Wed, 18 Mar 2009 17:47:21 -0700 [thread overview]
Message-ID: <7v7i2mbap2.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <3827d7fab3e9e233a0ac528b84ab2d6a36658365.1237410682.git.j6t@kdbg.org> (Johannes Sixt's message of "Wed, 18 Mar 2009 22:27:10 +0100")
Johannes Sixt <j6t@kdbg.org> writes:
> On Windows, there is an unfortunate interaction between the MSYS bash and
> git's command line processing:
>
> - Since Windows's CMD does not do the wildcard expansion, but passes
> arguments like path* through to the programs, the programs must do the
> expansion themselves. This happens in the startup code before main() is
> entered.
>
> - bash, however, passes the argument "path*" to git, assuming that git will
> see the unquoted word unchanged as a single argument.
>
> But actually git expands the unquoted word before main() is entered.
Doesn't this mean on Windows, the glob pathspec git supports is not useful
at all?
I am wondering if we want to treat any feature that involves globs as
unusable like any feature that involves pathnames with a TAB in it.
> In t2200, not all names that the test case is interested in exist as files
> at the time when 'git ls-files' is invoked. git expands "path?" to only
> the subset of files the exist, and only that subset was listed, so that the
> test failed. We now list all interesting paths explicitly.
But that conversion misses the whole point of that particular test,
doesn't it? It wants to see path2 that was unmerged and existed only in
the index but not in the work tree has disappeared, while the similarly
unmerged path1 resolved after "add -u". IOW, you are not testing that
"add -u" notices a removal of path2 from the work tree anymore.
next prev parent reply other threads:[~2009-03-19 0:49 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-18 21:27 [PATCH 00/11] Test on Windows - prequel Johannes Sixt
2009-03-18 21:27 ` [PATCH 01/10] t9400, t9401: Do not force hard-linked clone Johannes Sixt
2009-03-18 21:27 ` [PATCH 02/10] test suite: Use 'say' to say something instead of 'test_expect_success' Johannes Sixt
2009-03-18 22:07 ` Johannes Schindelin
2009-03-19 7:48 ` Johannes Sixt
2009-03-19 10:29 ` Johannes Schindelin
2009-03-19 11:16 ` Junio C Hamano
2009-03-18 21:27 ` [PATCH 03/10] Call 'say' outside test_expect_success Johannes Sixt
2009-03-18 21:27 ` [PATCH 04/10] test-lib: Replace uses of $(expr ...) by POSIX shell features Johannes Sixt
2009-03-18 22:28 ` Johannes Schindelin
2009-03-19 7:38 ` Johannes Sixt
2009-03-19 10:27 ` Johannes Schindelin
2009-03-18 21:27 ` [PATCH 05/10] test-lib: Simplify test counting Johannes Sixt
2009-03-18 22:32 ` Johannes Schindelin
2009-03-19 7:44 ` Johannes Sixt
2009-03-18 21:27 ` [PATCH 06/10] test-lib: Introduce test_chmod and use it instead of update-index --chmod Johannes Sixt
2009-03-18 21:27 ` [PATCH 07/10] t7300: fix clean up on Windows Johannes Sixt
2009-03-18 21:27 ` [PATCH 08/10] t2200, t7004: Avoid glob pattern that also matches files Johannes Sixt
2009-03-19 0:47 ` Junio C Hamano [this message]
2009-03-19 19:52 ` Johannes Sixt
2009-03-19 20:34 ` Junio C Hamano
2009-03-18 21:27 ` [PATCH 09/10] t5300, t5302, t5303: Do not use /dev/zero Johannes Sixt
2009-03-18 21:27 ` [PATCH 10/10] t5602: Work around path mangling on MSYS Johannes Sixt
2009-03-18 22:47 ` [PATCH 00/11] Test on Windows - prequel Junio C Hamano
2009-03-19 7:28 ` Johannes Sixt
2009-03-19 20:58 ` Johannes Sixt
2009-03-19 23:00 ` 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=7v7i2mbap2.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=j6t@kdbg.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).