git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to include just some subdirectory excluding all envelop tree
@ 2016-03-07 19:01 Olga Pshenichnikova
  2016-03-07 21:06 ` Kevin Daudt
  0 siblings, 1 reply; 3+ messages in thread
From: Olga Pshenichnikova @ 2016-03-07 19:01 UTC (permalink / raw)
  To: git

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...

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to include just some subdirectory excluding all envelop tree
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Daudt @ 2016-03-07 21:06 UTC (permalink / raw)
  To: Olga Pshenichnikova; +Cc: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to include just some subdirectory excluding all envelop tree
  2016-03-07 21:06 ` Kevin Daudt
@ 2016-03-07 21:14   ` Olga Pshenichnikova
  0 siblings, 0 replies; 3+ messages in thread
From: Olga Pshenichnikova @ 2016-03-07 21:14 UTC (permalink / raw)
  To: Kevin Daudt; +Cc: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-07 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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).