diff options
| author | Carlos MartÃn Nieto <cmn@dwim.me> | 2018-05-22 13:58:24 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2018-05-29 13:44:35 +0200 |
| commit | d7ee21eecf01199dcdee3a67b8b193d21dc60cf2 (patch) | |
| tree | b60655aab200fd9fae7e648493e061acfb272f04 /src/path.h | |
| parent | f907a6f5ebd5bbb3286a2e9463b6eba0ff494426 (diff) | |
| download | libgit2-d7ee21eecf01199dcdee3a67b8b193d21dc60cf2.tar.gz | |
path: expose dotgit detection functions per filesystem
These will be used by the checkout code to detect them for the particular
filesystem they're on.
Diffstat (limited to 'src/path.h')
| -rw-r--r-- | src/path.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/path.h b/src/path.h index b0c3975ad..e0812ec29 100644 --- a/src/path.h +++ b/src/path.h @@ -652,6 +652,20 @@ int git_path_normalize_slashes(git_buf *out, const char *path); extern int git_path_is_dotgit_modules(const char *name); /** + * Check whether a path component corresponds to a .gitmodules file in NTFS + * + * @param name the path component to check + */ +extern int git_path_is_ntfs_dotgit_modules(const char *name); + +/** + * Check whether a path component corresponds to a .gitmodules file in HFS+ + * + * @param name the path component to check + */ +extern int git_path_is_hfs_dotgit_modules(const char *name); + +/** * Check whether a path component corresponds to a .gitignore file * * @param name the path component to check @@ -659,10 +673,38 @@ extern int git_path_is_dotgit_modules(const char *name); extern int git_path_is_dotgit_ignore(const char *name); /** + * Check whether a path component corresponds to a .gitignore file in NTFS + * + * @param name the path component to check + */ +extern int git_path_is_ntfs_dotgit_ignore(const char *name); + +/** + * Check whether a path component corresponds to a .gitignore file in HFS+ + * + * @param name the path component to check + */ +extern int git_path_is_hfs_dotgit_ignore(const char *name); + +/** * Check whether a path component corresponds to a .gitignore file * * @param name the path component to check */ extern int git_path_is_dotgit_attributes(const char *name); +/** + * Check whether a path component corresponds to a .gitattributes file in NTFS + * + * @param name the path component to check + */ +extern int git_path_is_ntfs_dotgit_attributes(const char *name); + +/** + * Check whether a path component corresponds to a .gitattributes file in HFS+ + * + * @param name the path component to check + */ +extern int git_path_is_hfs_dotgit_attributes(const char *name); + #endif |
