diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2005-11-20 06:52:22 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-19 23:15:07 -0800 |
commit | 4ddba79db76bd6425f00e99ceb1d82d179319aec (patch) | |
tree | 9cf3d1dec1dcfa54ab21573a6eacd6ea02e896ce /cache.h | |
parent | 7b5d895da6d86eda36af84516a359192ca1da469 (diff) | |
download | git-4ddba79db76bd6425f00e99ceb1d82d179319aec.tar.gz git-4ddba79db76bd6425f00e99ceb1d82d179319aec.tar.xz |
git-config-set: add more options
... namely
--replace-all, to replace any amount of matching lines, not just 0 or 1,
--get, to get the value of one key,
--get-all, the multivar version of --get, and
--unset-all, which deletes all matching lines from .git/config
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -192,7 +192,6 @@ extern int diff_rename_limit_default; /* Return a statically allocated filename matching the sha1 signature */ extern char *mkpath(const char *fmt, ...) __attribute__((format (printf, 1, 2))); -extern char *enter_repo(char *path, int strict); extern char *git_path(const char *fmt, ...) __attribute__((format (printf, 1, 2))); extern char *sha1_file_name(const unsigned char *sha1); extern char *sha1_pack_name(const unsigned char *sha1); @@ -388,7 +387,7 @@ extern int git_config(config_fn_t fn); extern int git_config_int(const char *, const char *); extern int git_config_bool(const char *, const char *); extern int git_config_set(const char *, const char *); -extern int git_config_set_multivar(const char *, const char *, const char *); +extern int git_config_set_multivar(const char *, const char *, const char *, int); #define MAX_GITNAME (1000) extern char git_default_email[MAX_GITNAME]; |