git: 9front

Download patch

ref: 8f23baaca1d59979d22a06a4ec3aea27bae631b7
parent: f30208cd6644cf652e282a5e8ed4cc24192abfe8
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jun 3 12: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
+++ b/sys/src/cmd/git/log.c
@@ -119,7 +119,7 @@
 		if(r)
 			return 1;
 	}
-	return 0;
+	return o->commit->nparent == 0;
 }
 
 
--