From 429bd311b7b3124dc0bd4db95b1cd7b19ddc6e1b Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 20 Aug 2015 17:49:13 +0300 Subject: [PATCH] Add missing VCS files to --exclude-vcs list * src/tar.c (vcs_file_table): Add .gitmodules and .gitattributes * doc/tar.texi: Update. --- doc/tar.texi | 2 ++ src/tar.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/doc/tar.texi b/doc/tar.texi index 96f6aeb4..fe750b6d 100644 --- a/doc/tar.texi +++ b/doc/tar.texi @@ -7564,6 +7564,8 @@ As of version @value{VERSION}, the following files are excluded: @item @file{SCCS/}, and everything under it @item @file{.git/}, and everything under it @item @file{.gitignore} +@item @file{.gitmodules} +@item @file{.gitattributes} @item @file{.cvsignore} @item @file{.svn/}, and everything under it @item @file{.arch-ids/}, and everything under it diff --git a/src/tar.c b/src/tar.c index 79475048..f8dd1a74 100644 --- a/src/tar.c +++ b/src/tar.c @@ -953,6 +953,8 @@ static char const * const vcs_file_table[] = { /* git: */ ".git", ".gitignore", + ".gitattributes", + ".gitmodules", /* Arch: */ ".arch-ids", "{arch}", -- 2.47.2