Skip to content

When resolving a merge conflict allow accepting the default message - #66522

Merged
João Moreno (joaomoreno) merged 1 commit into
microsoft:masterfrom
gawicks:master
Oct 15, 2019
Merged

When resolving a merge conflict allow accepting the default message#66522
João Moreno (joaomoreno) merged 1 commit into
microsoft:masterfrom
gawicks:master

Conversation

@gawicks

Copy link
Copy Markdown
Contributor

Fixes #6403

  • Populates the inputBox with the default commit message when a merge conflict occurs.

  • Comment lines ('#foo') are now shown in the input box, stripped away only when the actual commit happens.

@msftclas

Microsoft Contribution License Agreements (msftclas) commented Jan 15, 2019

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@gawicks

Copy link
Copy Markdown
Contributor Author

João Moreno (@joaomoreno) Anyway I can help to get this merged soon? 🤔😁

@joaomoreno João Moreno (joaomoreno) 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.

I'm not super exited about this:

Comment lines ('#foo') are now shown in the input box, stripped away only when the actual commit happens.

Some of us in the team actually have single lines like #123 to refer to github issues, so this will break.

@gawicks

Haritha Wickremasinghe (gawicks) commented Aug 27, 2019

Copy link
Copy Markdown
Contributor Author

João Moreno (@joaomoreno) I can implement what I've mentioned in a TODO comment and support ,git core.commentchar. Will that be good enough of a solution?

@joaomoreno

Copy link
Copy Markdown
Contributor

How will that help, given that # is the default command char?

@gawicks

Haritha Wickremasinghe (gawicks) commented Aug 30, 2019 via email

Copy link
Copy Markdown
Contributor Author

@joaomoreno

Copy link
Copy Markdown
Contributor

Oh I see, I misread the regex. Might not be so bad. I'll give it a try.

João Moreno (joaomoreno) added a commit that referenced this pull request Oct 15, 2019
@joaomoreno
João Moreno (joaomoreno) merged commit 23058be into microsoft:master Oct 15, 2019
@joaomoreno

Copy link
Copy Markdown
Contributor

Thanks for this, was able to get it to work. Had to tweak it a bit to play better with the commit template but overall it works nicely.

@gawicks

Copy link
Copy Markdown
Contributor Author

My pleasure. Thanks for the review

@joaomoreno

João Moreno (joaomoreno) commented Nov 21, 2019

Copy link
Copy Markdown
Contributor

Haritha Wickremasinghe (@gawicks) This will be reverted since it caused a lot of backlash. More info in: #84201

I will allow populating the input box with the default merge commit message, but I will strip away any comments:

image

@github-actions github-actions Bot locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

git GIT issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Git: When resolving a merge conflict allow accepting the default commit message

3 participants