diff options
| author | Russell Belfer <arrbee@arrbee.com> | 2012-01-11 16:01:48 -0800 |
|---|---|---|
| committer | Russell Belfer <arrbee@arrbee.com> | 2012-01-11 16:01:48 -0800 |
| commit | 6a67a812c224878483659c6f25ca21573d1c309b (patch) | |
| tree | 700df7d116f14bae08e437379bd4dfd44aaba825 /src/fileops.h | |
| parent | fdaa924037b66ee898fab503836a3d67194efacc (diff) | |
| download | libgit2-6a67a812c224878483659c6f25ca21573d1c309b.tar.gz | |
Allow ignores (and attribs) for nonexistent files
This fixes issue 532 that attributes (and gitignores) could not
be checked for files that don't exist. It should be possible to
query such things regardless of the existence of the file.
Diffstat (limited to 'src/fileops.h')
| -rw-r--r-- | src/fileops.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fileops.h b/src/fileops.h index f3f09ec9f..91903a731 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -104,8 +104,10 @@ extern int git_futils_rmdir_r(const char *path, int force); /** * Get the directory for a path. * - * If the path is a directory, this does nothing (save append a '/' as needed). - * If path is a normal file, this gets the directory containing it. + * If the path is a directory, this does nothing (save append a '/' as + * needed). If path is a normal file, this gets the directory containing + * it. If the path does not exist, then this treats it a filename and + * returns the dirname of it. */ extern int git_futils_dir_for_path(git_buf *dir, const char *path, const char *base); |
