checkout: support checking out into a new working directory
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 9dc6ae0b57d443e1804984f335d57c5d42992d0b..43c2e52585415cd1f2344c7bdf3ac442c8f2a1db 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -1499,6 +1499,8 @@ static inline ssize_t write_str_in_full(int fd, const char *str)
 {
        return write_in_full(fd, str, strlen(str));
 }
+__attribute__((format (printf, 3, 4)))
+extern int write_file(const char *path, int fatal, const char *fmt, ...);
 
 /* pager.c */
 extern void setup_pager(void);