]> Dogcows Code - chaz/tar/commit
Support exclusion patterns from various VCS ignore lists.
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 21 Feb 2014 15:57:26 +0000 (17:57 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sat, 22 Feb 2014 06:13:30 +0000 (08:13 +0200)
commit93906c238d9309f95afeddfa9ac8d7ce92351e70
tree5fe53b70287797abf5cdc1a91daf568c5c1dcb02
parent9df17e6005e7a333399e3dc21a7afec75565c767
Support exclusion patterns from various VCS ignore lists.

* src/Makefile.am (tar_SOURCES): Add exclist.c
* src/common.h (EXCL_DEFAULT, EXCL_RECURSIVE)
(EXCL_NON_RECURSIVE): New flags.
(excfile_add, info_attach_exclist)
(info_cleanup_exclist,info_free_exclist)
(exclude_vcs_ignores): New prototypes.
* src/create.c (dump_dir0): Call info_attach_exclist.
* src/exclist.c: New file.
* src/incremen.c (scan_directory): Call info_attach_exclist.
* src/names.c (excluded_name): Moved to exclist.c. Change signature.
All uses updated.
* src/tar.c: New options: --exclude-ignore, --exclude-ignore-recursive
and --exclude-vcs-ignores.
(tar_stat_destroy): Free exclist.
* src/tar.h (tar_stat_info): New member exclude_list.

* NEWS: Document new exclusion options.
* doc/tar.texi: Likewise.
* doc/tar.1: Likewise.
13 files changed:
NEWS
doc/tar.1
doc/tar.texi
src/Makefile.am
src/common.h
src/create.c
src/exclist.c [new file with mode: 0644]
src/incremen.c
src/list.c
src/names.c
src/tar.c
src/tar.h
src/update.c
This page took 0.027039 seconds and 4 git commands to generate.