From 3e937588c6fe36f5776dd1029a34132e0ec76db5 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 10 Feb 2025 22:17:48 +0300 Subject: add git feature It's available at compile-time --- src/r-lg2.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/r-lg2.h (limited to 'src/r-lg2.h') 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 + +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 */ -- cgit v1.2.3-18-g5258