git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Olga Pshenichnikova <olga@ip-5.ru>
To: Kevin Daudt <me@ikke.info>
Cc: git@vger.kernel.org
Subject: Re: How to include just some subdirectory excluding all envelop tree
Date: Tue, 8 Mar 2016 00:14:07 +0300	[thread overview]
Message-ID: <56DDEF1F.7040604@ip-5.ru> (raw)
In-Reply-To: <20160307210608.GA29312@ikke.info>

Thank you very much!
The exclamation mark solves my problem.
I can not create repository inside /a, because I need control /b also )

On 03/08/2016 12:06 AM, Kevin Daudt wrote:
> On Mon, Mar 07, 2016 at 10:01:52PM +0300, Olga Pshenichnikova wrote:
>> I have some tree structure:
>>
>> /a
>> /a/a
>> /a/b
>> ..
>> /a/z
>> /b
>> .. (thousands of folders)
>> /z
>>
>> How can I control just /a/a folder?
>> What exclude file should be?
>>
>> The way we use now is:
>>
>> /a/*
>> /b/
>> .. (thousands of folders)
>> /z/
>> !/a/a
>>
>> But it is very not nice looking and hard for maintenance...
> Don't know your usecase, but isn't it easier to just create the repository
> in /a/a? Then you won't have to exlude anything.
>
> If you must, you can just use something like:
>
>   *
>   !/a
>   /a/*
>   !/a/a

      reply	other threads:[~2016-03-07 21:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-07 19:01 How to include just some subdirectory excluding all envelop tree Olga Pshenichnikova
2016-03-07 21:06 ` Kevin Daudt
2016-03-07 21:14   ` Olga Pshenichnikova [this message]

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=56DDEF1F.7040604@ip-5.ru \
    --to=olga@ip-5.ru \
    --cc=git@vger.kernel.org \
    --cc=me@ikke.info \
    /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).