▲ 1120 ▼ Rebase Supremacy (programming.dev) submitted 2 years ago by JPDev@programming.dev to c/programmer_humor@programming.dev 235 comments fedilink hide all child comments
[–] Atemu@lemmy.ml 5 points 2 years ago (4 children) Merge is not the issue here, rebase would do the same. permalink fedilink source parent hideshow 4 child comments replies: [–] tengkuizdihar@programming.dev 3 points 2 years ago (3 children) really? how come? I thought they are mentioned because of the diffs if compared to master, which merge basically just... merge on top of my branch (?) permalink fedilink source parent hideshow 3 child comments replies: [–] Atemu@lemmy.ml 2 points 2 years ago (2 children) They were mentioned because a file they are the code owner of was modified in the PR. The modifications came from another branch which you accidentally(?) merged into yours. The problem is that those commits weren't in master yet, so GH considers them to be part of the changeset of your branch. If they were in master already, GH would only consider the merge commit itself part of the change set and it does not contain any changes itself (unless you resolved a conflict). If you had rebased atop of the other branch, you would have still had the commits of the other branch in your changeset; it'd be as if you tried to merge the other branch into master + your changes. permalink fedilink source parent hideshow 2 child comments replies: [–] Bourff@lemmy.world -1 points 2 years ago* (1 child) Just for the record, I think you're conflating git and GitHub. They are not the same thing, even if GH would like you to think so. permalink fedilink source parent hideshow 1 child comment replies: [–] Atemu@lemmy.ml 2 points 2 years ago I am not. Read the context mate. permalink fedilink source parent
[–] tengkuizdihar@programming.dev 3 points 2 years ago (3 children) really? how come? I thought they are mentioned because of the diffs if compared to master, which merge basically just... merge on top of my branch (?) permalink fedilink source parent hideshow 3 child comments replies: [–] Atemu@lemmy.ml 2 points 2 years ago (2 children) They were mentioned because a file they are the code owner of was modified in the PR. The modifications came from another branch which you accidentally(?) merged into yours. The problem is that those commits weren't in master yet, so GH considers them to be part of the changeset of your branch. If they were in master already, GH would only consider the merge commit itself part of the change set and it does not contain any changes itself (unless you resolved a conflict). If you had rebased atop of the other branch, you would have still had the commits of the other branch in your changeset; it'd be as if you tried to merge the other branch into master + your changes. permalink fedilink source parent hideshow 2 child comments replies: [–] Bourff@lemmy.world -1 points 2 years ago* (1 child) Just for the record, I think you're conflating git and GitHub. They are not the same thing, even if GH would like you to think so. permalink fedilink source parent hideshow 1 child comment replies: [–] Atemu@lemmy.ml 2 points 2 years ago I am not. Read the context mate. permalink fedilink source parent
[–] Atemu@lemmy.ml 2 points 2 years ago (2 children) They were mentioned because a file they are the code owner of was modified in the PR. The modifications came from another branch which you accidentally(?) merged into yours. The problem is that those commits weren't in master yet, so GH considers them to be part of the changeset of your branch. If they were in master already, GH would only consider the merge commit itself part of the change set and it does not contain any changes itself (unless you resolved a conflict). If you had rebased atop of the other branch, you would have still had the commits of the other branch in your changeset; it'd be as if you tried to merge the other branch into master + your changes. permalink fedilink source parent hideshow 2 child comments replies: [–] Bourff@lemmy.world -1 points 2 years ago* (1 child) Just for the record, I think you're conflating git and GitHub. They are not the same thing, even if GH would like you to think so. permalink fedilink source parent hideshow 1 child comment replies: [–] Atemu@lemmy.ml 2 points 2 years ago I am not. Read the context mate. permalink fedilink source parent
[–] Bourff@lemmy.world -1 points 2 years ago* (1 child) Just for the record, I think you're conflating git and GitHub. They are not the same thing, even if GH would like you to think so. permalink fedilink source parent hideshow 1 child comment replies: [–] Atemu@lemmy.ml 2 points 2 years ago I am not. Read the context mate. permalink fedilink source parent
[–] Atemu@lemmy.ml 2 points 2 years ago I am not. Read the context mate. permalink fedilink source parent