X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-am.sh;h=9df951a597d6b9ec5f7f390c35a60adb942a3fdc;hb=7337b138bf47a8f7d8da400710014006386d31cc;hp=c8b9cbb101f1319b6efd78ff6ae9c63efcdc991b;hpb=b10b9184afc9e62140d307dcf2f5d7e625f78c79;p=git.git diff --git a/git-am.sh b/git-am.sh index c8b9cbb10..9df951a59 100755 --- a/git-am.sh +++ b/git-am.sh @@ -25,7 +25,8 @@ p= pass it through git-apply patch-format= format the patch(es) are in reject pass it through git-apply resolvemsg= override error message when patch failure occurs -r,resolved to be used after a patch failure +continue continue applying patches after resolving a conflict +r,resolved synonyms for --continue skip skip the current patch abort restore the original branch and abort the patching operation. committer-date-is-author-date lie about committer date @@ -318,7 +319,7 @@ do scissors=t ;; --no-scissors) scissors=f ;; - -r|--resolved) + -r|--resolved|--continue) resolved=t ;; --skip) skip=t ;; @@ -662,10 +663,7 @@ do [eE]*) git_editor "$dotest/final-commit" action=again ;; [vV]*) action=again - : ${GIT_PAGER=$(git var GIT_PAGER)} - : ${LESS=-FRSX} - export LESS - $GIT_PAGER "$dotest/patch" ;; + git_pager "$dotest/patch" ;; *) action=again ;; esac done @@ -775,6 +773,5 @@ do go_next done -git gc --auto - rm -fr "$dotest" +git gc --auto