ref: 2f1fb4622ad0634824c23051e42bf244ac604227
parent: b38b770691bdd012bd66c9f51da7af2b41c46e7a
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jan 18 11:42:25 EST 2021
query: unbork last commit accidentally reverted something I shouldn't have.
--- a/ref.c
+++ b/ref.c
@@ -419,16 +419,16 @@
idx = earealloc(idx, (nall + 1), sizeof(int));
all[nall] = p;
idx[nall] = 0;
- if(p == a || p->commit->nparent == 0 && a == &zcommit)
+ if(p == a || p->commit->nparent == 0 && a == &zcommit){
if((nall = unwind(ev, all, idx, nall, &p, &keep, 1)) == -1)
break;
- else if(p->commit->nparent == 0)
+ }else if(p->commit->nparent == 0){
if((nall = unwind(ev, all, idx, nall, &p, &skip, 0)) == -1)
break;
- else if(oshas(&keep, p->hash))
+ }else if(oshas(&keep, p->hash)){
if((nall = unwind(ev, all, idx, nall, &p, &keep, 1)) == -1)
break;
- else if(oshas(&skip, p->hash))
+ }else if(oshas(&skip, p->hash))
if((nall = unwind(ev, all, idx, nall, &p, &skip, 0)) == -1)
break;
if(p->commit->nparent == 0)