File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8383---
8484
8585# ## Credits
86- Inspired by *Graphite* and *Gerrit* workflows but implemented with plain git + GitHub CLI.
86+ Inspired by *Graphite* and *Gerrit* workflows but implemented with plain git + GitHub CLI.
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ skip_if_clean() {
3030 # If BASE is already an ancestor of BRANCH *and*
3131 # the squash commit is already in history, we're done.
3232 git merge-base --is-ancestor " origin/$BASE " " origin/$BRANCH " \
33- && git merge-base --is-ancestor " $ SQUASH_COMMIT" " origin/$BRANCH "
33+ && git merge-base --is-ancestor SQUASH_COMMIT " origin/$BRANCH "
3434}
3535
3636format_branch_list_for_text () {
@@ -62,8 +62,8 @@ update_direct_target() {
6262 CONFLICTS+=(" origin/$MERGED_BRANCH " )
6363 git merge --abort
6464 fi
65- if ! log_cmd git merge --no-edit " ${ SQUASH_COMMIT} ~ " ; then
66- CONFLICTS+=(" ${ SQUASH_COMMIT} ~ " )
65+ if ! log_cmd git merge --no-edit SQUASH_COMMIT~ ; then
66+ CONFLICTS+=( " $( git rev-parse SQUASH_COMMIT~ ) " )
6767 git merge --abort
6868 fi
6969
@@ -75,6 +75,7 @@ update_direct_target() {
7575 format_branch_list_for_text " ${CONFLICTS[@]} "
7676 echo
7777 echo " into this branch while updating the PR stack and hit conflicts."
78+ echo
7879 echo " #### How to resolve"
7980 echo ' ```bash'
8081 echo " git fetch origin"
You can’t perform that action at this time.
0 commit comments