shell-git-config(3)
git_config_append, git_config_count, git_config_get, git_config_list, git_config_location_exists, git_config_parse, git_config_set, git_config_unset, git_config_env, git_config_foreach, git_config_get_var, git_config_get_subsections - collection of functions to work with a git-like config files
- git_config_append file name value
- git_config_count retname file name
- git_config_get retname file name
- git_config_list file [name]
- git_config_location_exists file name
- git_config_parse file
- git_config_parse_file file
- git_config_set file name value
- git_config_unset file name [value]
- git_config_env file
- git_config_foreach [name] [custom_handler]
- git_config_get_var retname section subsection name [{first|last|all=DELIM}]
- git_config_get_subsections section
The syntax of the configuration file corresponds to the git-config (1).
The variables are divided into sections, wherein the fully qualified variable name of the variable itself is the last dot-separated segment and the section name is everything before the last dot. The variable names are case-insensitive, allow only alphanumeric characters and -, and must start with an alphabetic character. Some variables may appear multiple times; we say then that the variable is multivalued.
Function adds another value with same name into config file.
Function counts variable occurrences in specified config file and stores result into retname variable.
Function gets variable from specified config file and stores result into retname variable.
Lists values of variable in specified config file.
Function checks whether there is a specified variable in the configuration.
Function lists all names and variables in tab separated form.
Parses the git-like config file and calls git_config_handler for every value.
Default handler for git_config_parse_file.
Function sets or adds value into config file with given name.
Function removes variable by name and optionally by value.
Function parses config file and store it as shell variables to improve future access to values. This is another way to get values from the config. It requires more memory since it places the config parameters in shell variables. This can be useful if you often access config variables.
Lists of variables speciRequires file parsing function.fied in the config. Uses the result of parsing a file by the git_config_env.
Default handler for git_config_foreach. This function may be overridden.
Function stores value of config value into the retname variable. Uses the result of parsing a file by the git_config_env.
Function walkthrough all subsections in section and call git_config_get_subsections_handler function. Uses the result of parsing a file by the git_config_env.
Default handler for git_config_get_subsections. This function may be overridden.
GIT_CONFIG_GET_RAW - Outputs values without decoding and unquoting.
GIT_CONFIG_INCLUDE - Allows include one config file from another by setting the special include.path variable. The included file is expanded immediately, as if its contents had been found at the location of the include directive.
Authors and contributors of the programs included in the libshell package are listed in the COPYING file.
Report bugs to the authors.