summaryrefslogtreecommitdiff
path: root/utils/lndir
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-06-26 20:41:41 +0100
committerIan Lynagh <igloo@earth.li>2011-06-26 20:41:41 +0100
commit8023014ecf192381ffba4b60a3dd21630e5c1d18 (patch)
tree621ed9e6eebaa3c12a6515c3866a9074986e2655 /utils/lndir
parentc629bd1539b1865cc28ce053234595e7aeb8a5c0 (diff)
downloadhaskell-8023014ecf192381ffba4b60a3dd21630e5c1d18.tar.gz
lndir: Ignore .git directories
Diffstat (limited to 'utils/lndir')
-rw-r--r--utils/lndir/lndir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/lndir/lndir.c b/utils/lndir/lndir.c
index bfce2b515e..8269f6ec9e 100644
--- a/utils/lndir/lndir.c
+++ b/utils/lndir/lndir.c
@@ -324,6 +324,8 @@ int rel; /* if true, prepend "../" to fn before using */
continue;
if (!strcmp (dp->d_name, ".svn"))
continue;
+ if (!strcmp (dp->d_name, ".git"))
+ continue;
if (!strcmp (dp->d_name, "_darcs"))
continue;
if (!strcmp (dp->d_name, "CVS.adm"))