Files
gerrit/java
Han-Wen Nienhuys 0f5ff8b1b9 ReceiveCommits: change signature of validCommit()
Take an ObjectReader rather than RevWalk. Since validCommit is called
from within a revwalk loop, the constraints on RevWalk --one can't
call next() from within validCommit-- are clearer this way.

Pass RevCommit rather than ObjectId to validCommit.

Don't call rw.ParseBody(commit) in validCommit, because
CommitReceivedEvent already calls parseBody.

Have the caller supply isMerged, so validCommit() does not inspect
magicBranch anymore.

Change-Id: I3b101da8c89f9041ee0ed22e7cdc06cc63277fb5
2018-08-27 12:49:56 +02:00
..
2018-08-14 08:07:59 +02:00