summaryrefslogtreecommitdiff
path: root/parse-options.c
diff options
context:
space:
mode:
authorCalvin Wan <calvinwan@google.com>2023-09-29 21:20:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-09-29 22:14:57 (GMT)
commitb1bda751739d90e1a94b47397676bcb8eebf16d5 (patch)
tree63b802377016c46d878d918633ebb1a54c015a5b /parse-options.c
parente16be13cfaf1102340c7816d14cec2009a864faf (diff)
downloadgit-b1bda751739d90e1a94b47397676bcb8eebf16d5.zip
git-b1bda751739d90e1a94b47397676bcb8eebf16d5.tar.gz
git-b1bda751739d90e1a94b47397676bcb8eebf16d5.tar.bz2
parse: separate out parsing functions from config.h
The files config.{h,c} contain functions that have to do with parsing, but not config. In order to further reduce all-in-one headers, separate out functions in config.c that do not operate on config into its own file, parse.h, and update the include directives in the .c files that need only such functions accordingly. Signed-off-by: Calvin Wan <calvinwan@google.com> Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parse-options.c')
-rw-r--r--parse-options.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse-options.c b/parse-options.c
index e8e076c..093eaf2 100644
--- a/parse-options.c
+++ b/parse-options.c
@@ -1,11 +1,12 @@
#include "git-compat-util.h"
#include "parse-options.h"
#include "abspath.h"
-#include "config.h"
+#include "parse.h"
#include "commit.h"
#include "color.h"
#include "gettext.h"
#include "strbuf.h"
+#include "string-list.h"
#include "utf8.h"
static int disallow_abbreviated_options;