mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
strip_path_suffix(): fix comment
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Johannes Schindelin
parent
047f0f01f2
commit
fc8f39c0da
6
path.c
6
path.c
@@ -466,7 +466,11 @@ static inline int chomp_trailing_dir_sep(const char *path, int len)
|
||||
return len;
|
||||
}
|
||||
|
||||
/* sets prefix if the suffix matches */
|
||||
/*
|
||||
* If path ends with suffix (complete path components), returns the
|
||||
* part before suffix (sans trailing directory separators).
|
||||
* Otherwise returns NULL.
|
||||
*/
|
||||
char *strip_path_suffix(const char *path, const char *suffix)
|
||||
{
|
||||
int path_len = strlen(path), suffix_len = strlen(suffix);
|
||||
|
||||
Reference in New Issue
Block a user