summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-10-18 07:27:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-10-18 07:38:03 (GMT)
commitc6e8c8005a2b1fc4cff72d279f29178767bd1a47 (patch)
treeb38a45c9763a58a2df4533d17f4f3484a8f9ba2e /cache.h
parentad12b81271d76f3e4a8b1f527e252ac8452732fd (diff)
downloadgit-c6e8c8005a2b1fc4cff72d279f29178767bd1a47.zip
git-c6e8c8005a2b1fc4cff72d279f29178767bd1a47.tar.gz
git-c6e8c8005a2b1fc4cff72d279f29178767bd1a47.tar.bz2
check_filename(): make verify_filename() callable without dying
Make it possible to invole the logic of verify_filename() to make sure the pathname arguments are unambiguous without actually dying. The caller may want to do something different.
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 96840c7..71a731d 100644
--- a/cache.h
+++ b/cache.h
@@ -396,6 +396,7 @@ extern const char *setup_git_directory_gently(int *);
extern const char *setup_git_directory(void);
extern const char *prefix_path(const char *prefix, int len, const char *path);
extern const char *prefix_filename(const char *prefix, int len, const char *path);
+extern int check_filename(const char *prefix, const char *name);
extern void verify_filename(const char *prefix, const char *name);
extern void verify_non_filename(const char *prefix, const char *name);