Files
git/builtin
Karthik Nayak ed01e206ba for-each-ref: extract helper functions out of grab_single_ref()
Extract two helper functions out of grab_single_ref(). Firstly,
new_refinfo() which is used to allocate memory for a new refinfo
structure and copy the objectname, refname and flag to it.
Secondly, match_name_as_path() which when given an array of patterns
and the refname checks if the refname matches any of the patterns
given while the pattern is a pathname, also supports wildcard
characters.

This is a preperatory patch for restructuring 'for-each-ref' and
eventually moving most of it to 'ref-filter' to provide the
functionality to similar commands via public API's.

Helped-by: Junio C Hamano <gitster@pobox.com>
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>
Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-06-15 11:48:07 -07:00
..
2015-05-22 12:41:55 -07:00
2014-07-16 11:10:11 -07:00
2015-05-05 21:00:23 -07:00
2015-06-01 12:45:15 -07:00
2015-06-05 12:17:37 -07:00
2015-06-01 12:45:15 -07:00
2015-06-11 09:29:52 -07:00
2015-01-14 09:32:04 -08:00
2015-05-26 13:24:46 -07:00
2015-05-11 14:39:28 -07:00
2015-05-25 12:19:32 -07:00
2015-05-11 14:23:39 -07:00
2015-05-11 14:23:59 -07:00
2015-03-20 13:11:53 -07:00
2015-06-05 12:17:36 -07:00
2015-06-05 12:17:36 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-05-11 14:23:39 -07:00
2015-05-11 14:23:39 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00