From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Narebski Subject: Re: [RFC/PATCH 4/3] gitweb: Incremental blame (proof of concept) Date: Thu, 11 Dec 2008 09:28:09 -0800 (PST) Message-ID: References: <20081209223703.28106.29198.stgit@localhost.localdomain> <20081210200908.16899.36727.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Petr Baudis , Fredrik Kuivinen To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Thu Dec 11 18:35:58 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 1LApS2-0007qB-JS for gcvg-git-2@gmane.org; Thu, 11 Dec 2008 18:35:51 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756666AbYLKReW (ORCPT ); Thu, 11 Dec 2008 12:34:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756660AbYLKReW (ORCPT ); Thu, 11 Dec 2008 12:34:22 -0500 Received: from mail-bw0-f13.google.com ([209.85.218.13]:36248 "EHLO mail-bw0-f13.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756651AbYLKReU (ORCPT ); Thu, 11 Dec 2008 12:34:20 -0500 Received: by bwz6 with SMTP id 6so2537508bwz.13 for ; Thu, 11 Dec 2008 09:34:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:to:cc:subject:references:from:in-reply-to :message-id:lines:user-agent:mime-version:content-type:date; bh=IVAc2VkPcx9M4MQFPC+PWkL6f7Gru86BxhAYO6AtklA=; b=XRoN0rmFgMXWnGAtw+kt2ow7mWmAKM/K+m/OuogXvhmmvB2KTCUo53bq8yg8Bi60fN NfWel6j924ervYn+dLqxVGLXkWsCUbaw/0tVP6oSTPa1ZWvVcR9ZEL0SfAHx6VKiw+Zj 7NB+f5VGo41OsFHzivvc/N9dLIGDGWv4vCPNw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:to:cc:subject:references:from:in-reply-to :message-id:lines:user-agent:mime-version:content-type:date; b=Oa1agtViP1ChlC+5uM7w2+lNHmAg2wVSFxlbspdTHSDuL8J98adQMduV21UvQjc4hm fYdHtj/BgIFwoS++eO3U7gmZ7XKZGM5M3yf7RO4EdjCYxppNqNZFKC8DIs3eHGRp0vT7 l8tV7GylRtrt2A/ZnUurt+l3NPKHIgrfYKynM= Received: by 10.103.193.12 with SMTP id v12mr1248174mup.23.1229016490696; Thu, 11 Dec 2008 09:28:10 -0800 (PST) Received: from localhost.localdomain (abvq79.neoplus.adsl.tpnet.pl [83.8.214.79]) by mx.google.com with ESMTPS id i5sm2016163mue.16.2008.12.11.09.28.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Dec 2008 09:28:09 -0800 (PST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.13.4/8.13.4) with ESMTP id mBBHS2Tw024253; Thu, 11 Dec 2008 18:28:02 +0100 Received: (from jnareb@localhost) by localhost.localdomain (8.13.4/8.13.4/Submit) id mBBHS0o3024250; Thu, 11 Dec 2008 18:28:00 +0100 X-Authentication-Warning: localhost.localdomain: jnareb set sender to jnareb@gmail.com using -f In-Reply-To: <20081210200908.16899.36727.stgit@localhost.localdomain> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Jakub Narebski writes: > This is tweaked up version of Petr Baudis patch, which > in turn was tweaked up version of Fredrik Kuivinen 's > proof of concept patch. It adds 'blame_incremental' view, which > incrementally displays line data in blame view using JavaScript (AJAX). [...] > Patch by Petr Baudis this one is based on: > http://permalink.gmane.org/gmane.comp.version-control.git/56657 > > Original patch by Fredrik Kuivinen: > http://article.gmane.org/gmane.comp.version-control.git/41361 > > Snippet adding 'generated in' to gitweb, by Petr Baudis: > http://article.gmane.org/gmane.comp.version-control.git/83306 > > Should I post interdiff to Petr Baudis patch, and comments about > difference between them? [...] Here is the list of differences between Petr Baudis patch and the one I have just send. No interdiff, as it is artificially large because previous patch was based on much older version, so ranges does not match. Bugs I have made: * I forgot to make some changes for git-instaweb.sh to have support for incremental blame, namely dependency of 'git-instaweb' target in Makefile on gitweb/blame.js, and lack of the following line in git-instaweb.sh: gitweb_blamejs $GIT_DIR/gitweb/blame.js * Pasky's patch added support for href(...,-partial_query=>1) extra parameter, which ensured that gitweb link had '?' in it, and used it to generate 'baseUrl' parameter for startBlame. I have misunderstood what baseUrl is about, and used $my_url there, while it is partial URL for blame links: it is projectUrl. Therefore links in blame table current 'blame_incremental' would not work. I'm sorry about that, I thought I have checked it... Intentionally omitted features: * In patch this one is based on there was fixBlameLinks() JavaScript function (put directly in the HTML head inside