diff options
author | tenox <as@tenoware.com> | 2017-01-24 01:35:48 -0800 |
---|---|---|
committer | tenox <as@tenoware.com> | 2017-01-24 01:35:48 -0800 |
commit | 191277829241a7b800debae6a6d45a4397b1fd87 (patch) | |
tree | e1eb144b51a9c248c6d51a696a0492ba8c2a0768 | |
parent | e9d79c70ed2d6d2a89cb5dbd9ff14d7d78b6c6de (diff) | |
download | wfm-191277829241a7b800debae6a6d45a4397b1fd87.tar.gz |
git now tracks recursive file deletes
-rw-r--r-- | fileio.c | 12 | ||||
-rw-r--r-- | wfm.h | 4 |
2 files changed, 8 insertions, 8 deletions
@@ -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....<BR>%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.<BR>%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. <BR>[%d: %s]<BR>[SRC=%s] [DST=%s]", errno, strerror(errno), phys_filename, final_destination); - wfm_commit(MOVE); + wfm_commit(MOVE, NULL); } @@ -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); |