Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Add an option to accept patches without squashing #287

Closed
wants to merge 3 commits into from

Conversation

dmlap
Copy link
Member

@dmlap dmlap commented May 28, 2015

It can actually be more confusing to squash commits in simple PRs so offer the ability to accept them without squashing.

It can actually be more confusing to squash commits in simple PRs so offer the ability to accept them without squashing.
@forbesjo
Copy link
Contributor

LGTM

dmlap added 2 commits May 28, 2015 14:07
Align command descriptions.
Don't fast-forward merges.
{ "prompt": "text", "id": "line", "desc": "Describe this change in one line" },
[ "grunt chg-add:'{{line}} ([view](https\\://github.com/{{meta.org}}/{{meta.name}}/pull/{{prNum}}))'", "Add a line to the changelog" ],
[ "git add CHANGELOG.md", "Add the changlelog change to be committed" ],
[ "git commit -a --author='{{prCommits.[0].commit.author.name}} <{{prCommits.[0].commit.author.email}}>' -m '{{line}}. closes #{{prNum}}'", "Commit the changes" ],
Copy link
Member

Choose a reason for hiding this comment

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

If you know there's going to be a merge commit, you might be able to do a git commit --amend and add the changelog change and the message to the merge commit, saving an additional commit. Though I'm not exactly sure how you might prepend to the commit message.

Copy link
Member

Choose a reason for hiding this comment

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

Possibly --reedit-message=<commit>. But also how you have it now is perfectly fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, it would be nice to piggyback the changelog onto the merge commit.

@dmlap dmlap closed this in 2996316 May 28, 2015
@dmlap dmlap deleted the accept-as-is branch May 28, 2015 18:22
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