diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-10 12:38:10 +0400 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-18 03:25:57 +0400 |
commit | 29e948debe603d7dd33a171a0101352e6b133a7a (patch) | |
tree | 6ceeea89bc6f6174536b0005b8e2c87735b82a8e /src/util.h | |
parent | 52695898e55f37cf657592dd9d7946c5a7938038 (diff) |
global: Change parameter ordering in API
Consistency is good.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index cb5e83ce9..c6851ac7e 100644 --- a/src/util.h +++ b/src/util.h @@ -214,4 +214,13 @@ GIT_INLINE(bool) git__iswildcard(int c) return (c == '*' || c == '?' || c == '['); } +/* + * Parse a string value as a boolean, just like Core Git + * does. + * + * Valid values for true are: 'true', 'yes', 'on' + * Valid values for false are: 'false', 'no', 'off' + */ +extern int git__parse_bool(int *out, const char *value); + #endif /* INCLUDE_util_h__ */ |