diff --git a/git-compat-util.h b/git-compat-util.h
index c9e711872f1a2380d273f7149b4795a4a9852c06..c0198dde4c2c6a61718228ca2ade463c22e0bec3 100644 (file)
--- a/git-compat-util.h
+++ b/git-compat-util.h
* Always returns the return value of unlink(2).
*/
int unlink_or_warn(const char *path);
+/*
+ * Likewise for rmdir(2).
+ */
+int rmdir_or_warn(const char *path);
+/*
+ * Calls the correct function out of {unlink,rmdir}_or_warn based on
+ * the supplied file mode.
+ */
+int remove_or_warn(unsigned int mode, const char *path);
#endif