diff options
author | Galin Simeonov <gts@volconst.com> | 2021-09-25 23:15:21 +0300 |
---|---|---|
committer | Galin Simeonov <gts@volconst.com> | 2021-09-25 23:15:21 +0300 |
commit | 7211f9c57204dc3b27327fc92352d99ad080a8db (patch) | |
tree | b154155aa4aa1c24817fcd062db3679767568845 /git_part.h | |
parent | 9868bd4ae045aadeb5cd9af6a13231462948077e (diff) | |
download | volgit-7211f9c57204dc3b27327fc92352d99ad080a8db.tar.gz |
made it create a directory with files containing the output of the program
Diffstat (limited to 'git_part.h')
-rw-r--r-- | git_part.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -2,11 +2,12 @@ #define VOLGIT_GIT_PART_H VOLGIT_GIT_PART_H #include <stdio.h> #include <git2.h> +#include <system_part.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); +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_branches(git_repository *repo); |