Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-02-07 09:05:22 +0300
committerJunio C Hamano <gitster@pobox.com>2019-02-07 09:05:22 +0300
commit09a9c1f427c110f1281eea55c48596c8c8701a13 (patch)
tree06c8f6685e4ca005aa2367d9b4ae95368d2eb170 /cache.h
parent0fa3cc77ee9fb3b6bb53c73688c9b7500f996b83 (diff)
parent06f5608c14e6972748b84649d5b8ffd335bbd209 (diff)
Merge branch 'tt/bisect-in-c'
More code in "git bisect" has been rewritten in C. * tt/bisect-in-c: bisect--helper: `bisect_start` shell function partially in C bisect--helper: `get_terms` & `bisect_terms` shell function in C bisect--helper: `bisect_next_check` shell function in C bisect--helper: `check_and_set_terms` shell function in C wrapper: move is_empty_file() and rename it as is_empty_or_missing_file() bisect--helper: `bisect_write` shell function in C bisect--helper: `bisect_reset` shell function in C
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 156a839484..bcf9fd445f 100644
--- a/cache.h
+++ b/cache.h
@@ -1822,4 +1822,7 @@ void safe_create_dir(const char *dir, int share);
*/
extern int print_sha1_ellipsis(void);
+/* Return 1 if the file is empty or does not exists, 0 otherwise. */
+extern int is_empty_or_missing_file(const char *filename);
+
#endif /* CACHE_H */