From: Junichi Uekawa Subject: Re: Git merge conflicts and encoding of logs Date: Wed, 24 Dec 2008 08:37:01 +0900 Message-ID: <877i5qh3aa.dancerj%dancer@netfort.gr.jp> References: <87lju7h4yb.dancerj%dancer@netfort.gr.jp> <7vprjjfgi7.fsf@gitster.siamese.dyndns.org> <4950A422.5030100@viscovery.net> <7vlju7fbqu.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-2022-JP Cc: Johannes Sixt , Junichi Uekawa , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Wed Dec 24 00:38:25 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 1LFGpU-0008BE-LF for gcvg-git-2@gmane.org; Wed, 24 Dec 2008 00:38:25 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751310AbYLWXhG (ORCPT ); Tue, 23 Dec 2008 18:37:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751281AbYLWXhG (ORCPT ); Tue, 23 Dec 2008 18:37:06 -0500 Received: from aegis.netfort.gr.jp ([219.94.144.215]:50221 "HELO aegis.netfort.gr.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751267AbYLWXhE (ORCPT ); Tue, 23 Dec 2008 18:37:04 -0500 Received: (qmail 14724 invoked by uid 0); 23 Dec 2008 23:37:01 -0000 Received: from unknown (HELO core2duo.dancer.pr.jp.netfort.gr.jp) (127.0.0.1) by aegis.netfort.gr.jp with SMTP; 23 Dec 2008 23:37:01 -0000 In-Reply-To: <7vlju7fbqu.fsf@gitster.siamese.dyndns.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.2 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: At Tue, 23 Dec 2008 02:04:57 -0800, Junio C Hamano wrote: > > Johannes Sixt writes: > > > Junio C Hamano schrieb: > >> <<<<<<< HEAD:foo > >> これはサイドブランチの変更です。 > >> やはり JIS コードで書いてます。 > >> ======= > >> 日本語のファイルです。 > >> JIS コードで書いてます。 > >>>>>>>>> master:foo > >> > >> The above will probably come out as UTF-8 in this mail text, but the point > >> is that the confict side markers do not have anything but filename and the > >> branch name. I am still scratching my head trying to see where in the > >> merge-recursive codepath you got snippet of log message. > > > > Try rebase -i instead of merge: This should put summary lines onto the > > conflict markers. > > Ah, that's cherry-pick. > > The fix should be around the area this weather-balloon patch touches. > > Note that this does not correctly work yet, and it seems that somewhere the > string is truncated. Hi, I've read patches from Alexander Gavrilov which try to support per-file encoding in gitattributes (encoding), I assume such features are not in yet. My git repository has mixture of iso-2022-jp(platex source), EUC-JP (some graph source code and other things), UTF-8, so log output format unification to iso-2022-jp is not ideal. That way, I'd have to guess which file is going to have a conflict through cherry-pick and define the logoutput encoding. regards, junichi -- dancer@{netfort.gr.jp,debian.org}