aboutsummaryrefslogtreecommitdiff
path: root/add-patch.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-03-02 13:13:05 +0100
committerJunio C Hamano <gitster@pobox.com>2026-03-03 15:09:34 -0800
commit6e4d923267ca80dd1392bf7e0673c74711e8cb68 (patch)
tree22ba3dec9d122219ea066bcc5aab5b8192e061b0 /add-patch.c
parent50d063e335afd5828fbb9de2f2b2fb44fd884d2b (diff)
downloadgit-6e4d923267ca80dd1392bf7e0673c74711e8cb68.tar.xz
add-patch: split out header from "add-interactive.h"
While we have a "add-patch.c" code file, its declarations are part of "add-interactive.h". This makes it somewhat harder than necessary to find relevant code and to identify clear boundaries between the two subsystems. Split up concerns and move declarations that relate to "add-patch.c" into a new "add-patch.h" header. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'add-patch.c')
-rw-r--r--add-patch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/add-patch.c b/add-patch.c
index 8c03f710d3..8ce2fc02f6 100644
--- a/add-patch.c
+++ b/add-patch.c
@@ -3,6 +3,7 @@
#include "git-compat-util.h"
#include "add-interactive.h"
+#include "add-patch.h"
#include "advice.h"
#include "editor.h"
#include "environment.h"