Re: [PATCH v5 7/8] branch.c: use 'ref-filter' APIs

2015-09-21 Thread Karthik Nayak
On Mon, Sep 21, 2015 at 12:54 AM, Matthieu Moy wrote: > Karthik Nayak writes: > >> --- a/Documentation/git-branch.txt >> +++ b/Documentation/git-branch.txt >> @@ -231,6 +231,13 @@ start-point is either a local or remote-tracking branch. >> The new name for an existing branch. The same restr

Re: [PATCH v5 7/8] branch.c: use 'ref-filter' APIs

2015-09-20 Thread Matthieu Moy
Karthik Nayak writes: > --- a/Documentation/git-branch.txt > +++ b/Documentation/git-branch.txt > @@ -231,6 +231,13 @@ start-point is either a local or remote-tracking branch. > The new name for an existing branch. The same restrictions as for >apply. > > +--sort=:: > + Sort b

[PATCH v5 7/8] branch.c: use 'ref-filter' APIs

2015-09-20 Thread Karthik Nayak
Make 'branch.c' use 'ref-filter' APIs for iterating through refs sorting. This removes most of the code used in 'branch.c' replacing it with calls to the 'ref-filter' library. Make 'branch.c' use the 'filter_refs()' function provided by 'ref-filter' to filter out tags based on the options set. We