diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-10-15 16:50:26 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-10-15 16:56:23 -0700 |
commit | 33a3c2fc886bc9ce5a0692c6c0c78903aa122ee1 (patch) | |
tree | 17471b054d3d8f3c04b457cef83a21c19c13350a | |
parent | 853241018d75a6b40f67db61f9ea21f1c5e90641 (diff) |
Add .hg & .git to the list of known revision control subdirectories
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r-- | lndir.c | 12 | ||||
-rw-r--r-- | lndir.man | 4 |
2 files changed, 11 insertions, 5 deletions
@@ -31,9 +31,11 @@ in this Software without prior written authorization from The Open Group. /* From the original /bin/sh script: Used to create a copy of the a directory tree that has links for all - non-directories (except, by default, those named BitKeeper, RCS, SCCS - or CVS.adm). If you are building the distribution on more than one - machine, you should use this technique. + non-directories (except, by default, those named BitKeeper, .git, .hg, + RCS, SCCS, .svn, CVS or CVS.adm). + + If you are building the distribution on more than one machine, + you should use this technique. If your master sources are located in /usr/local/src/X and you would like your link tree to be in /usr/local/src/new-X, do the following: @@ -215,6 +217,10 @@ dodir (char *fn, /* name of "from" directory, either absolute or dp->d_name[2] == '\0'))) continue; if (!with_revinfo) { + if (!strcmp (dp->d_name, ".git")) + continue; + if (!strcmp (dp->d_name, ".hg")) + continue; if (!strcmp (dp->d_name, "BitKeeper")) continue; if (!strcmp (dp->d_name, "RCS")) @@ -76,8 +76,8 @@ argument may be relative (e.g., ../src) and is relative to (not the current directory). .PP .\" CVS.adm is used by the Concurrent Versions System. -Note that BitKeeper, RCS, SCCS, .svn, CVS and CVS.adm directories are -shadowed only if the \fB\-withrevinfo\fP flag is specified. +Note that BitKeeper, CVS, CVS.adm, .git, .hg, RCS, SCCS, and .svn directories +are shadowed only if the \fB\-withrevinfo\fP flag is specified. .PP If you add files, simply run .I lndir |