F diff --git a/git_part.c b/git_part.c --- a/git_part.c +++ b/git_part.c}void print_commit(git_commit *current_commit,git_commit *parent_commit,FILE *log_file,int diff_directory_fd,git_repository *repo){- git_tree *current_tree;- git_tree *parent_tree;- FILE *diff_file;+ git_tree *current_tree;+ git_tree *parent_tree;+ FILE *diff_file;- git_commit_tree(¤t_tree,current_commit);- if(parent_commit==NULL)- parent_tree=NULL;- else- git_commit_tree(&parent_tree,parent_commit);+ git_commit_tree(¤t_tree,current_commit);+ if(parent_commit==NULL)+ parent_tree=NULL;+ else+ git_commit_tree(&parent_tree,parent_commit);++ diff_file=create_file(diff_directory_fd,git_oid_tostr_s(git_commit_id(current_commit)));- diff_file=create_file(diff_directory_fd,git_oid_tostr_s(git_commit_id(current_commit)));+ print_diff(diff_file,parent_tree,current_tree,repo);- print_diff(diff_file,parent_tree,current_tree,repo);+ git_tree_free(parent_tree);+ print_headers_and_commit_message(log_file,current_commit,git_commit_id(current_commit),1);- git_tree_free(parent_tree);- print_headers_and_commit_message(log_file,current_commit,git_commit_id(current_commit),1);+ close_file(diff_file);}void print_branches(git_repository *repo)print_entry(index_file,current_entry,dir_fd,repo);fprintf(index_file,"\n<br>\n");}+ close_file(index_file);}void print_files_top(int dir_fd,git_commit *top_commit,git_repository *repo){F diff --git a/system_part.c b/system_part.c --- a/system_part.c +++ b/system_part.cif(ret==NULL)die("Ran out of memory!\n");+ read(file,ret,file_stats.st_size);+close(file);return ret;}F diff --git a/volgit.7 b/volgit.7 new file mode 100644 --- /dev/null +++ b/volgit.7+ .TH "VOLGIT" 1 "Setember 27 2021" gts@volconst.com+ .SH NAME+ \f[B]volgit\f[] \- git repository to static html+ .SH SYNOPSIS+ \f[B]volgit\f[] \f[I]source-dir-for-repo destination-dir [ file-containing-header file-containing-footer ]\f[]+ .SH DESCRIPTION+ Very slow static site generator for git repositories.+ .br+ To be safe run it under a separate user account.+ .SH SEE ALSO+ \f[B]git(1)\f[]