diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2018-05-22 16:13:47 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2018-05-23 08:47:08 +0200 |
| commit | a7168b47ee494c52ffe850784be9ad996f80441a (patch) | |
| tree | 290ea63c787104e9bdc36eaf0d0ef0316f6e2abc /src/path.h | |
| parent | 58ff913a13b840f1f6ee35e71e9d1de3470904ad (diff) | |
| download | libgit2-a7168b47ee494c52ffe850784be9ad996f80441a.tar.gz | |
path: reject .gitmodules as a symlink
Any part of the library which asks the question can pass in the mode to have it
checked against `.gitmodules` being a symlink.
This is particularly relevant for adding entries to the index from the worktree
and for checking out files.
Diffstat (limited to 'src/path.h')
| -rw-r--r-- | src/path.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/path.h b/src/path.h index 698cf4b55..fd515c8a2 100644 --- a/src/path.h +++ b/src/path.h @@ -637,6 +637,7 @@ extern int git_path_from_url_or_path(git_buf *local_path_out, const char *url_or extern bool git_path_isvalid( git_repository *repo, const char *path, + uint16_t mode, unsigned int flags); /** |
