From 191277829241a7b800debae6a6d45a4397b1fd87 Mon Sep 17 00:00:00 2001 From: tenox Date: Tue, 24 Jan 2017 01:35:48 -0800 Subject: git now tracks recursive file deletes --- fileio.c | 12 ++++++------ wfm.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fileio.c b/fileio.c index 32ea7c2..0526954 100644 --- a/fileio.c +++ b/fileio.c @@ -112,7 +112,7 @@ void receivefile(void) { cgiFormFileClose(input); fclose(output); - wfm_commit(CHANGE); + wfm_commit(CHANGE, NULL); redirect("%s?highlight=%s&directory=%s&token=%s", cgiScriptName, virt_filename_urlencoded, virt_dirname_urlencoded, token); @@ -134,7 +134,7 @@ void mkfile(void) { fclose(output); - wfm_commit(CHANGE); + wfm_commit(CHANGE, NULL); redirect("%s?highlight=%s&directory=%s&token=%s", cgiScriptName, virt_filename_urlencoded, virt_dirname_urlencoded, token); @@ -238,7 +238,7 @@ void edit_save(void) { free(buff); - wfm_commit(CHANGE); + wfm_commit(CHANGE, NULL); redirect("%s?highlight=%s&directory=%s&token=%s", cgiScriptName, virt_filename_urlencoded, virt_dirname_urlencoded, token); } @@ -273,7 +273,7 @@ void fileio_re_rmdir(char *dirname) { } else { if(unlink(tempfullpath)!=0) error("Unable to remove file....
%s", strerror(errno)); - wfm_commit(DELETE); + wfm_commit(DELETE, tempfullpath); } } @@ -300,7 +300,7 @@ void fileio_delete(void) { else { if(unlink(phys_filename)!=0) error("Unable to remove file.
%s", strerror(errno)); - wfm_commit(DELETE); + wfm_commit(DELETE, NULL); } } @@ -346,7 +346,7 @@ void fileio_move(void) { if(rename(phys_filename, final_destination)!=0) error("Unable to move file.
[%d: %s]
[SRC=%s] [DST=%s]", errno, strerror(errno), phys_filename, final_destination); - wfm_commit(MOVE); + wfm_commit(MOVE, NULL); } diff --git a/wfm.h b/wfm.h index 3a35c17..5b0184b 100644 --- a/wfm.h +++ b/wfm.h @@ -151,5 +151,5 @@ void html_title(char *); void singleprompt_ui(char *); char *url_encode(char *); char *url_decode(char *); -int wfm_commit(int); -int repo_check(void); \ No newline at end of file +int wfm_commit(int, char *); +int repo_check(void); -- cgit v1.2.3