]> git.lizzy.rs Git - plan9front.git/commitdiff
git/log: show first commit as file change
authorOri Bernstein <ori@eigenstate.org>
Thu, 3 Jun 2021 23:15:16 +0000 (16:15 -0700)
committerOri Bernstein <ori@eigenstate.org>
Thu, 3 Jun 2021 23:15:16 +0000 (16:15 -0700)
We checked if the file was changed from its parents.
If there were no parents, the answer was no, but it
should be yes.

sys/src/cmd/git/log.c

index faace2a08f6af8ac7d0eb205584242a116053213..4f2c7f8094d1ef0abd4cc0b2284b9ee35257570c 100644 (file)
@@ -119,7 +119,7 @@ filtermatch(Object *o)
                if(r)
                        return 1;
        }
-       return 0;
+       return o->commit->nparent == 0;
 }