Way to specify an exclusion refspec?
- From
Dun Peal <dunpealer@gmail.com>
- Date
- Dec 2, 2010, 22:17 UTC
- Message-ID
- <AANLkTi=YPJKvNW3PKcaSTRSPFCARHC=hn2OtSYOoe7DA@mail.gmail.com>
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