Fix "git checkout -b foo ':/substring'"
commit7dc46429896d6292d71391ff7e5f95fec1370b51
authorJunio C Hamano <gitster@pobox.com>
Sat, 2 Feb 2008 03:06:56 +0000 (1 19:06 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 2 Feb 2008 03:08:14 +0000 (1 19:08 -0800)
tree330205405f9c88d18e5577de437e1f7883e6437b
parent0509eb216fef9451845376d8c92ff585994aecd8
Fix "git checkout -b foo ':/substring'"

Because ':/substring' extended SHA1 expression cannot take
postfix modifiers such as ^{tree} and ^{commit}, we would need
to do it in multiple steps.  With the patch, you can start a new
branch from a randomly-picked commit whose message has the named
string in it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-checkout.sh