From: Linus Torvalds Subject: Re: [ANNOUNCE] git-pasky-0.6.2 && heads-up on upcoming changes Date: Wed, 20 Apr 2005 17:14:03 -0700 (PDT) Message-ID: References: <20050420205633.GC19112@pasky.ji.cz> <20050420211919.GA20129@kroah.com> <20050420215117.GJ19112@pasky.ji.cz> <20050420222815.GM19112@pasky.ji.cz> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Greg KH , git@vger.kernel.org X-From: git-owner@vger.kernel.org Thu Apr 21 02:07:59 2005 Return-path: Received: from vger.kernel.org ([12.107.209.244]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOPEa-00024X-DN for gcvg-git@gmane.org; Thu, 21 Apr 2005 02:07:56 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261842AbVDUAMO (ORCPT ); Wed, 20 Apr 2005 20:12:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261848AbVDUAMO (ORCPT ); Wed, 20 Apr 2005 20:12:14 -0400 Received: from fire.osdl.org ([65.172.181.4]:7296 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S261842AbVDUAMI (ORCPT ); Wed, 20 Apr 2005 20:12:08 -0400 Received: from shell0.pdx.osdl.net (fw.osdl.org [65.172.181.6]) by smtp.osdl.org (8.12.8/8.12.8) with ESMTP id j3L0C4s4020818 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 20 Apr 2005 17:12:05 -0700 Received: from localhost (shell0.pdx.osdl.net [10.9.0.31]) by shell0.pdx.osdl.net (8.13.1/8.11.6) with ESMTP id j3L0C3iC005170; Wed, 20 Apr 2005 17:12:03 -0700 To: Petr Baudis In-Reply-To: <20050420222815.GM19112@pasky.ji.cz> X-Spam-Status: No, hits=0 required=5 tests= X-Spam-Checker-Version: SpamAssassin 2.63-osdl_revision__1.35__ X-MIMEDefang-Filter: osdl$Revision: 1.109 $ X-Scanned-By: MIMEDefang 2.36 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Pasky, what do you think about this change to "git log"? It makes it a _lot_ easier to parse the result, as it indents all the comments by two spaces, meaning that the header is clearly marked, and you can then do various 'sed'/'grep' things with nice normal regular expressions like '^parent' without having to worry about there being a line that starts with "parent" in the free-form part.. I also think the end result is more readable from a human standpoint, with indentation as the way to distinguish the headers from the commentary, and less ugly ASCII barfic's with "------" etc. I'm doing a 2.6.12-rc3 release, so I care more than usual about the changelog ;) Linus --- gitlog.sh: a496a864f9586e47a4d7bd3ae0af0b3e07b7deb8 --- a/gitlog.sh +++ b/gitlog.sh @@ -28,7 +28,7 @@ rev-tree $base | sort -rn | while read t fi ;; "") - echo; cat + echo; sed 's/^/ /' ;; *) echo $key $rest @@ -36,5 +36,5 @@ rev-tree $base | sort -rn | while read t esac done - echo -e "\n--------------------------" + echo done