git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to include just some subdirectory excluding all envelop tree

From
OPOlga Pshenichnikova <olga@ip-5.ru>
Date
Mar 7, 2016, 21:14 UTC
Message-ID
<56DDEF1F.7040604@ip-5.ru>
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:
Show 33 quoted lines
> 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
Previous: Kevin Daudt
Message 3 of 3 in “How to include just some subdirectory excluding all envelop tree”
  1. Olga PshenichnikovaMar 7, 2016
  2. Kevin DaudtMar 7, 2016
  3. Olga PshenichnikovaMar 7, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.