Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PatchSeries: use merge base for the --base argument#21

Merged
derrickstolee merged 2 commits intogitgitgadget:mastergitgitgadget/gitgitgadget:masterfrom
dscho:use-merge-base-explicitlydscho/gitgitgadget:use-merge-base-explicitlyCopy head branch name to clipboard
Jul 16, 2018
Merged

PatchSeries: use merge base for the --base argument#21
derrickstolee merged 2 commits intogitgitgadget:mastergitgitgadget/gitgitgadget:masterfrom
dscho:use-merge-base-explicitlydscho/gitgitgadget:use-merge-base-explicitlyCopy head branch name to clipboard

Conversation

@dscho
Copy link
Member

@dscho dscho commented Jul 16, 2018

The git format-patch command is really unhappy when we specify a --base argument that is not an ancestor of the processed commits.

And while there is support for --base=auto, that option is absolutely useless for our use case, as it inserts the merge base of the current branch and its upstream, both of which are of course nonsensical in GitGitGadget's case.

So let's just spawn yet another process to get the correct merge base.

This should address the problem that is holding up gitgitgadget/git#10.

The `git format-patch` command is really unhappy when we specify a
`--base` argument that is not an ancestor of the processed commits.

And while there is support for `--base=auto`, that option is absolutely
useless for our use case, as it inserts the merge base of the *current*
branch and *its upstream*, both of which are of course nonsensical in
GitGitGadget's case.

So let's just spawn yet another process to get the correct merge base.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho requested a review from derrickstolee July 16, 2018 12:50
Copy link
Contributor

@derrickstolee derrickstolee left a comment

Choose a reason for hiding this comment

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

I think this is the best way to do it. It gets the right merge-base, with fewer possible mistakes.

@derrickstolee derrickstolee merged commit 3429aab into gitgitgadget:master Jul 16, 2018
@dscho dscho deleted the use-merge-base-explicitly branch July 16, 2018 13:00
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.