[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] extend --exclude-vcs to exclude files from Mercurial et al
From: |
Dan |
Subject: |
[Bug-tar] extend --exclude-vcs to exclude files from Mercurial et al |
Date: |
Thu, 12 Jun 2008 22:37:36 +0900 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
Hello,
The --exclude-vcs flag excludes version control files from systems such
as CVS, Subversion, and git; it would be very useful if the flag also
excluded files from Mercurial, Darcs, and Bazaar. Those three are
popular VCS's and Bazaar is now a GNU project.
The patch below adds this support:
[snip]
--- tar.c 2008-04-14 21:03:13.000000000 +0900
+++ tar-more-vcss.c 2008-06-12 22:32:33.000000000 +0900
@@ -849,6 +849,16 @@
"=RELEASE-ID",
"=meta-update",
"=update",
+ /* Bazaar */
+ ".bzr",
+ ".bzrignore",
+ ".bzrtags",
+ /* Mercurial */
+ ".hg",
+ ".hgignore",
+ ".hgtags",
+ /* darcs */
+ "_darcs",
NULL
};
[snip]
I'm not sure that the above patterns would exclude all the files used by
those systems, but they would certainly eliminate a lot of cruft.
Thanks,
Dan Drake
--
Ceci n'est pas une .signature.
signature.asc
Description: Digital signature
- [Bug-tar] extend --exclude-vcs to exclude files from Mercurial et al,
Dan <=