author | Junio C Hamano <gitster@pobox.com> | |
Sat, 2 Feb 2008 03:06:56 +0000 (19:06 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 2 Feb 2008 03:08:14 +0000 (19:08 -0800) | ||
commit | 7dc46429896d6292d71391ff7e5f95fec1370b51 | |
tree | 330205405f9c88d18e5577de437e1f7883e6437b | tree | snapshot |
parent | 0509eb216fef9451845376d8c92ff585994aecd8 | commit | diff |
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>
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 | diff | blob | history |