Skip to content

Fix #323: Always accept local changes to resolve merge conflicts - #325

Merged
mdboom merged 4 commits into
mainfrom
handle-merge-conflicts
Jan 9, 2025
Merged

mdboom merged 4 commits into
mainfrom
handle-merge-conflicts

Conversation

@mdboom

@mdboom mdboom commented Jan 7, 2025

Copy link
Copy Markdown
Contributor

Cc: @mpage

@mdboom
mdboom requested a review from Copilot January 7, 2025 20:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Co-authored-by: mpage <mpage2@fb.com>
Comment on lines +236 to +237
git stash
git cherry-pick -n -m1 -Xtheirs stash

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also need to pull here and below?

Suggested change
git stash
git cherry-pick -n -m1 -Xtheirs stash
git stash
git pull -s recursive --rebase
git cherry-pick -n -m1 -Xtheirs stash

Comment on lines +332 to +333
git stash
git cherry-pick -n -m1 -Xtheirs stash

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
git stash
git cherry-pick -n -m1 -Xtheirs stash
git stash
git pull -s recursive --rebase
git cherry-pick -n -m1 -Xtheirs stash

@mdboom
mdboom requested review from Copilot and mpage January 8, 2025 15:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

bench_runner/templates/_benchmark.src.yml:335

  • The use of 'git cherry-pick -n -m1 -Xtheirs stash' is unusual and may not work as intended. Consider using 'git stash pop' or 'git stash apply' instead.
git cherry-pick -n -m1 -Xtheirs stash

# https://stackoverflow.com/questions/43770520/how-to-specify-default-merge-strategy-on-git-stash-pop
git stash
git pull -s recursive --rebase
git cherry-pick -n -m1 -Xtheirs stash

Copilot AI Jan 8, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The use of 'git cherry-pick -n -m1 -Xtheirs stash' is unusual and may not work as intended. Consider using 'git stash pop' or 'git stash apply' instead.

Suggested change
git cherry-pick -n -m1 -Xtheirs stash
git stash pop

Copilot uses AI. Check for mistakes.
# https://stackoverflow.com/questions/43770520/how-to-specify-default-merge-strategy-on-git-stash-pop
git stash
git pull -s recursive --rebase
git cherry-pick -n -m1 -Xtheirs stash

Copilot AI Jan 8, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The use of 'git cherry-pick -n -m1 -Xtheirs stash' is unusual and may not work as intended. Consider using 'git stash pop' or 'git stash apply' instead.

Suggested change
git cherry-pick -n -m1 -Xtheirs stash
git stash pop

Copilot uses AI. Check for mistakes.

@mpage mpage left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mdboom
mdboom merged commit 21d3626 into main Jan 9, 2025
@mdboom
mdboom deleted the handle-merge-conflicts branch April 18, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants