diff options
| author | Vicent Martà <tanoku@gmail.com> | 2011-06-07 07:07:45 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2011-06-07 07:07:45 -0700 |
| commit | 3a12891f53cd5c349c0eed2ace7a9a900432aa5e (patch) | |
| tree | 32bc8719c8e0c066f95672970be46469f69e2dcf /src/fileops.c | |
| parent | a5aa5bd1d111e7b2cd2e807664cef6f1e91718cc (diff) | |
| parent | 27a1b382c186dd4267924728344213de2a3692c3 (diff) | |
| download | libgit2-3a12891f53cd5c349c0eed2ace7a9a900432aa5e.tar.gz | |
Merge pull request #243 from jpfender/symlinks2
Symlinks NEW
Diffstat (limited to 'src/fileops.c')
| -rw-r--r-- | src/fileops.c | 8 |
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; |
