[commit: ghc] master: lndir: Ignore .git directories (8023014)
Ian Lynagh
igloo at earth.li
Sun Jun 26 23:08:57 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/8023014ecf192381ffba4b60a3dd21630e5c1d18
>---------------------------------------------------------------
commit 8023014ecf192381ffba4b60a3dd21630e5c1d18
Author: Ian Lynagh <igloo at earth.li>
Date: Sun Jun 26 20:41:41 2011 +0100
lndir: Ignore .git directories
>---------------------------------------------------------------
utils/lndir/lndir.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/utils/lndir/lndir.c b/utils/lndir/lndir.c
index bfce2b5..8269f6e 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"))
More information about the Cvs-ghc
mailing list