summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-06-01 14:09:14 +0900
committerJunio C Hamano <gitster@pobox.com>2017-06-01 14:56:18 +0900
commit60f32610243165e43afca785a85c38967130a70f (patch)
treeb32cebc3328c5e63aef5f573bd82569fb3c48caa /git-compat-util.h
parent29ec62700ad3db6be572c6f3c03a7d0443c86353 (diff)
downloadgit-jc/wip-check-help-option.tar.gz
check_help_option(): a helper for early check of "-h" optionjc/wip-check-help-option
As "show help when we get '-h' as the only option." often appears, let's give an easy helper to call for these call sites. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 4b7dcf21ad..ed2237b83c 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -418,6 +418,9 @@ extern int error_errno(const char *err, ...) __attribute__((format (printf, 1, 2
extern void warning(const char *err, ...) __attribute__((format (printf, 1, 2)));
extern void warning_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));
+struct option;
+extern void check_help_option(int, const char **, const void *, struct option *);
+
#ifndef NO_OPENSSL
#ifdef APPLE_COMMON_CRYPTO
#include "compat/apple-common-crypto.h"