From b24710fdd33599b83020d92b99961da36655cc4f Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Sun, 26 Sep 2021 23:45:45 +0300 Subject: added html struff --- git_part.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'git_part.h') diff --git a/git_part.h b/git_part.h index 7b7d896..c42230b 100644 --- a/git_part.h +++ b/git_part.h @@ -4,19 +4,14 @@ #include #include - -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_headers_and_commit_message(FILE *where,git_commit *current_commit,const git_oid *current,_Bool has_diff); void print_commits(int dir_fd,const git_reference *branch, git_repository *repo); +void print_commit(git_commit *current_commit,git_commit *parent_commit,FILE *log_file,int diff_directory_fd,git_repository *repo); +void print_files_top(int dir_fd,git_commit *top_commit,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); +int print_entry(FILE *index_file,const git_tree_entry *entry,int base_dir_fd,git_repository *repo); void print_branches(git_repository *repo); -- cgit v1.2.3