pgm: Fix missing braces in MergeBase.run()

Change-Id: I625053ceb5a81bc0014f7cab0f9fb5e5deaacc36
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2019-01-20 21:51:09 +01:00
parent 6c847b30c0
commit c821054316
1 changed files with 4 additions and 2 deletions

View File

@ -70,14 +70,16 @@ void commit_0(final RevCommit c) {
@Override
protected void run() {
try {
for (RevCommit c : commits)
for (RevCommit c : commits) {
argWalk.markStart(c);
}
argWalk.setRevFilter(RevFilter.MERGE_BASE);
int max = all ? Integer.MAX_VALUE : 1;
while (max-- > 0) {
final RevCommit b = argWalk.next();
if (b == null)
if (b == null) {
break;
}
outw.println(b.getId().name());
}
} catch (IOException e) {