summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorConrad Irwin <conrad.irwin@gmail.com>2011-05-07 10:58:07 -0700
committerJunio C Hamano <gitster@pobox.com>2011-05-09 17:02:33 -0700
commitb4bd466820ee272fccfefff1d23d64c7826d1d07 (patch)
tree63794ec626b75e5de03a95177d98094dcfe2ba7d /commit.h
parente41fcfe955cb8080bf8f0e16352d3131d1f01ac8 (diff)
downloadgit-b4bd466820ee272fccfefff1d23d64c7826d1d07.tar.gz
Add support for -p/--patch to git-commit
The --interactive flag is already shared by git add and git commit, share the -p and --patch flags too. Signed-off-by: Conrad Irwin <conrad.irwin@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.h b/commit.h
index 41985130d1..b432642b99 100644
--- a/commit.h
+++ b/commit.h
@@ -159,7 +159,7 @@ extern struct commit_list *get_shallow_commits(struct object_array *heads,
int is_descendant_of(struct commit *, struct commit_list *);
int in_merge_bases(struct commit *, struct commit **, int);
-extern int interactive_add(int argc, const char **argv, const char *prefix);
+extern int interactive_add(int argc, const char **argv, const char *prefix, int patch);
extern int run_add_interactive(const char *revision, const char *patch_mode,
const char **pathspec);