Home | History | Annotate | Download | only in git-svn

Lines Matching refs:COMMIT

5     echo "$0 <commit to revert>"
15 COMMIT=$1
17 SVN_REVISION=$(git svn find-rev "$COMMIT")
19 echo "Error! Could not find an svn revision for commit $COMMIT!"
23 # Grab the one line message for our revert commit message.
24 ONE_LINE_MSG=$(git log --oneline $COMMIT -1 | cut -f2- -d " ")
26 # Revert the commit.
27 git revert --no-commit $COMMIT 2>/dev/null
29 echo "Error! Failed to revert commit $COMMIT. Resetting to head."
39 This reverts commit r$SVN_REVISION.
42 # Begin the commit but give our user an opportunity to edit it.
43 git commit --file="$TEMPLATE" --edit
45 echo "Error! Failed to commit reverting commit for commit $COMMIT. Reverting to head."