diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2011-06-29 14:06:18 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2011-06-29 19:22:24 +0200 |
| commit | 6ac91dfe52e857814fc197614dea0dbf672bdc0f (patch) | |
| tree | dee6c1ec6b5d886e4c1504273571fa882db114ea /src/fileops.h | |
| parent | cfef5fb779ceba60cdd04f323b88373181c0fa8d (diff) | |
| download | libgit2-6ac91dfe52e857814fc197614dea0dbf672bdc0f.tar.gz | |
Hide ".git" directory on Windows upon creation of a non bare repository
Directory which name starts with a dot are hidden on Linux platforms. This patch makes libgit2 behaves similarly on Windows.
Diffstat (limited to 'src/fileops.h')
| -rw-r--r-- | src/fileops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h index 953fc732f..229f6c4d7 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -99,6 +99,7 @@ extern int gitfo_mv_force(const char *from, const char *to); extern int gitfo_lstat__w32(const char *file_name, struct stat *buf); extern int gitfo_readlink__w32(const char *link, char *target, size_t target_len); + extern int gitfo_hide_directory__w32(const char *path); #else # define gitfo_lstat(p,b) lstat(p,b) # define gitfo_readlink(a, b, c) readlink(a, b, c) |
