aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortenox <as@tenoware.com>2017-01-24 01:35:48 -0800
committertenox <as@tenoware.com>2017-01-24 01:35:48 -0800
commit191277829241a7b800debae6a6d45a4397b1fd87 (patch)
treee1eb144b51a9c248c6d51a696a0492ba8c2a0768
parente9d79c70ed2d6d2a89cb5dbd9ff14d7d78b6c6de (diff)
downloadwfm-191277829241a7b800debae6a6d45a4397b1fd87.tar.gz
git now tracks recursive file deletes
-rw-r--r--fileio.c12
-rw-r--r--wfm.h4
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....<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);
}
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);