summaryrefslogtreecommitdiff
path: root/src/fs_path.h
Commit message (Collapse)AuthorAgeFilesLines
* util: don't include unnecessary system librariesEdward Thomson2021-11-221-2/+0
| | | | Remove some unnecessary includes from utility code.
* win32: include correct path headerethomson/pathEdward Thomson2021-11-091-0/+1
|
* fs_path: remove now-unused validation functionsEdward Thomson2021-11-091-22/+0
|
* fs_path: add length with suffix validationEdward Thomson2021-11-091-0/+4
|
* path: introduce `git_path_str_is_valid`Edward Thomson2021-11-091-5/+5
| | | | | Add a `git_str` based validity check; the existing `git_path_is_valid` defers to it.
* fs_path: add long path validation on windowsEdward Thomson2021-11-091-3/+7
|
* fs_path: make empty component validation optionalEdward Thomson2021-11-091-1/+4
|
* fs_path: introduce `str_is_valid`Edward Thomson2021-11-091-11/+41
| | | | | | | | | | Provide a mechanism for users to limit the number of characters that are examined; `git_fs_path_str_is_valid` and friends will only examine up to `str->size` bytes. `git_fs_path_is_valid` delegates to these new functions by passing `SIZE_MAX` (instead of doing a `strlen`), which is a sentinel value meaning "look for a NUL terminator".
* fs_path: `validate` -> `is_valid`Edward Thomson2021-11-091-2/+2
| | | | | Since we're returning a boolean about validation, the name is more properly "is valid".
* path: separate git-specific path functions from utilEdward Thomson2021-11-091-0/+728
Introduce `git_fs_path`, which operates on generic filesystem paths. `git_path` will be kept for only git-specific path functionality (for example, checking for `.git` in a path).