shithub: git9

Download patch

ref: 367ff60a52a2d73059476ec80ac2807cf5085162
parent: 4c0efaa3b6e543926aa7e36e1f98aaec7f8b0674
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jun 3 19:57:24 EDT 2021

git/log: include initial commit in file-filtered log

we were checking if a file had changed in the parent;
if there was no parent, there was no change.

--- a/log.c
+++ b/log.c
@@ -119,7 +119,7 @@
 		if(r)
 			return 1;
 	}
-	return 0;
+	return o->commit->nparent == 0;
 }