shithub: plan9front

Download patch

ref: db5ca0017c648c3c2bb5047e61d27ab584171dd7
parent: b42111117b76834c736155b542b1c38e6ce6b900
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jun 3 19:15:16 EDT 2021

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.

--- a/sys/src/cmd/git/log.c	Mon May 31 22:30:07 2021
+++ b/sys/src/cmd/git/log.c	Thu Jun  3 19:15:16 2021
@@ -119,7 +119,7 @@
 		if(r)
 			return 1;
 	}
-	return 0;
+	return o->commit->nparent == 0;
 }