Karthik Nayak
aedcb7dc75
branch.c: use 'ref-filter' APIs
...
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 provide a sorting option provided for 'branch.c' by using the
sorting options provided by 'ref-filter'. Also by default, we sort by
'refname'. Since 'HEAD' is alphabatically before 'refs/...' we end up
with an array consisting of the 'HEAD' ref then the local branches and
finally the remote-tracking branches.
Also remove the 'ignore' variable from ref_array_item as it was
previously used for the '--merged' option and now that is handled by
ref-filter.
Modify some of the tests in t1430 to check the stderr for a warning
regarding the broken ref. This is done as ref-filter throws a warning
for broken refs rather than directly printing them.
Add tests and documentation for the same.
Mentored-by: Christian Couder <christian.couder@gmail.com >
Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr >
Signed-off-by: Karthik Nayak <karthik.188@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2015-09-25 08:54:54 -07:00
..
2015-05-21 13:03:37 -07:00
2015-08-03 11:20:07 -07:00
2015-08-03 11:01:17 -07:00
2015-05-11 14:39:28 -07:00
2015-05-21 13:03:37 -07:00
2015-04-21 12:12:19 -07:00
2015-08-03 11:01:22 -07:00
2015-03-13 22:13:46 -07:00
2015-01-28 22:22:03 -08:00
2015-05-12 22:13:39 -07:00
2015-06-16 14:33:43 -07:00
2014-10-10 16:02:26 -07:00
2015-03-13 22:13:46 -07:00
2015-05-28 12:38:46 -07:00
2015-06-05 12:00:19 -07:00
2015-07-24 10:55:24 -07:00
2015-03-13 22:13:46 -07:00
2014-11-04 13:14:44 -08:00
2014-05-21 13:57:10 -07:00
2015-06-01 15:50:43 -07:00
2015-09-25 08:54:54 -07:00
2015-06-26 09:24:42 -07:00
2015-03-13 22:13:46 -07:00
2015-07-27 09:21:31 -07:00
2015-08-03 11:01:25 -07:00
2015-03-30 21:49:51 -07:00
2015-03-13 22:56:12 -07:00
2014-10-15 14:34:45 -07:00
2015-03-13 22:13:46 -07:00
2015-06-16 14:33:49 -07:00
2015-03-13 22:13:46 -07:00
2014-09-16 11:11:58 -07:00
2015-03-24 08:08:02 -07:00
2014-11-04 13:14:44 -08:00
2015-03-13 22:13:46 -07:00
2014-05-21 13:57:10 -07:00
2015-06-16 13:19:34 -07:00
2014-10-28 10:36:57 -07:00
2015-05-12 22:14:46 -07:00
2015-08-03 11:01:23 -07:00
2015-05-12 22:14:46 -07:00
2015-03-13 22:13:46 -07:00
2014-11-04 13:14:44 -08:00
2015-05-28 12:38:46 -07:00
2015-09-17 10:02:49 -07:00
2015-07-15 11:41:22 -07:00
2015-06-23 14:27:37 -07:00
2015-03-13 22:13:46 -07:00
2015-05-04 14:19:23 -07:00
2014-05-21 13:57:10 -07:00
2015-06-16 14:33:45 -07:00
2015-03-10 15:19:05 -07:00
2015-03-13 22:13:46 -07:00
2015-03-13 22:13:46 -07:00
2014-11-04 13:14:44 -08:00
2015-07-09 10:24:23 -07:00
2014-05-21 13:57:10 -07:00
2014-11-25 15:24:55 -08:00
2015-05-19 13:17:57 -07:00
2014-04-24 11:29:05 -07:00
2014-11-12 11:00:11 -08:00
2015-04-20 12:36:00 -07:00
2015-05-12 22:14:46 -07:00
2014-06-10 13:09:24 -07:00
2014-10-13 13:35:18 -07:00
2015-06-29 08:48:44 -07:00
2015-06-02 13:36:22 -07:00
2015-06-05 12:00:19 -07:00
2014-10-13 13:35:18 -07:00
2014-05-21 13:57:10 -07:00
2015-08-03 11:01:22 -07:00
2015-03-13 22:13:46 -07:00
2015-07-21 14:08:14 -07:00
2014-11-11 14:47:04 -08:00
2014-11-11 14:47:04 -08:00
2015-03-13 22:56:05 -07:00
2015-03-13 22:13:46 -07:00
2014-07-27 15:14:18 -07:00
2015-03-13 22:13:46 -07:00
2014-04-08 12:00:28 -07:00
2015-07-01 09:29:11 -07:00
2015-07-15 10:30:54 -07:00
2015-08-03 11:01:15 -07:00
2015-06-05 12:00:19 -07:00
2014-05-08 10:26:26 -07:00
2015-05-12 22:14:46 -07:00
2014-10-13 13:35:18 -07:00
2015-05-26 13:24:46 -07:00
2015-06-05 12:00:21 -07:00
2015-05-28 15:18:11 -07:00
2015-05-12 22:14:46 -07:00
2015-09-17 10:02:50 -07:00
2015-07-28 13:21:59 -07:00
2015-05-22 09:00:17 -07:00
2015-03-12 13:45:18 -07:00
2015-07-21 14:08:35 -07:00
2015-06-22 14:20:47 -07:00
2015-05-17 11:24:57 -07:00
2015-06-22 14:20:47 -07:00
2014-05-21 13:57:10 -07:00
2015-07-16 15:59:48 -07:00
2015-08-03 11:20:07 -07:00
2015-07-23 14:44:51 -07:00
2014-05-21 13:57:10 -07:00
2015-06-05 12:00:22 -07:00
2015-03-13 22:13:46 -07:00
2014-10-10 16:02:26 -07:00
2015-05-12 22:14:46 -07:00
2014-10-10 16:02:26 -07:00
2014-10-10 16:02:26 -07:00
2015-01-08 14:28:43 -08:00
2015-03-13 22:13:46 -07:00
2015-04-20 11:05:50 -07:00
2015-03-02 14:59:55 -08:00
2015-05-12 22:14:46 -07:00
2014-12-01 11:00:19 -08:00
2014-11-19 13:47:59 -08:00
2014-11-19 13:47:59 -08:00
2015-07-21 12:45:27 -07:00
2015-05-29 13:36:47 -07:00
2014-04-17 11:14:57 -07:00
2015-07-01 14:55:53 -07:00
2014-04-17 11:14:58 -07:00
2015-04-20 11:05:50 -07:00
2015-01-22 13:44:14 -08:00
2015-06-25 11:02:17 -07:00
2015-06-16 14:33:43 -07:00
2015-07-27 12:21:48 -07:00
2014-06-12 09:59:13 -07:00
2015-06-29 11:39:10 -07:00
2015-05-22 09:33:08 -07:00
2015-03-28 09:33:10 -07:00
2015-03-13 22:13:46 -07:00