shithub: git9

Download patch

ref: dd4015a1b71b38a94586d538bcd48debc3dab7d6
parent: 724c516a6eda0063439457a6701ef0d7ef37eb93
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Apr 11 19:37:53 EDT 2021

query: show added/removed dirs in git/query -c

This means that empty dirs don't end up getting
left straggling.

--- a/query.c
+++ b/query.c
@@ -43,6 +43,7 @@
 		else
 			print("%c %P%s\n", m, p->name);
 	}
+	print("%c %P\n", m);
 	unref(d);
 	npath--;
 }
@@ -81,7 +82,6 @@
 		if(c == 0){
 			if(ap->mode == bp->mode && hasheq(&ap->h, &bp->h))
 				goto next;
-
 			if(ap->mode != bp->mode)
 				print("! %P%s\n", ap->name);
 			else if(!(ap->mode & DMDIR) || !(bp->mode & DMDIR))