Re: [PATCH] sha1_name.c: update comment to mention :/foo syntax
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 21, 2010, 23:29 UTC
- Message-ID
- <7vpqw6u142.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <vpq8w2ug8u0.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 8 quoted lines
>>> + * :/foo -> last commit whose subject starts with foo >> >> Documenting what hasn't been is a good thing, but is it really up-to-date? >> >> Isn't it "a randomly chosen recent commit whose subject contains regexp >> foo" these days? > > I don't know.
I was vaguely recalling this one when I wrote the above.
commit 57895105c4ff083d7c9bc59b2b88b9b5176c1915 Author: Linus Torvalds <torvalds@linux-foundation.org> Date: Fri Apr 23 08:20:20 2010 -0700
Make :/ accept a regex rather than a fixed pattern
This also makes it trigger anywhere in the commit message, rather than
just at the beginning. Which tends to be a lot more useful.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>