Merge branch 'pc/dir-count-slashes'

Three instances of the same helper function have been consolidated
to one.

* pc/dir-count-slashes:
  dir: create function count_slashes()
This commit is contained in:
Junio C Hamano
2017-06-22 14:15:21 -07:00
4 changed files with 15 additions and 21 deletions

3
dir.h
View File

@@ -197,6 +197,9 @@ struct dir_struct {
unsigned unmanaged_exclude_files;
};
/*Count the number of slashes for string s*/
extern int count_slashes(const char *s);
/*
* The ordering of these constants is significant, with
* higher-numbered match types signifying "closer" (i.e. more