Skip to content

Git commit using '--signoff' - #10410

Merged
João Moreno (joaomoreno) merged 2 commits into
microsoft:masterfrom
FabianLauer:git-signoff
Aug 12, 2016
Merged

João Moreno (joaomoreno) merged 2 commits into
microsoft:masterfrom
FabianLauer:git-signoff

Conversation

@FabianLauer

Copy link
Copy Markdown

This PR addresses issue #7010. It adds support for committing with the --signoff flag enabled.

Instead of using a checkbox under the commit message input as suggested by French Ben (@FrenchBen) in the original issue, I added 2 actions to the context menu since signed off commits are fairly rare.

vscode-git-signoff-actions

Fabian Lauer added 2 commits August 10, 2016 23:13
This adds 2 actions to the context menu in the git changes view: 'Commit Staged (Signed Off)' and 'Commit All (Signed Off)'.
@msftclas

Hi Fabian Lauer (@FabianLauer), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@msftclas

Fabian Lauer (@FabianLauer), Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, MSBOT;

@joaomoreno

Copy link
Copy Markdown
Contributor

Thanks!

@FabianLauer

Copy link
Copy Markdown
Author

Awesome, thanks! 😃
I hope I didn't cause you more work than the PR saved, looks like you made quite a few changes in these files afterwards 😳

@joaomoreno

Copy link
Copy Markdown
Contributor

No no, thank you! It was pretty great already, I simply did small refactorings. Most importantly, I made a protected abstract commit() on the BaseCommitAction, which lets us reuse most of the code between all those actions. 👍

@FabianLauer

Copy link
Copy Markdown
Author

Great, thanks for the insight, very helpful 😃

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants