diff options
| author | Edward Thomson <ethomson@microsoft.com> | 2014-04-08 17:18:47 -0700 |
|---|---|---|
| committer | Edward Thomson <ethomson@github.com> | 2016-05-26 11:36:11 -0500 |
| commit | d34f68261ef95b517944d4fa89ee13b4a68d3cb4 (patch) | |
| tree | 686b92a0e7174b891bd4e5a61e480acfc1be5002 /src/path.h | |
| parent | 7cb904ba4443c22ff5396769b7d07a7f329c0102 (diff) | |
| download | libgit2-d34f68261ef95b517944d4fa89ee13b4a68d3cb4.tar.gz | |
Patch parsing from patch files
Diffstat (limited to 'src/path.h')
| -rw-r--r-- | src/path.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/path.h b/src/path.h index f31cacc70..fb45a6534 100644 --- a/src/path.h +++ b/src/path.h @@ -244,6 +244,12 @@ extern int git_path_join_unrooted( git_buf *path_out, const char *path, const char *base, ssize_t *root_at); /** + * Removes multiple occurrences of '/' in a row, squashing them into a + * single '/'. + */ +extern void git_path_squash_slashes(git_buf *path); + +/** * Clean up path, prepending base if it is not already rooted. */ extern int git_path_prettify(git_buf *path_out, const char *path, const char *base); |
