Gaslight Deceive Subvert
Gaslight Deceive Subvert

Reputation: 20401

Determining why github says "Closed with unmerged commits"

I sometimes contribute pull requests to an upstream repo. Someone applies my pr to master and closes it. Then github says "Closed with unmerged commits". Why?

What I want to figure out what, if any, code edits I made on the branch that I created the pr from that did not get included (applied or ~merged) into the upstream repo's mater branch. I don't want to perform "manual inspection" and instead want one, or several, cli git commands that will show me exactly what those code edits are.

Upvotes: 8

Views: 2917

Answers (1)

ek9
ek9

Reputation: 3442

This just happened for me on GitHub and I have found another reason, besides the one mentioned by @twalberg in comments:

  1. They could have created a patch from your forked repository and applied it. This is with the help of format-patch command:

    $ git format-patch branch --stdout > file.patch

  2. (stated by @twalberg in comments) They could have used cherry-pick, which applies changes in a single commit.

These actions make sense for small changes when merging from a branch (in-case the patch is in separate branch on forked repository) or rebasing isn't needed.

Upvotes: 4

Related Questions