From db5ca0017c648c3c2bb5047e61d27ab584171dd7 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Thu, 3 Jun 2021 16:15:16 -0700 Subject: [PATCH] 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. --- sys/src/cmd/git/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }