summaryrefslogtreecommitdiff
path: root/src/fileops.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2011-06-07 07:07:45 -0700
committerVicent Martí <tanoku@gmail.com>2011-06-07 07:07:45 -0700
commit3a12891f53cd5c349c0eed2ace7a9a900432aa5e (patch)
tree32bc8719c8e0c066f95672970be46469f69e2dcf /src/fileops.c
parenta5aa5bd1d111e7b2cd2e807664cef6f1e91718cc (diff)
parent27a1b382c186dd4267924728344213de2a3692c3 (diff)
downloadlibgit2-3a12891f53cd5c349c0eed2ace7a9a900432aa5e.tar.gz
Merge pull request #243 from jpfender/symlinks2
Symlinks NEW
Diffstat (limited to 'src/fileops.c')
-rw-r--r--src/fileops.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fileops.c b/src/fileops.c
index 8292843d1..2e5717e9e 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -175,6 +175,14 @@ int gitfo_exists(const char *path)
return access(path, F_OK);
}
+int gitfo_shallow_exists(const char *path)
+{
+ assert(path);
+
+ struct stat st;
+ return gitfo_lstat(path, &st);
+}
+
git_off_t gitfo_size(git_file fd)
{
struct stat sb;