cpdup - Enhance -X operation
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 21 Jan 2018 05:47:01 +0000 (21:47 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 21 Jan 2018 05:53:01 +0000 (21:53 -0800)
commit560e4370bd809346663a32578cc1837dc66ab1ae
tree794163ca729fa0ff0df08d193a2eac214ecdfbb0
parent45090be0fd8587e15339deb8bf8f6c44547df9d1
cpdup - Enhance -X operation

* Enhance -X operation.  When the cpignore file is specified as an
  absolute path, it may contain wildcards which match against the
  concatenated source path and directory element (as specified in the
  source), instead of just match against directory elements.

* Thus an absolute cpignore file may contain full paths and wildcards.
  For example, if you:

  cpdup -X $cwd/mycpignore /tmp /fubar

  And $cwd/mycpignore (specified with an absolute path) contains:

      /tmp/xyz/swap*

  Then cpdup will not copy files that match against /tmp/xyz/swap*.

  If you specify a relative path for the cpignore file, or use the
  -x option (instead of -X cpignorefile), operation remains as before
  and only matches against the directory element.
bin/cpdup/cpdup.1
bin/cpdup/cpdup.c
bin/cpdup/misc.c