llvm.org GIT mirror llvm / release_60 utils / git-svn / git-svnup
release_60

Tree @release_60 (Download .tar.gz)

git-svnup @release_60raw · history · blame

#!/bin/bash

if [ -n "`git status -uno -s --porcelain`" ]; then
    echo "You have unstashed changes. Can not update repository..."
    git status -uno
    exit 1
fi

git fetch
OLD_BRANCH=$(git rev-parse --abbrev-ref HEAD)
git checkout master 2> /dev/null
git svn rebase -l
git checkout $OLD_BRANCH 2> /dev/null

exit 0