Git development
 help / color / mirror / Atom feed
* Re: [PATCH] allow pathspec to end with a slash
@ 2005-05-31 15:32 Linus Torvalds
  2005-05-31 20:08 ` Junio C Hamano
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Linus Torvalds @ 2005-05-31 15:32 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Mailing List


Junio, 
 pathspec is still subtly broken.

Just removing the slash at the end is not the right thing to do, since 
that means that

	git-diff-files drivers/char/

will trigger on a _file_ "drivers/char", even though the spec makes it 
unambiguous that the user only wants to see stuff under that directory.

Again, git-diff-tree gets this right (not to say that it always did - I
had to fix "interesting()" several times, exactly because it's not that 
simple).

		Linus

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-06-01  3:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-31 15:32 [PATCH] allow pathspec to end with a slash Linus Torvalds
2005-05-31 20:08 ` Junio C Hamano
2005-05-31 21:47 ` [PATCH 1/2] diff: consolidate test helper script pieces Junio C Hamano
2005-05-31 21:48 ` [PATCH 2/2] diff: Fix trailing slash handling Junio C Hamano
2005-05-31 21:49 ` [PATCH] ls-tree: remove trailing slashes properly Junio C Hamano
2005-05-31 22:19   ` Linus Torvalds
2005-05-31 22:35     ` Junio C Hamano
2005-05-31 23:18     ` [PATCH] ls-tree: handle trailing slashes in the pathspec properly Junio C Hamano
2005-05-31 23:48       ` Linus Torvalds
2005-06-01  1:46         ` Junio C Hamano
2005-06-01  3:51           ` Linus Torvalds
2005-05-31 23:22     ` [PATCH] ls-tree: remove trailing slashes properly Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox