guldkorn
guldkorn copied to clipboard
Workaround for rebase-merged commits/branches
Might this be solvable ...
https://github.com/mewmew/guldkorn/blob/113db2cc84ad3035ab2b0fef3fa93dfcc4562da5/main.go#L215-L222
... by checking the origin's commit list for a commit with matching author AND a different committer or for the same message?
I tried the rather dirty git-based way just now, but this didn't work:
git clone --depth=1 ORIGIN_URLgit remote add $forkRepoName FORK_URLgit fetch --depth=1 $forkRepoName $forkBranchName- Then,
git diff --exit-code$defaultBranch $forkRepoName/$forkBranchNamedidn't produce0because later changes on$defaultBranchcaused a new diff.
Might this be solvable ... ... by checking the origin's commit list for a commit with matching author AND a different committer or for the same message?
Hi Katrin,
Yeah, the approach you mentioned may be "good enough". If we are checking the individual commits, we may also want to check if the contents diff is indeed identical too, and not rely solely on the commit message.
Cheers, Robin