Lines Matching full:commit
15 COMMIT=$1
16 OTHER=$(git svn find-rev "$COMMIT")
18 echo "Error! Could not find an svn/git revision for commit $COMMIT!"
21 echo " * Your revision number ($COMMIT) is wrong"
22 echo " * This tree is not up to date (before that commit)"
23 echo " * This commit in in another three (llvm, clang, compiler-rt, etc)"
27 if [ -n "$(echo $COMMIT | grep '^r[0-9]\+')" ]; then
28 SVN=`echo $COMMIT | sed -e 's/^r//'`
32 GIT=$COMMIT
35 # Grab the one line message for our revert commit message.
38 # Revert the commit.
39 git revert --no-commit $GIT 2>/dev/null
41 echo "Error! Failed to revert commit r$SVN. Resetting to head."
51 This reverts commit r$SVN.
54 # Begin the commit but give our user an opportunity to edit it.
55 git commit --file="$TEMPLATE" --edit
57 echo "Error! Failed to commit reverting commit for commit r$SVN. Reverting to head."