summaryrefslogtreecommitdiff
path: root/sys/src/cmd/git
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2021-06-03 16:15:16 -0700
committerOri Bernstein <ori@eigenstate.org>2021-06-03 16:15:16 -0700
commitdb5ca0017c648c3c2bb5047e61d27ab584171dd7 (patch)
tree1fe70dacbc4b79b1936ed00ff654dfbf3b10f1e1 /sys/src/cmd/git
parentb42111117b76834c736155b542b1c38e6ce6b900 (diff)
git/log: show first commit as file change
We checked if the file was changed from its parents. If there were no parents, the answer was no, but it should be yes.
Diffstat (limited to 'sys/src/cmd/git')
-rw-r--r--sys/src/cmd/git/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/git/log.c b/sys/src/cmd/git/log.c
index faace2a08..4f2c7f809 100644
--- a/sys/src/cmd/git/log.c
+++ b/sys/src/cmd/git/log.c
@@ -119,7 +119,7 @@ filtermatch(Object *o)
if(r)
return 1;
}
- return 0;
+ return o->commit->nparent == 0;
}