diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-04-16 16:33:34 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-16 18:56:53 +0900 |
commit | 0488481e795e3cb683944e54bb0670a1c6e8b477 (patch) | |
tree | ad4702879c25f5fb2873b27a4d1a1e73e08bf8e6 /dir.c | |
parent | c931ba4e7806d4e76d367153cb8eaae022b83be7 (diff) | |
download | git-0488481e795e3cb683944e54bb0670a1c6e8b477.tar.gz |
sha1-name.c: remove the_repo from diagnose_invalid_index_path()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2315,6 +2315,14 @@ int file_exists(const char *f) return lstat(f, &sb) == 0; } +int repo_file_exists(struct repository *repo, const char *path) +{ + if (repo != the_repository) + BUG("do not know how to check file existence in arbitrary repo"); + + return file_exists(path); +} + static int cmp_icase(char a, char b) { if (a == b) |