From: Petr Baudis Subject: Re: [PATCH 2/1] gitweb: Use fixed string for "next" link in commitdiff view Date: Tue, 24 Oct 2006 13:49:23 +0200 Message-ID: <20061024114923.GD20017@pasky.or.cz> References: <200610230037.57183.jnareb@gmail.com> <7vd58k0wmx.fsf@assigned-by-dhcp.cox.net> <200610240008.08325.jnareb@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Junio C Hamano , git@vger.kernel.org X-From: git-owner@vger.kernel.org Tue Oct 24 13:49:30 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GcKme-0004Fy-S4 for gcvg-git@gmane.org; Tue, 24 Oct 2006 13:49:29 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030342AbWJXLtZ (ORCPT ); Tue, 24 Oct 2006 07:49:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030360AbWJXLtZ (ORCPT ); Tue, 24 Oct 2006 07:49:25 -0400 Received: from w241.dkm.cz ([62.24.88.241]:20875 "EHLO machine.or.cz") by vger.kernel.org with ESMTP id S1030342AbWJXLtY (ORCPT ); Tue, 24 Oct 2006 07:49:24 -0400 Received: (qmail 22582 invoked by uid 2001); 24 Oct 2006 13:49:23 +0200 To: Jakub Narebski Content-Disposition: inline In-Reply-To: <200610240008.08325.jnareb@gmail.com> X-message-flag: Outlook : A program to spread viri, but it can do mail too. User-Agent: Mutt/1.5.13 (2006-08-11) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Dear diary, on Tue, Oct 24, 2006 at 12:08:08AM CEST, I got a letter where Jakub Narebski said that... > Use fixed string instead of shortened SHA1 identifier of commit > as a name for "mext" link in commitdiff view. > > Signed-off-by: Jakub Narebski So I've read what the patch actually does this time, and I really dislike it. > Junio C Hamano wrote: > > Jakub Narebski writes: > > > >> Add a kind of "next" link in the bottom part of navigation bar for > >> "commitdiff" view. > >> > >> For commitdiff between two commits: > >> (from: _commit_) > >> For commitdiff for one single parent commit: > >> (parent: _commit_) > >> For commitdiff for one merge commit > >> (merge: _commit_ _commit_ ...) > >> For commitdiff for root (parentless) commit > >> (initial) > >> where _link_ denotes hyperlink. SHA1 is shortened to 7 characters on > >> display, everything is perhaps unnecessary esc_html on display. > > > > I always hated gitweb diffs that prefix each filepair with their > > full 40-byte SHA-1 blob object names. It just adds noise to the > > output without adding any meaningful information. I agree, using the shortened SHA1 would be definitely an improvement here, but > > Would it even be necessary to use any SHA-1 name in these cases, > > I wonder. Would it make the page less useful if we replace all > > of the above _commit_ with a fixed string, say, "parent"? I really disagree here - what's the point of not using SHA-1? The extra string carries zero information in comparison with the previous state and I just can't see how it *improves* stuff. If you're walking in a maze and making marks on walls, it's still more useful if you have corridors named by "A", "B", "C", "D" on junctions if you sometimes want to walk back to the marked corridors. -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ #!/bin/perl -sp0777i