Skip to content

Commit 1cdc3e0

Browse files
committed
Merge #311: sync-upstream: Extend git usage tips
41cead8 sync-upstream: Extend git usage tips (Tim Ruffing) Pull request description: ACKs for top commit: jonasnick: ACK 41cead8 Tree-SHA512: ce484d8235a6079be34257bfe859786d2fa666c2f373db7742030210118b8186f8b975517a24be60ee566682d2cdc217f6f10a36ae9c96c9f592dc3c2f5b4331
2 parents d176205 + 41cead8 commit 1cdc3e0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

contrib/sync-upstream.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,17 @@ do
116116
done
117117
# Remove trailing ","
118118
TITLE=${TITLE%?}
119-
BODY=$(printf "%s\n\n%s\n%s" "$BODY" "This PR can be recreated with \`$REPRODUCE_COMMAND\`." "Tip: Use \`git show --remerge-diff\` to show the changes manually added to the merge commit.")
119+
BODY+=$(cat <<EOF
120+
121+
122+
This PR can be recreated with \`$REPRODUCE_COMMAND\`.
123+
124+
Tips:
125+
* Use \`git show --remerge-diff <pr-branch>\` to show the conflict resolution in the merge commit.
126+
* Use \`git read-tree --reset -u <pr-branch>\` to replay these resolutions during the conflict resolution stage when recreating the PR branch locally.
127+
Be aware that this may discard your index as well as the uncommitted changes and untracked files in your worktree.
128+
EOF
129+
)
120130

121131
echo "-----------------------------------"
122132
echo "$TITLE"

0 commit comments

Comments
 (0)