diff options
author | Galin Simeonov <gts@volconst.com> | 2021-09-25 11:43:15 +0300 |
---|---|---|
committer | Galin Simeonov <gts@volconst.com> | 2021-09-25 11:43:15 +0300 |
commit | 9868bd4ae045aadeb5cd9af6a13231462948077e (patch) | |
tree | 14f48c77bf0a0a93ff311079502f05bcc3593324 /git_part.h | |
parent | 4e7e1184d5b8b1d067134e7c7459f1c610ac55e6 (diff) | |
download | volgit-9868bd4ae045aadeb5cd9af6a13231462948077e.tar.gz |
separating git stuff into a different file
Diffstat (limited to 'git_part.h')
-rw-r--r-- | git_part.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/git_part.h b/git_part.h new file mode 100644 index 0000000..9f39423 --- /dev/null +++ b/git_part.h @@ -0,0 +1,13 @@ +#ifndef VOLGIT_GIT_PART_H +#define VOLGIT_GIT_PART_H VOLGIT_GIT_PART_H +#include <stdio.h> +#include <git2.h> + +int print_diff_line(const git_diff_delta *delta,const git_diff_hunk *hunk,const git_diff_line *line,void *payload); +void print_diff(git_tree *parent_tree,git_tree *current_tree,git_repository *repo); +void print_headers_and_commit_message(git_commit *current_commit,git_oid *current); +void print_commits(const git_reference *branch, git_repository *repo); + +void print_branches(git_repository *repo); + +#endif |