diff options
author | Russell Belfer <rb@github.com> | 2013-01-30 00:15:18 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-01-30 00:15:18 +0400 |
commit | 1e7799e8b84491cadb99cc306749316beec8a339 (patch) | |
tree | 9204f5915365199a7278b2dc48e0dd560ba7d839 /src/config_file.h | |
parent | 17c92beaca15f40bc8456cc38ced40f6921c4640 (diff) |
Implement config key validation rules
This is a new implementation of core git's config key checking
rules that prevents non-alphanumeric characters (and '-') for
the top-level section and key names inside of config files.
This also validates the target section name when renaming
sections.
Diffstat (limited to 'src/config_file.h')
-rw-r--r-- | src/config_file.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config_file.h b/src/config_file.h index cf1a59036..7445859c4 100644 --- a/src/config_file.h +++ b/src/config_file.h @@ -54,5 +54,7 @@ GIT_INLINE(int) git_config_file_foreach_match( return cfg->foreach(cfg, regexp, fn, data); } +extern int git_config_file_normalize_section(char *start, char *end); + #endif |