git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luke Diamand <luke@diamand.org>
To: FusionX86 <fusionx86@gmail.com>, Git Users <git@vger.kernel.org>
Subject: Re: git p4 clone - exclude file types
Date: Mon, 18 May 2015 21:59:41 +0100	[thread overview]
Message-ID: <555A52BD.1030802@diamand.org> (raw)
In-Reply-To: <CAFcBi88K-HEn4JCVkONq3h4O9XS1FFX0OXch2d-VJ2bLEsPM0g@mail.gmail.com>

On 18/05/15 18:59, FusionX86 wrote:
> Hello,
>
> Anyone know of a way to 'git p4 clone' and exclude files by type or
> name? For example, I want to clone a depot, but not pull down any .exe
> files. Haven't been able to find an answer in docs or other searches.

I think you can use a client spec which excludes the files you want.

First, create a client spec that excludes the files you don't want:

Client: myclient
View:
     //depot/mystuff/...  //myclient/...
     -//depot/mystuff/...exe  //myclient/...exe

Then clone with the --use-client-spec option:

$ export P4CLIENT=myclient
$ git p4 clone --use-client-spec //depot/mystuff

And later on, when you want to catch up:

$ cd mystuff
$ git p4 sync --use-client-spec

Luke

  reply	other threads:[~2015-05-18 21:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-18 17:59 git p4 clone - exclude file types FusionX86
2015-05-18 20:59 ` Luke Diamand [this message]
2015-05-19  7:38   ` FusionX86
2015-05-20  6:49     ` Luke Diamand
2015-05-21 20:49       ` FusionX86
2015-05-21 21:49         ` Luke Diamand
2015-05-22  1:33           ` FusionX86

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=555A52BD.1030802@diamand.org \
    --to=luke@diamand.org \
    --cc=fusionx86@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).