Skip to content

Commit

Permalink
query: show added/removed dirs in git/query -c
Browse files Browse the repository at this point in the history
This means that empty dirs don't end up getting
left straggling.
  • Loading branch information
oridb committed Apr 11, 2021
1 parent 724c516 commit dd4015a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ showdir(Hash dh, char *dname, char m)
else
print("%c %P%s\n", m, p->name);
}
print("%c %P\n", m);
unref(d);
npath--;
}
Expand Down Expand Up @@ -81,7 +82,6 @@ difftrees(Object *a, Object *b)
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))
Expand Down

0 comments on commit dd4015a

Please sign in to comment.