threads / discuss / 25929

Way to specify an exclusion refspec?

Subject: Way to specify an exclusion refspec?

## tl;dr

2 messages between Dec 2, 2010 and Dec 3, 2010.

replies: 1people: 2as markdown or json

Dun Peal· Dec 2, 2010, 22:17 UTC · lore

Hi. The manpage describes how to specify an inclusion refspec, like for example the default one that gets set for `origin` in `.git/config`, which tells git to include all (`*`) heads in every fetch operation:

  +refs/heads/*:refs/remotes/origin/*

But how about specifying an exclusion refspec? For instance, we want to fetch all heads (`*`) except `foo`, or all heads beginning in "ba" (`ba*`) except `bar`.

Thanks, D
Sverre Rabbelier· Dec 3, 2010, 01:20 UTC · re: Dun Peal · lore

Re: Way to specify an exclusion refspec?

Heya,
On Thu, Dec 2, 2010 at 23:17, Dun Peal <dunpealer@gmail.com> wrote:
> But how about specifying an exclusion refspec?  For instance, we want
> to fetch all heads (`*`) except `foo`, or all heads beginning in "ba"
> (`ba*`) except `bar`.

This has come up before, it's not currently possible, but I think there's interest in having it implemented.

-- 
Cheers,

Sverre Rabbelier

← back to recent threads