I wonder if there is a way to detect if a commit was rebased with a manual conflict resolution or with Git's auto rebase (without conflict).
In details, lets say, in Gerrit a pending commit needs a rebase because some commits are merged within review period. In that case developers need to upload a new patch after rebasing. Reviewer wants to know it its an auto merged without conflicts (with #git pull --rebase) or a manual merge happened due to conflicts. If manual conflict happens admin may want to review with more consciously. Otherwise admin have trust on Git.
is there any way using Git/Gerrit API?
A
was rebased on commitB
, then in a branch there will contain the commits…---B---A'---…
. So you need to know the commits both forB
andA
, or you should make sure if the commitA'
is rebased. Is that possible for the reviewer to find commitA
andB
(or commitA'
)?A
, the rebased commit will be different (asA'
). So you can only findA'
's parent isB
, but you can't find the commitA
. Why it needs two commitsA
andB
: we need to calculate the changes between them, and then find if there has conflicts. If there has confilcts, it's merged manually, else it's merged automatically.