aboutsummaryrefslogtreecommitdiffstats
path: root/entry.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-10-10 11:39:14 -0700
committerJunio C Hamano <gitster@pobox.com>2023-10-10 11:39:14 -0700
commita7a2d10421b735944f376f1de53b437bfbb93e88 (patch)
tree7004d754ae7d6fc1e51820f556d0570da835e42c /entry.h
parent3df51ea0a5ef88b801ab30ca28f159b898183926 (diff)
parentb1bda751739d90e1a94b47397676bcb8eebf16d5 (diff)
downloadgit-a7a2d10421b735944f376f1de53b437bfbb93e88.tar.gz
Merge branch 'cw/prelim-cleanup'
Shuffle some bits across headers and sources to prepare for libification effort. * cw/prelim-cleanup: parse: separate out parsing functions from config.h config: correct bad boolean env value error message wrapper: reduce scope of remove_or_warn() hex-ll: separate out non-hash-algo functions
Diffstat (limited to 'entry.h')
-rw-r--r--entry.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/entry.h b/entry.h
index 7329f918a9..ca3ed35bc0 100644
--- a/entry.h
+++ b/entry.h
@@ -62,4 +62,10 @@ int fstat_checkout_output(int fd, const struct checkout *state, struct stat *st)
void update_ce_after_write(const struct checkout *state, struct cache_entry *ce,
struct stat *st);
+/*
+ * 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 /* ENTRY_H */