Re: [PATCH] tone down the detached head warning
- From
- Matthias Lederhofer <matled@gmx.net>
- Date
- Feb 1, 2007, 12:48 UTC
- Message-ID
- <20070201124800.GA3863@moooo.ath.cx>
- In-Reply-To
- <200702010844.34500.andyparkins@gmail.com>
Andy Parkins <andyparkins@gmail.com> wrote:
Show 32 quoted lines
> On Thursday 2007 February 01 00:14, Jakub Narebski wrote: > > > Although the fact that clone copies all branches and tags (I don't think > > there is a way to clone only subset of branches), and that fetch is multi > > There is, as long as you are willing to organise your branches in a consistent > way. I keep all my branches with the prefix "ap/" then on another > development machine I just have > > pull = refs/heads/ap/*:refs/heads/up/ap/* > > In my config. This means I can make local branches that won't be grabbed > during the fetch, but still have branches automatically exported. > > This actually highlights a weakness in the globbing. There is no way, for > example, to grab only unprefixed branches because the glob is blind to path > dividers (as is usual). What would be even better would be a two glob > symbols, one meaning "do cross separators", one meaning "don't". I think > rsync solves it for it's include/exclude patterns with a double asterisk. > That is: > > rsync -av --exclude "foo/*/bar" src/ dest/ > > Would exclude anything called "bar" two levels under "foo/"; wheras > > rsync -av --exclude "foo/**/bar" src/ dest/ > > Would exclude anything called "bar" anywhere deeper than two levels > under "foo". > > I haven't thought of a good way of applying this in git though, and I have a > feeling that it could just complicate things excessively.
fnmatch with FNM_PATHNAME disables * to match on / but it does not support the ** syntax afaik.