Skip to content

Commit c95b758

Browse files
KarthikNayakgitster
authored andcommitted
ref-filter: move code from 'for-each-ref'
Move most of the code from 'for-each-ref' to 'ref-filter' to make it publicly available to other commands, this is to unify the code of 'tag -l', 'branch -l' and 'for-each-ref' so that they can share their implementations with each other. Add 'ref-filter' to the Makefile, this completes the movement of code from 'for-each-ref' to 'ref-filter'. Mentored-by: Christian Couder <[email protected]> Mentored-by: Matthieu Moy <[email protected]> Signed-off-by: Karthik Nayak <[email protected]> Reviewed-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 69b1cf9 commit c95b758

File tree

3 files changed

+1079
-1074
lines changed

3 files changed

+1079
-1074
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ LIB_OBJS += reachable.o
762762
LIB_OBJS += read-cache.o
763763
LIB_OBJS += reflog-walk.o
764764
LIB_OBJS += refs.o
765+
LIB_OBJS += ref-filter.o
765766
LIB_OBJS += remote.o
766767
LIB_OBJS += replace_object.o
767768
LIB_OBJS += rerere.o

0 commit comments

Comments
 (0)