Remove the deprecated --summary option that served as a syonym to the --log option. Signed-off-by: Ramkumar Ramachandra <artagnon@xxxxxxxxx> --- Documentation/git-fmt-merge-msg.txt | 9 --------- builtin/fmt-merge-msg.c | 13 ++----------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/Documentation/git-fmt-merge-msg.txt b/Documentation/git-fmt-merge-msg.txt index 9499322..5a5c318 100644 --- a/Documentation/git-fmt-merge-msg.txt +++ b/Documentation/git-fmt-merge-msg.txt @@ -33,11 +33,6 @@ OPTIONS Do not list one-line descriptions from the actual commits being merged. ---summary:: ---no-summary:: - Synonyms to --log and --no-log; these are deprecated and will be - removed in the future. - -m <message>:: --message <message>:: Use <message> instead of the branch names for the first line @@ -58,10 +53,6 @@ merge.log:: maxmium) in the merge message. Specifying "true" is equivalent to specifying 20. Defaults to false. -merge.summary:: - Synonym to `merge.log`; this is deprecated and will be removed in - the future. - SEE ALSO -------- linkgit:git-merge[1] diff --git a/builtin/fmt-merge-msg.c b/builtin/fmt-merge-msg.c index cad9ed4..1e969f2 100644 --- a/builtin/fmt-merge-msg.c +++ b/builtin/fmt-merge-msg.c @@ -15,18 +15,12 @@ static int log_limit = 0; static int fmt_merge_msg_config(const char *key, const char *value, void *cb) { - static int found_merge_log = 0; int is_bool; if (!strcmp("merge.log", key)) { - found_merge_log = 1; log_limit = git_config_bool_or_int(key, value, &is_bool); + if (is_bool && log_limit) + log_limit = 20; } - if (!found_merge_log && !strcmp("merge.summary", key)) - log_limit = git_config_bool_or_int(key, value, &is_bool); - - if (is_bool && log_limit) - log_limit = 20; - return 0; } @@ -329,9 +323,6 @@ int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix) { OPTION_INTEGER, 0, "log", &log_limit, "n", "populate log with <n> entries from shortlog", PARSE_OPT_OPTARG, NULL, 20 }, - { OPTION_INTEGER, 0, "summary", &log_limit, "n", - "alias for --log (deprecated)", - PARSE_OPT_OPTARG | PARSE_OPT_HIDDEN, NULL, 20 }, OPT_STRING('m', "message", &message, "text", "use <text> as start of message"), OPT_FILENAME('F', "file", &inpath, "file to read from"), -- 1.7.2.2.409.gdbb11.dirty -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html