diff options
Diffstat (limited to 'src/r-lg2.h')
-rw-r--r-- | src/r-lg2.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/r-lg2.h b/src/r-lg2.h new file mode 100644 index 0000000..640a2c6 --- /dev/null +++ b/src/r-lg2.h @@ -0,0 +1,22 @@ +#ifndef LPASS_RLG2_H +#define LPASS_RLG2_H + +#ifdef LIGBIT + +#include <git2.h> + +typedef enum { + GIT_ACTION_INSERT, + GIT_ACTION_GENERATE, + GIT_ACTION_EDIT, + GIT_ACTION_DELETE, + GIT_ACTION_MOVE +} git_action_t; + +int lg2_open_repo(const char *path); +int lg2_close_repo(); +int lg2_simple_action(git_action_t action, int is_overwrite, const char *path, const char *new_path); + +#endif /* LIGBIT */ + +#endif /* LPASS_RLG2_H */ |