From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-15?Q?Dirk_S=FCsserott?= Subject: gitk: how to apply '--color-words' to the diff command Date: Mon, 17 Mar 2008 20:18:53 +0100 Message-ID: <47DEC41D.9050409@dirk.my1.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit To: Git Mailing List X-From: git-owner@vger.kernel.org Mon Mar 17 20:19:45 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 1JbKs2-0006Ii-N7 for gcvg-git-2@gmane.org; Mon, 17 Mar 2008 20:19:43 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753051AbYCQTS7 (ORCPT ); Mon, 17 Mar 2008 15:18:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753072AbYCQTS7 (ORCPT ); Mon, 17 Mar 2008 15:18:59 -0400 Received: from smtprelay08.ispgateway.de ([80.67.29.8]:47969 "EHLO smtprelay08.ispgateway.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753021AbYCQTS6 (ORCPT ); Mon, 17 Mar 2008 15:18:58 -0400 Received: from [84.176.117.149] (helo=[192.168.2.100]) by smtprelay08.ispgateway.de with esmtpa (Exim 4.68) (envelope-from ) id 1JbKrG-00037H-OV for git@vger.kernel.org; Mon, 17 Mar 2008 20:18:54 +0100 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) X-Df-Sender: 757646 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Hello, a few days ago I found a patch for gitk that adds a checkbox 'Ignore space change' to the gitk GUI and -- when clicked -- adds the '-w' switch to the diff command. I found that a very convenient way to see 'what has really changed'. The patch was contributed by Steffen Prohaska and has sha1 b9b86007e27d9a06d58feab618a5be1d491ed13e in the git://git.kernel.org/pub/scm/git/git.git repository. Inspired by this, I thought a '--color-words' switch would be even more convenient. I took the patch as a template and kinda replaced all occurences of '-w' with '--color-words' (do not take this literally). Unfortunately gitk then shows the diffs not colorized but with those ugly escape sequences instead. I'm not a Python person and just able to 'copy and waste', but probably some of you had the same idea and got it right. Dirk