aboutsummaryrefslogtreecommitdiffstats
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-08-04 08:10:33 -0700
committerJunio C Hamano <gitster@pobox.com>2025-08-04 08:10:33 -0700
commitd63f334a8242f9e993b5bfb451f03394023ab877 (patch)
tree7ddeaf84467ba1fce6ce2f3bc3d10825694bde53 /commit.h
parentMerge branch 'ps/config-wo-the-repository' (diff)
parentadd-patch: add diff.context command line overrides (diff)
downloadgit-d63f334a8242f9e993b5bfb451f03394023ab877.tar.gz
git-d63f334a8242f9e993b5bfb451f03394023ab877.zip
Merge branch 'lm/add-p-context'
"git add/etc -p" now honor the diff.context configuration variable, and also they learn to honor the -U<n> command-line 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;