Another comment.
authorStephen Haberman <stephen@exigencecorp.com>
Tue, 24 Jun 2008 17:18:16 +0000 (12:18 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Tue, 24 Jun 2008 17:18:16 +0000 (12:18 -0500)
server/update-prefer-rebase

index 5ae3d84..5d9948a 100644 (file)
@@ -41,6 +41,7 @@ if expr "$oldrev" : '0*$' >/dev/null ; then
        exit 0
 fi
 
+# Read backwards: all commits from old..new, unless they are already referenced by a branch
 git rev-parse --not --branches | git rev-list --stdin $oldrev..$newrev | while read commit ; do
        number_of_parents=$(git rev-list -n 1 --parents $commit | sed 's/ /\n/g' | grep -v $commit | wc -l)
        if [[ $number_of_parents > 1 ]] ; then