Re: [PATCH] Split out merge_recursive() to merge-recursive.c

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Miklos Vajna <vmiklos@...>
Cc: Junio C Hamano <gitster@...>, <git@...>
Date: Tuesday, August 12, 2008 - 1:56 pm

Hi,

Miklos Vajna wrote:

So, according to that change my "revert" patch is the same plus this
interdiff:

--8<--
diff --git a/builtin-revert.c b/builtin-revert.c
index dcee181..941b875 100644
--- a/builtin-revert.c
+++ b/builtin-revert.c
@@ -281,7 +281,8 @@ static int revert_or_cherry_pick(int argc, const char **argv)
 	const char *message, *encoding;
 	const char *defmsg = xstrdup(git_path("MERGE_MSG"));
 
-	git_config(git_default_config, NULL);
+	git_config(merge_recursive_config, NULL);
+	merge_recursive_setup(0);
 	me = action == REVERT ? "revert" : "cherry-pick";
 	setenv(GIT_REFLOG_ACTION, me, 0);
 	parse_args(argc, argv);
-->8--

I'm fine with that, but my hope(?) was that we could have some more
generic function that takes SHAs ("unsigned char *") instead of commits.
I don't know if this is bad for builtin-merge, but from the "revert" and
"sequencer" point of view this is all I need.

Hmm, I think it takes less time to implement it based on your patch than
explaining :-)

One further comment:
[...]


Why this?

So we have:
 1. "merge.verbosity" config value
 2. GIT_MERGE_VERBOSITY environment
 3. merge_recursive_verbosity variable

I wonder if 3 is really necessary.

Kind regards,
  Stephan

-- 
Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] builtin-revert.c: Make use of merge_recursive(), Stephan Beyer, (Mon Aug 11, 11:03 am)
Re: [PATCH] builtin-revert.c: Make use of merge_recursive(), Johannes Schindelin, (Mon Aug 11, 11:47 am)
[PATCH] builtin-revert: Make use of merge_recursive(), Stephan Beyer, (Mon Aug 11, 5:44 pm)
Re: [PATCH] builtin-revert: Make use of merge_recursive(), Junio C Hamano, (Mon Aug 11, 7:27 pm)
[PATCH] Split out merge_recursive() to merge-recursive.c, Miklos Vajna, (Tue Aug 12, 12:45 pm)
Re: [PATCH] Split out merge_recursive() to merge-recursive.c, Junio C Hamano, (Wed Aug 13, 11:17 pm)
Re: [PATCH] Split out merge_recursive() to merge-recursive.c, Stephan Beyer, (Tue Aug 12, 1:56 pm)
Re: [PATCH] builtin-revert: Make use of merge_recursive(), Stephan Beyer, (Mon Aug 11, 7:47 pm)
Re: [PATCH] builtin-revert: Make use of merge_recursive(), Junio C Hamano, (Mon Aug 11, 7:52 pm)
Re: [PATCH] builtin-revert: Make use of merge_recursive(), Stephan Beyer, (Mon Aug 11, 5:46 pm)
Re: [PATCH] builtin-revert: Make use of merge_recursive(), Junio C Hamano, (Mon Aug 11, 6:33 pm)