diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-09-09 01:27:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-09-09 09:27:45 -0700 |
commit | 90b4a71c493bf24f11b5edee8a519110624a6bea (patch) | |
tree | bc6b950d4b19ba1aee1292970571ad8744b1267b /cache.h | |
parent | 10708a994a632c392ab58aa7d11e49b322aa1505 (diff) | |
download | git-90b4a71c493bf24f11b5edee8a519110624a6bea.tar.gz |
is_directory(): a generic helper function
A simple "grep -e stat --and -e S_ISDIR" revealed there are many
open-coded implementations of this function.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -533,6 +533,7 @@ static inline int is_absolute_path(const char *path) { return path[0] == '/' || has_dos_drive_prefix(path); } +int is_directory(const char *); const char *make_absolute_path(const char *path); const char *make_nonrelative_path(const char *path); const char *make_relative_path(const char *abs, const char *base); |