On 06/06/10 22:07, Jakub Narebski wrote: > > What disallowed ${} constructs? My mistake, I misread that part of CodingGuidelines. The following bash-specific implementation takes about 0.013 seconds: BRANCH=( $( git log --first-parent -1 \ --grep="^git-svn-id: $remote_branch" ) ) BRANCH=${BRANCH[ ${#BRANCH[@]} - 2 ]} BRANCH=${BRANCH%@*} BRANCH=${BRANCH#*$remote_branch/} Using an array here saves about 0.001 of a second. - Andrew -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html