Re: file rename causes history to disappear

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Randal L. Schwartz <merlyn@...>
Cc: Linus Torvalds <torvalds@...>, <git@...>
Date: Wednesday, September 6, 2006 - 8:52 pm

merlyn@stonehenge.com (Randal L. Schwartz) writes:


If your path is "foo.c[1]" then "foo.c[1]" as fnmatch() pattern
would not obviously match it, which is sad.

However, we do try to match the path literally before falling
back to fnmatch() so in practice I do not think  it is so bad.

$ git ls-files -s ;# everybody has "hello world".
100644 3b18e512dba79e4c8300dd08aeb37f8e728b8dad 0	foo.c
100644 3b18e512dba79e4c8300dd08aeb37f8e728b8dad 0	foo/bar[1]/baz/boa.c
100644 3b18e512dba79e4c8300dd08aeb37f8e728b8dad 0	foo/bar[2].c
$ git grep hello -- 'foo/bar[1]'
foo/bar[1]/baz/boa.c:hello world
$ git grep hello -- 'foo/bar[[]*[]]*'
foo/bar[1]/baz/boa.c:hello world
foo/bar[2].c:hello world
$ git grep hello -- 'fo*'
foo.c:hello world
foo/bar[1]/baz/boa.c:hello world
foo/bar[2].c:hello world
$ exit

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
file rename causes history to disappear, Jeff Garzik, (Wed Sep 6, 10:52 am)
Re: file rename causes history to disappear, Linus Torvalds, (Wed Sep 6, 11:38 am)
Re: file rename causes history to disappear, Jeff Garzik, (Wed Sep 6, 11:46 am)
Re: file rename causes history to disappear, Linus Torvalds, (Wed Sep 6, 12:14 pm)
Re: file rename causes history to disappear, Linus Torvalds, (Wed Sep 6, 12:37 pm)
Re: file rename causes history to disappear, Junio C Hamano, (Wed Sep 6, 3:29 pm)
Re: file rename causes history to disappear, Alex Riesen, (Thu Sep 7, 6:16 am)
Re: file rename causes history to disappear, Randal L. Schwartz, (Wed Sep 6, 5:45 pm)
Re: file rename causes history to disappear, Junio C Hamano, (Wed Sep 6, 8:52 pm)
Re: file rename causes history to disappear, Timo Hirvonen, (Wed Sep 6, 11:05 am)