summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 017678b)
raw | patch | inline | side by side (parent: 017678b)
author | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Aug 2009 05:30:33 +0000 (22:30 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Aug 2009 05:30:33 +0000 (22:30 -0700) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-mailinfo.c | patch | blob | history |
diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c
index 1c14d381d23074d1c6b2a2180c25629974e3b5c4..03cbcad1ff282c33c178d741067c3ac676a96aa8 100644 (file)
--- a/builtin-mailinfo.c
+++ b/builtin-mailinfo.c
return 0;
}
+static int git_mailinfo_config(const char *var, const char *value, void *unused)
+{
+ if (prefixcmp(var, "mailinfo."))
+ return git_default_config(var, value, unused);
+ if (!strcmp(var, "mailinfo.scissors")) {
+ use_scissors = git_config_bool(var, value);
+ return 0;
+ }
+ /* perhaps others here */
+ return 0;
+}
+
static const char mailinfo_usage[] =
"git mailinfo [-k] [-u | --encoding=<encoding> | -n] msg patch <mail >info";
/* NEEDSWORK: might want to do the optional .git/ directory
* discovery
*/
- git_config(git_default_config, NULL);
+ git_config(git_mailinfo_config, NULL);
def_charset = (git_commit_encoding ? git_commit_encoding : "UTF-8");
metainfo_charset = def_charset;