git-p4: support excluding paths on sync
authorLuke Diamand <luke@diamand.org>
Sat, 17 Jan 2015 20:56:38 +0000 (20:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Feb 2015 21:38:29 +0000 (13:38 -0800)
commit51334bb094e085728ffe2b603fa3fe41dd80c075
tree3bff3c9a3ea94514f9b2eb8c1cc2f0c59462c68f
parentfdf96a20acf96a6ac538df8113b2aafd6ed71d50
git-p4: support excluding paths on sync

The clone subcommand has long had support for excluding
subdirectories, but sync has not. This is a nuisance,
since as soon as you do a sync, any changed files that
were initially excluded start showing up.

Move the "exclude" command-line option into the parent
class; the actual behavior was already present there so
it simply had to be exposed.

Signed-off-by: Luke Diamand <luke@diamand.org>
Reviewed-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-p4.txt
git-p4.py
t/t9817-git-p4-exclude.sh [new file with mode: 0755]