Skip to content

Allow git amend message only#91838

Merged
joaomoreno merged 2 commits intomicrosoft:masterfrom
mathiasvr:amend-message
Nov 5, 2020
Merged

Allow git amend message only#91838
joaomoreno merged 2 commits intomicrosoft:masterfrom
mathiasvr:amend-message

Conversation

@mathiasvr
Copy link
Contributor

Allows Git Commit (Amend) and Commit Staged (Amend) when there are no file changes, so only the message will be updated.

This has the same behavior as currently running Commit Staged (Amend) with no staged files, but some file changes.

This PR fixes #89923.

@joaomoreno joaomoreno added the git GIT issues label Mar 31, 2020
@joaomoreno
Copy link
Member

Very elegant! 🍻 Thanks!

@joaomoreno joaomoreno added this to the November 2020 milestone Nov 5, 2020
@joaomoreno joaomoreno merged commit 7328c3c into microsoft:master Nov 5, 2020
@mathiasvr mathiasvr deleted the amend-message branch November 5, 2020 17:35
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 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.

Commit (Amend) doesn't allow changing the commit message if there are no working changes

2 participants