Skip to contentSkip to conversation

Another gitweb wishlist

DISCUSSION Petr Baudis 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hello,

I have accumulated some more stuff I'm missing in gitweb, so I'm
dumping it on you now. ;-)

(i) Speed - the http://kernel.org/git/ document takes anytime between
roughly 30 seconds to one minute to load. What's taking so long?

(ii) I need persistent links to the latest version of <file>. Obvious

http://kernel.org/git/?p=cogito/cogito.git;a=blob;f=contrib/ciabot.pl

does not quite work right, since there are no links to (most importantly) the plain view (and blob_plain link doesn't work), tree view and such.

(iii) Too hard to follow history of renamed files. Let's take
git-log.sh. I'll immediately stop at the big rename commit:

	http://kernel.org/git/?p=git/git.git;a=commit;h=215a7ad1ef790467a4cd3f0dcffbd6e5f04c38f7

If I want to continue following its history before the rename, I have to manually go to the tree of the parent commit and get the history of the original file there. This is quite annoying and significantly reduces practicality of the feature on the GIT repository precisely because of the big rename.

(iv) Related to (iii), if you get the hb parameter to the blob view,
you should offer the 'diff' and 'history' links in the blob view. Also the 'log' and 'shortlog' links should point to more sensible locations, either the same as in the relevant commit's view, or see (v).

(v) Only shortlog is available for per-file history. Perhaps it would
be nicer to make 'log' and 'shortlog' links in blob context go to the file's history, and in file history switch between shortlog/log display mode.

Thanks,

Signature · 4 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
#1 lore raw
Quoted 4 lines · Petr Baudis

(ii) I need persistent links to the latest version of <file>. Obvious

http://kernel.org/git/?p=cogito/cogito.git;a=blob;f=contrib/ciabot.pl

Works for me:
http://www.liacs.nl/~sverdool/gitweb.cgi?p=barvinok.git;a=blob;f=README

It's probably this one:

gitweb.cgi +2 -2
@@ -1269,9 +1269,9 @@ sub git_get_hash_by_path {
 }
 
 sub git_blob {
+	$hash_base ||= git_read_hash("$project/HEAD");
 	if (!defined $hash && defined $file_name) {
-		my $base = $hash_base || git_read_hash("$project/HEAD");
-		$hash = git_get_hash_by_path($base, $file_name, "blob");
+		$hash = git_get_hash_by_path($hash_base, $file_name, "blob");
 	}
 	open my $fd, "-|", "$gitbin/git-cat-file blob $hash" or die_error(undef, "Open failed.");
 	my $base = $file_name || "";

skimo

#2 lore raw

Dear diary, on Wed, Sep 21, 2005 at 10:54:16PM CEST, I got a letter where Sven Verdoolaege <[email protected]> told me that...

Quoted 8 lines · Petr Baudis
Quoted 4 lines

(ii) I need persistent links to the latest version of <file>. Obvious

http://kernel.org/git/?p=cogito/cogito.git;a=blob;f=contrib/ciabot.pl

Works for me:
http://www.liacs.nl/~sverdool/gitweb.cgi?p=barvinok.git;a=blob;f=README

This is good, however there is no easy way to see the file's history, and showing the last repository commit with the file might lead to a false impression that the commit actually touched the file, even if that is not the case.

Also, trying to see your changes at

http://www.liacs.nl/~sverdool/gitweb.cgi?p=gitweb.git;a=summary

shows how nice it would be to have some gitk-ish gitweb view. That would be probably a lot of work, though.

Signature · 4 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.