From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Marin Subject: Re: [PATCH 12/13] Build in merge Date: Fri, 27 Jun 2008 15:04:52 +0200 Message-ID: <4864E574.70700@freesurf.fr> References: <0b7ea424b3d5ea18a5a8660c6aead51adcc6a40f.1214066799.git.vmiklos@frugalware.org> <57d8a308fae0012174ed4388baccf1bde8515f2f.1214066799.git.vmiklos@frugalware.org> <5cae08d3bf2852a8bbd8dc8cdf741cb4bdfa237e.1214066799.git.vmiklos@frugalware.org> <486270D5.5050204@free.fr> <20080627010609.GJ29404@genesis.frugalware.org> <4864C8F8.9020501@free.fr> <20080627125443.GK29404@genesis.frugalware.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Olivier Marin , Junio C Hamano , git@vger.kernel.org To: Miklos Vajna X-From: git-owner@vger.kernel.org Fri Jun 27 15:06:17 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1KCDds-0005x9-66 for gcvg-git-2@gmane.org; Fri, 27 Jun 2008 15:05:46 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755249AbYF0NEf convert rfc822-to-quoted-printable (ORCPT ); Fri, 27 Jun 2008 09:04:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755171AbYF0NEf (ORCPT ); Fri, 27 Jun 2008 09:04:35 -0400 Received: from smtp2-g19.free.fr ([212.27.42.28]:51724 "EHLO smtp2-g19.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753485AbYF0NEe (ORCPT ); Fri, 27 Jun 2008 09:04:34 -0400 Received: from smtp2-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp2-g19.free.fr (Postfix) with ESMTP id 0755F12B6E2; Fri, 27 Jun 2008 15:04:31 +0200 (CEST) Received: from [10.253.21.40] (hhe95-1-82-225-56-14.fbx.proxad.net [82.225.56.14]) by smtp2-g19.free.fr (Postfix) with ESMTP id BE34A12B731; Fri, 27 Jun 2008 15:04:30 +0200 (CEST) User-Agent: Thunderbird 2.0.0.14 (X11/20080505) In-Reply-To: <20080627125443.GK29404@genesis.frugalware.org> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Miklos Vajna a =E9crit : > On Fri, Jun 27, 2008 at 01:03:20PM +0200, Olivier Marin wrote: >> Absolutely. And also color.ui. The following patch should do the tri= ck: >> >> diff --git a/builtin-merge.c b/builtin-merge.c >> index 98adca5..cf557f7 100644 >> --- a/builtin-merge.c >> +++ b/builtin-merge.c >> @@ -7,6 +7,7 @@ >> */ >> =20 >> #include "cache.h" >> +#include "color.h" >> #include "parse-options.h" >> #include "builtin.h" >> #include "run-command.h" >> @@ -712,6 +713,9 @@ int cmd_merge(int argc, const char **argv, const= char *prefix) >> git_config(git_merge_config, NULL); >> git_config(git_diff_ui_config, NULL); >> =20 >> + if (diff_use_color_default =3D=3D -1) >> + diff_use_color_default =3D git_use_color_default; >> + >> argc =3D parse_options(argc, argv, builtin_merge_options, >> builtin_merge_usage, 0); >=20 > Have you tried this? I did. I forget to say that it's on top of your patch, sorry. > First, you need to call git_get_colorbool_config(), second this won't > respect diff.color, while my patch does. git_get_colorbool_config() is called via git_diff_ui_config. Olivier.