Code

Documentation/git-sh-setup.txt: programmer's docs
[git.git] / git-revert.sh
index c74af99a5165a4e2671761fd0977211fc7b4f663..bb8f1ca24aadf47734049b740be8f539e0e9325d 100755 (executable)
@@ -146,6 +146,12 @@ cherry-pick)
 
 esac >.msg
 
+eval GITHEAD_$head=HEAD
+eval GITHEAD_$next='`git show -s \
+       --pretty=oneline --encoding="$encoding" "$commit" |
+       sed -e "s/^[^ ]* //"`'
+export GITHEAD_$head GITHEAD_$next
+
 # This three way merge is an interesting one.  We are at
 # $head, and would want to apply the change between $commit
 # and $prev on top of us (when reverting), or the change between