X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-revert.sh;h=c19d3a6916ce9c5dccff09f6edfd8b5478b2e834;hb=2855d58079cd56361879cc03f7c769409bb445e5;hp=63d201be1bf810499cfeb7aecbc23ec15e171bb7;hpb=4e7824b12e71127f1e3cf76fe2855887599c0dc6;p=git.git diff --git a/git-revert.sh b/git-revert.sh index 63d201be..c19d3a69 100755 --- a/git-revert.sh +++ b/git-revert.sh @@ -93,6 +93,7 @@ revert) cherry-pick) pick_author_script=' /^author /{ + s/'\''/'\''\\'\'\''/g h s/^author \([^<]*\) <[^>]*> .*$/\1/ s/'\''/'\''\'\'\''/g @@ -140,8 +141,9 @@ git-read-tree -m -u $base $head $next && result=$(git-write-tree 2>/dev/null) || { echo >&2 "Simple $me fails; trying Automatic $me." git-merge-index -o git-merge-one-file -a || { - echo >&2 "Automatic $me failed. After fixing it up," - echo >&2 "you can use \"git commit -F .msg\"" + echo >&2 "Automatic $me failed. After resolving the conflicts," + echo >&2 "mark the corrected paths with 'git-update-index '" + echo >&2 "and commit with 'git commit -F .msg'" case "$me" in cherry-pick) echo >&2 "You may choose to use the following when making"