summaryrefslogtreecommitdiffstats
path: root/git_part.h
diff options
context:
space:
mode:
authorGalin Simeonov <gts@volconst.com>2021-09-26 19:12:03 +0300
committerGalin Simeonov <gts@volconst.com>2021-09-26 19:12:03 +0300
commit2057bf1eb5aaf0a9fea2beb8083a3052936b34ea (patch)
tree19a2324ec951ce6d4b81de766d18d6d17b3e61a0 /git_part.h
parent7211f9c57204dc3b27327fc92352d99ad080a8db (diff)
downloadvolgit-2057bf1eb5aaf0a9fea2beb8083a3052936b34ea.tar.gz
generates a tree dump for the HEAD of all the branches
Diffstat (limited to 'git_part.h')
-rw-r--r--git_part.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/git_part.h b/git_part.h
index f1f8072..7b7d896 100644
--- a/git_part.h
+++ b/git_part.h
@@ -4,10 +4,19 @@
#include <git2.h>
#include <system_part.h>
+
+struct Print_Files_Context
+{
+ int base_dir_fd;
+ git_repository *repo;
+};
+
int print_diff_line(const git_diff_delta *delta,const git_diff_hunk *hunk,const git_diff_line *line,FILE *out);
void print_diff(FILE *out,git_tree *parent_tree,git_tree *current_tree,git_repository *repo);
void print_headers_and_commit_message(FILE* where,git_commit *current_commit,git_oid *current);
void print_commits(int dir_fd,const git_reference *branch, git_repository *repo);
+void print_files(int dir_fd,git_tree *tree,git_repository *repo);
+int print_entry(const git_tree_entry *entry,int base_dir_fd,git_repository *repo);
void print_branches(git_repository *repo);