mingw: align symlinks-related rmdir() behavior with Linux
[git/debian.git] / add-interactive.h
blob693f125e8e4bc64ac0ccc8ac3b8dea812a397330
1 #ifndef ADD_INTERACTIVE_H
2 #define ADD_INTERACTIVE_H
4 #include "color.h"
6 struct 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];
15 char context_color[COLOR_MAXLEN];
16 char file_old_color[COLOR_MAXLEN];
17 char file_new_color[COLOR_MAXLEN];
19 int use_single_key;
20 char *interactive_diff_filter, *interactive_diff_algorithm;
23 void init_add_i_state(struct add_i_state *s, struct repository *r);
24 void clear_add_i_state(struct add_i_state *s);
26 struct repository;
27 struct pathspec;
28 int run_add_i(struct repository *r, const struct pathspec *ps);
30 enum add_p_mode {
31 ADD_P_ADD,
32 ADD_P_STASH,
33 ADD_P_RESET,
34 ADD_P_CHECKOUT,
35 ADD_P_WORKTREE,
38 int run_add_p(struct repository *r, enum add_p_mode mode,
39 const char *revision, const struct pathspec *ps);
41 #endif