From: Junio C Hamano Date: Sat, 2 Feb 2008 03:06:56 +0000 (-0800) Subject: Fix "git checkout -b foo ':/substring'" X-Git-Tag: v1.5.4~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7dc46429896d6292d71391ff7e5f95fec1370b51?ds=inline;hp=7dc46429896d6292d71391ff7e5f95fec1370b51 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 ---