summaryrefslogtreecommitdiff
path: root/parse-options.h
diff options
context:
space:
mode:
authorKarthik Nayak <karthik.188@gmail.com>2015-07-07 16:06:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-08-03 17:25:27 (GMT)
commitb2172fdf702426cb4eba093b5504d0a0e9e59746 (patch)
tree0d85fb73d6ad4bd1625ad119fc05feb608fe3110 /parse-options.h
parentaf83bafa4867ba16368e58f36e8311e9591e68f4 (diff)
downloadgit-b2172fdf702426cb4eba093b5504d0a0e9e59746.zip
git-b2172fdf702426cb4eba093b5504d0a0e9e59746.tar.gz
git-b2172fdf702426cb4eba093b5504d0a0e9e59746.tar.bz2
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>
Diffstat (limited to 'parse-options.h')
-rw-r--r--parse-options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-options.h b/parse-options.h
index c71e9da..36c71fe 100644
--- a/parse-options.h
+++ b/parse-options.h
@@ -220,6 +220,7 @@ extern int parse_opt_approxidate_cb(const struct option *, const char *, int);
extern int parse_opt_expiry_date_cb(const struct option *, const char *, int);
extern int parse_opt_color_flag_cb(const struct option *, const char *, int);
extern int parse_opt_verbosity_cb(const struct option *, const char *, int);
+extern int parse_opt_object_name(const struct option *, const char *, int);
extern int parse_opt_with_commit(const struct option *, const char *, int);
extern int parse_opt_tertiary(const struct option *, const char *, int);
extern int parse_opt_string_list(const struct option *, const char *, int);