| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Remove some unnecessary includes from utility code.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Add a `git_str` based validity check; the existing `git_path_is_valid`
defers to it.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
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".
|
| |
|
|
|
| |
Since we're returning a boolean about validation, the name is more
properly "is valid".
|
|
|
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).
|