diff options
author | ZyX <kp-pav@yandex.ru> | 2017-05-08 21:28:41 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-05-08 21:28:41 +0300 |
commit | b4f0586596cb4c5cea77a1bbca5cb3a479f2b910 (patch) | |
tree | 65347e09d629ca56eaa157626970e6fc9534197c | |
parent | a9605bb4aff76a934a4c39fbda093ee8fc8a1c71 (diff) | |
download | rneovim-b4f0586596cb4c5cea77a1bbca5cb3a479f2b910.tar.gz rneovim-b4f0586596cb4c5cea77a1bbca5cb3a479f2b910.tar.bz2 rneovim-b4f0586596cb4c5cea77a1bbca5cb3a479f2b910.zip |
CONTRIBUTING.md: Fix ri alias
-rw-r--r-- | CONTRIBUTING.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f442ceb672..755d35e559 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -43,7 +43,7 @@ Pull requests ("PRs") - Use the `ri` git alias: ``` [alias] - ri = "!sh -c 't=\"${1:-master}\" ; s=\"${2:-HEAD}\" ; if git merge-base --is-ancestor \"$t\" \"$s\" ; then o=\"$t\" ; else mb=\"$(git merge-base \"$t\" \"$s\")\" ; if test \"x$mb\" = x ; then o=\"$t\" ; else lm=\"$(git log -n1 --merges \"$t..$s\" --pretty=%H)\" ; if test \"x$lm\" = x ; then o=\"$mb\" ; else o=\"$lm\" ; fi ; fi ; fi ; [ $# -gt 0 ] && shift ; [ $# -gt 0 ] && shift ; git rebase --interactive \"$o\" \"$@\"' -" + ri = "!sh -c 't=\"${1:-master}\"; s=\"${2:-HEAD}\"; mb=\"$(git merge-base \"$t\" \"$s\")\"; if test \"x$mb\" = x ; then o=\"$t\"; else lm=\"$(git log -n1 --merges \"$t..$s\" --pretty=%H)\"; if test \"x$lm\" = x ; then o=\"$mb\"; else o=\"$lm\"; fi; fi; test $# -gt 0 && shift; test $# -gt 0 && shift; git rebase --interactive \"$o\" \"$@\"'" ``` This avoids unnecessary rebases yet still allows you to combine related commits, separate monolithic commits, etc. |