| 1911 | } |
| 1912 | |
| 1913 | static int git_configset_get_string_tmp(struct config_set *set, const char *key, |
| 1914 | const char **dest) |
| 1915 | { |
| 1916 | const char *value; |
| 1917 | if (!git_configset_get_value(set, key, &value, NULL)) { |
| 1918 | if (!value) |
| 1919 | return config_error_nonbool(key); |
| 1920 | *dest = value; |
| 1921 | return 0; |
| 1922 | } else { |
| 1923 | return 1; |
| 1924 | } |
| 1925 | } |
| 1926 | |
| 1927 | int git_configset_get_int(struct config_set *set, const char *key, int *dest) |
| 1928 | { |
no test coverage detected