]> git.ipfire.org Git - thirdparty/git.git/commit - parse-options-cb.c
tag: libify parse_opt_points_at()
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 7 Jul 2015 16:06:08 +0000 (21:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Aug 2015 17:25:27 +0000 (10:25 -0700)
commitb2172fdf702426cb4eba093b5504d0a0e9e59746
tree0d85fb73d6ad4bd1625ad119fc05feb608fe3110
parentaf83bafa4867ba16368e58f36e8311e9591e68f4
tag: libify parse_opt_points_at()

Rename 'parse_opt_points_at()' to 'parse_opt_object_name()' and
move it from 'tag.c' to 'parse-options'. This now acts as a common
parse_opt function which accepts an objectname and stores it into
a sha1_array.

Based-on-patch-by: Jeff King <peff@peff.net>
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>
builtin/tag.c
parse-options-cb.c
parse-options.h