Skip to content

Commit 495a5ab

Browse files
committed
Add actions for the gitclean target.
1 parent 5f962f0 commit 495a5ab

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build/build.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ svnclean-work:
7373
done
7474

7575
gitclean-work:
76-
@echo "We don't know how to clean Git checkouts yet."
76+
@if (test ! -f '.git/info/exclude' || grep -s "git-ls-files" .git/info/exclude); then \
77+
(echo "Rebuild .git/info/exclude" && echo '*.o' > .git/info/exclude && git svn propget svn:ignore | grep -v config.nice >> .git/info/exclude); \
78+
fi; \
79+
git clean -X -f -d;
7780

7881
.PHONY: $(ALWAYS) snapshot

0 commit comments

Comments
 (0)