aboutsummaryrefslogtreecommitdiffstats
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-07-29 09:28:50 -0700
committerJunio C Hamano <gitster@pobox.com>2025-07-29 09:28:50 -0700
commit393fa4b64b12da3d3fdcefb02739bb1e82291dcc (patch)
tree37d9676a25f69b289f6d738642a43ae68d8b140e /commit.h
parentMerge branch 'ps/config-wo-the-repository' into next (diff)
parentadd-patch: add diff.context command line overrides (diff)
downloadgit-393fa4b64b12da3d3fdcefb02739bb1e82291dcc.tar.gz
git-393fa4b64b12da3d3fdcefb02739bb1e82291dcc.zip
Merge branch 'lm/add-p-context' into next
"git add/etc -p" now honors diff.context configuration variable, and learns to honor -U<n> option. * lm/add-p-context: add-patch: add diff.context command line overrides add-patch: respect diff.context configuration t: use test_config in t4055 t: use test_grep in t3701 and t4055
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/commit.h b/commit.h
index 9630c076d6..1d6e0c7518 100644
--- a/commit.h
+++ b/commit.h
@@ -2,6 +2,7 @@
#define COMMIT_H
#include "object.h"
+#include "add-interactive.h"
struct signature_check;
struct strbuf;
@@ -257,7 +258,7 @@ int for_each_commit_graft(each_commit_graft_fn, void *);
int interactive_add(struct repository *repo,
const char **argv,
const char *prefix,
- int patch);
+ int patch, struct add_p_opt *add_p_opt);
struct commit_extra_header {
struct commit_extra_header *next;