]> git.ipfire.org Git - thirdparty/git.git/blame - add-interactive.h
Git 2.45-rc0
[thirdparty/git.git] / add-interactive.h
CommitLineData
f83dff60
JS
1#ifndef ADD_INTERACTIVE_H
2#define ADD_INTERACTIVE_H
3
25ea47af
JS
4#include "color.h"
5
6struct add_i_state {
7 struct repository *r;
8 int use_color;
9 char header_color[COLOR_MAXLEN];
10 char help_color[COLOR_MAXLEN];
11 char prompt_color[COLOR_MAXLEN];
12 char error_color[COLOR_MAXLEN];
13 char reset_color[COLOR_MAXLEN];
14 char fraginfo_color[COLOR_MAXLEN];
bcdd297b
JS
15 char context_color[COLOR_MAXLEN];
16 char file_old_color[COLOR_MAXLEN];
17 char file_new_color[COLOR_MAXLEN];
180f48df 18
04f816b1 19 int use_single_key;
08b1ea4c 20 char *interactive_diff_filter, *interactive_diff_algorithm;
25ea47af
JS
21};
22
23void init_add_i_state(struct add_i_state *s, struct repository *r);
180f48df 24void clear_add_i_state(struct add_i_state *s);
25ea47af 25
f83dff60
JS
26struct repository;
27struct pathspec;
28int run_add_i(struct repository *r, const struct pathspec *ps);
d2a233cb
JS
29
30enum add_p_mode {
31 ADD_P_ADD,
36bae1dc
JS
32 ADD_P_STASH,
33 ADD_P_RESET,
52628f94 34 ADD_P_CHECKOUT,
cee6cb73 35 ADD_P_WORKTREE,
d2a233cb
JS
36};
37
38int run_add_p(struct repository *r, enum add_p_mode mode,
39 const char *revision, const struct pathspec *ps);
f83dff60
JS
40
41#endif