git: cpdup - Enhance -X operation

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jan 20 21:53:02 PST 2018


commit 560e4370bd809346663a32578cc1837dc66ab1ae
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jan 20 21:47:01 2018 -0800

    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.

Summary of changes:
 bin/cpdup/cpdup.1 | 10 ++++++++++
 bin/cpdup/cpdup.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++--
 bin/cpdup/misc.c  |  6 ++++--
 3 files changed, 65 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/560e4370bd809346663a32578cc1837dc66ab1ae


-- 
DragonFly BSD source repository



More information about the Commits mailing list