Re: [PATCH v5 3/8] branch: roll show_detached HEAD into regular ref_list

2015-09-20 Thread Matthieu Moy
Karthik Nayak writes: > @@ -681,14 +684,12 @@ static int print_ref_list(int kinds, int detached, int > verbose, int abbrev, stru > > qsort(ref_list.list, ref_list.index, sizeof(struct ref_item), ref_cmp); > > - detached = (detached && (kinds & REF_LOCAL_BRANCH)); > - if (detach

[PATCH v5 3/8] branch: roll show_detached HEAD into regular ref_list

2015-09-20 Thread Karthik Nayak
Remove show_detached() and make detached HEAD to be rolled into regular ref_list by adding REF_DETACHED_HEAD as a kind of branch and supporting the same in append_ref(). This eliminates the need for an extra function and helps in easier porting of branch.c to use ref-filter APIs. Before show_detac