Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-01-30 00:15:18 +0400
committerRussell Belfer <rb@github.com>2013-01-30 00:15:18 +0400
commit1e7799e8b84491cadb99cc306749316beec8a339 (patch)
tree9204f5915365199a7278b2dc48e0dd560ba7d839 /src/config_file.h
parent17c92beaca15f40bc8456cc38ced40f6921c4640 (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.h2
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