Skip to contentSkip to conversation

gitweb - feature request

DISCUSSION Sam Ravnborg 8 participants 19 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi Kay.

When browsing http://www.kernel.org/git I often find myself looking for the most recently changed tree.
For this it is very good that you have the "last change" in italic and bolded if newer than a few hours (I think).

A nice additional feature would be the possibility to sort the output according to last change, owner and description.
Using a click-able table heading would be the most intuitive way.

I have not looked into the source for gitweb, so I really do not know how difficult this would be.

Sam

#1 lore raw
Quoted 6 lines · Sam Ravnborg

Hi Kay.

When browsing http://www.kernel.org/git I often find myself looking for the most recently changed tree.
For this it is very good that you have the "last change" in italic and bolded if newer than a few hours (I think).

Hmm, if last change is "minutes" it's bold, if it's "hours" old it's green. What do you miss?

Quoted 6 lines

A nice additional feature would be the possibility to sort the output according to last change, owner and description.
Using a click-able table heading would be the most intuitive way.

I have not looked into the source for gitweb, so I really do not know how difficult this would be.

I was hoping people that want stuff like this would use a RSS reader. :)

Kay

#2 lore raw
Quoted 1 line · Kay Sievers

I was hoping people that want stuff like this would use a RSS reader. :)

I used to subscribe to the kernel RSS feed (using blam) but I found I was only getting the most recent 20 commits, which wasn't much good when a big batch went in because I would miss some. Has this been fixed or was it something I was doing wrong?

Ian.

Signature · 4 lines
Ian Campbell

hipatitis:
	Terminal coolness.
#3 lore raw
Quoted 3 lines · Ian Campbell

I used to subscribe to the kernel RSS feed (using blam) but I found I was only getting the most recent 20 commits, which wasn't much good when a big batch went in because I would miss some.

Yes, I have that problem too. It appears to be just the way that gitweb works - look at the "git_rss" function in the source:
ftp://ftp.kernel.org/pub/software/scm/gitweb/gitweb.cgi

Kay -- is there any chance of fixing this? I love reading the kernel commits via RSS but this makes it a lot less usable than it could be. Really it should return all commits within, say, the last 36 hours so as long as your aggregator polls reasonably often you won't miss anyhing.

The other thing on my wishlish is diffstat -- sometimes the commit messages can be a little ambiguous and just adding what files were changed would help alot. For commits that touch a large number of files maybe it could just show the files that changed the most like:

   net/bar.c              |  412 ++++++++++++-----
   drivers/char/foo.c     |  354 +-------------
   arch/baz/boot.S        |   99 ++++----

[16 other files changed]

Other than that though I really love gitweb and the RSS support is a great touch. It really makes tracking kernel commits painless.

-Mitch

#4 lore raw
Quoted 5 lines · Mitchell Blank Jr
Quoted 3 lines · Ian Campbell

I used to subscribe to the kernel RSS feed (using blam) but I found I was only getting the most recent 20 commits, which wasn't much good when a big batch went in because I would miss some.

Quoted 8 lines

Yes, I have that problem too. It appears to be just the way that gitweb works - look at the "git_rss" function in the source:
ftp://ftp.kernel.org/pub/software/scm/gitweb/gitweb.cgi

Kay -- is there any chance of fixing this? I love reading the kernel commits via RSS but this makes it a lot less usable than it could be. Really it should return all commits within, say, the last 36 hours so as long as your aggregator polls reasonably often you won't miss anyhing.

It's 30 now and up to 150 if they are not older than 48 hours. We can change the numbers, if you hava a better idea...

Quoted 4 lines

The other thing on my wishlish is diffstat -- sometimes the commit messages can be a little ambiguous and just adding what files were changed would help alot. For commits that touch a large number of files maybe it could just show the files that changed the most like:

For now it just lists all changed files to the log message, similar to the "commit" view. Is that ok, or do we really need the diffstat, It may be a bit expensive to generate it for all the commits with every RSS request...

Thanks,
Kay

#5 lore raw
Quoted 2 lines · Kay Sievers

It's 30 now and up to 150 if they are not older than 48 hours. We can change the numbers, if you hava a better idea...

Is it really hard to just make it purely time-based (git-rev-list --max-age)? Think of if Linus is merging with a lot of people and then pushes the results to the master repository -- suddenly there's, say, 400 new commits since the last time my aggregator checked 2 hours ago.

Quoted 2 lines

For now it just lists all changed files to the log message, similar to the "commit" view. Is that ok, or do we really need the diffstat,

It looks great, thanks! diffstat would be slightly nicer but not a big deal.

Quoted 2 lines

It may be
a bit expensive to generate it for all the commits with every RSS request...

Well if the RSS feed's popularity takes off you'll probably want to *not* generate it every time and instead serve it from a static file. This can be as simple as a Makefile like:

	commits.rss: $(GITDIR)/refs/heads/master
		/path/to/myperlscript.pl $(GITDIR) > commits.rss.NEW && chmod 444 commits.rss.NEW && mv commits.rss.NEW commits.rss

and then call "make -C /my/rss/dir -s -f /path/to/mymakefile.mk" from cron every minute.

Serving the rss from a static file has the big advantage that a well-behaved aggregator will only request it if the modification date changed which saves everyone bandwidth.

-Mitch

#7 lore raw
In reply to Ian Campbell
Quoted 8 lines · Ian Campbell
Quoted 1 line · Kay Sievers

I was hoping people that want stuff like this would use a RSS reader. :)

I used to subscribe to the kernel RSS feed (using blam) but I found I was only getting the most recent 20 commits, which wasn't much good when a big batch went in because I would miss some. Has this been fixed or was it something I was doing wrong?

It's 30 now and up to 150 if they are not older than 48 hours. We can tweak the numbers if you like to have it different...

Kay

#8 lore raw
In reply to Kay Sievers
Quoted 10 lines · Kay Sievers
Quoted 6 lines · Sam Ravnborg

Hi Kay.

When browsing http://www.kernel.org/git I often find myself looking for the most recently changed tree.
For this it is very good that you have the "last change" in italic and bolded if newer than a few hours (I think).

Hmm, if last change is "minutes" it's bold, if it's "hours" old it's green. What do you miss?

For this part I do not miss anything - the opposite actually. I like this highlighting you do.

Quoted 9 lines
Quoted 7 lines

A nice additional feature would be the possibility to sort the output according to last change, owner and description.
Using a click-able table heading would be the most intuitive way.

I have not looked into the source for gitweb, so I really do not know how difficult this would be.

I was hoping people that want stuff like this would use a RSS reader. :)

Some day I will try to use such a beast...

Sam

#9 lore raw
Quoted 19 lines · Sam Ravnborg
Quoted 10 lines · Kay Sievers
Quoted 6 lines · Sam Ravnborg

Hi Kay.

When browsing http://www.kernel.org/git I often find myself looking for the most recently changed tree.
For this it is very good that you have the "last change" in italic and bolded if newer than a few hours (I think).

Hmm, if last change is "minutes" it's bold, if it's "hours" old it's green. What do you miss?

For this part I do not miss anything - the opposite actually. I like this highlighting you do.

Quoted 5 lines
Quoted 5 lines

A nice additional feature would be the possibility to sort the output according to last change, owner and description.
Using a click-able table heading would be the most intuitive way.

Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

I have not looked into the source for gitweb, so I really do not know how difficult this would be.

I was hoping people that want stuff like this would use a RSS reader. :)

Some day I will try to use such a beast...

Well, I don't use these beasts myself. :) I will try the sorting with the next round - sounds like a nice feature.

Kay

#10 lore raw
Quoted 20 lines · Kay Sievers
Quoted 19 lines · Sam Ravnborg
Quoted 10 lines · Kay Sievers
Quoted 6 lines · Sam Ravnborg

Hi Kay.

When browsing http://www.kernel.org/git I often find myself looking for the most recently changed tree.
For this it is very good that you have the "last change" in italic and bolded if newer than a few hours (I think).

Hmm, if last change is "minutes" it's bold, if it's "hours" old it's green. What do you miss?

For this part I do not miss anything - the opposite actually. I like this highlighting you do.

Quoted 5 lines
Quoted 5 lines

A nice additional feature would be the possibility to sort the output according to last change, owner and description.
Using a click-able table heading would be the most intuitive way.

Quoted 8 lines
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

I have not looked into the source for gitweb, so I really do not know how difficult this would be.

I was hoping people that want stuff like this would use a RSS reader. :)

Some day I will try to use such a beast...

Well, I don't use these beasts myself. :) I will try the sorting with the next round - sounds like a nice feature.

Sam,
try it! :)

Kay

#11 lore raw
Quoted 2 lines

Sam,
try it! :)

Works excellent - and less than 12 hours after I posted my feautre reqest. That was quick!

Thanks,
Sam

#12 lore raw
In reply to Sam Ravnborg

Hi,

Quoted 4 lines · Sam Ravnborg
Quoted 2 lines · Kay Sievers

I was hoping people that want stuff like this would use a RSS reader. :)

Some day I will try to use such a beast...

You have Firefox, don't you? Next time you surf to gitweb, right click on the funny yellow symbol in the lower right corner of your Firefox. It should say something like "Subscribe to...". Do it.

Then, in you bookmark menu, you should see the entry, with a small arrow to the right. Click on the entry...

Ciao,
Dscho

#13 lore raw
Quoted 3 lines

You have Firefox, don't you? Next time you surf to gitweb, right click on the funny yellow symbol in the lower right corner of your Firefox. It should say something like "Subscribe to...". Do it.

Unfortunately not on my firefox. 1.0.6 on gentoo.
Puzzled...

Sam

#14 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 6 lines · Sam Ravnborg
Quoted 3 lines

You have Firefox, don't you? Next time you surf to gitweb, right click on the funny yellow symbol in the lower right corner of your Firefox. It should say something like "Subscribe to...". Do it.

Unfortunately not on my firefox. 1.0.6 on gentoo.
Puzzled...

I don't see it either with Firefox/1.0+ ID:2005080905.

For it to work, this code needs to be added to the HEAD (slightly modified)

<link rel="alternate" type="application/rss+xml" title="GIT Trees" href="http://www.kernel.org/git/?a=opml" />

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBQvkXWGF0oWcU9kCNAQLNiA//aeblC39Vlc6z6e3GjG84+9V/vPcXjrE9 MdCllzb9D5aITJSWTxK7Ow5Y1nat0g9Cnf1AgrG6wPT6Uvm+7j61EqH5rcjYx/mU kNe+251cHHBnGohdXyV4n20KCoEnXKZOQX7p7R3dJWifR4eyUzacSQiA51WmNPIl vkV+JpTD6lPAIcZxJMXOJWUblaDA0reMPoCQ2nz7gqZOsQP7qWvzi0uyIAxjhaPd AQ5UzEE9l9Wt5J7Oyx/ldz9i5e54EZxFgkaDWlLpDwVpUChmlVBx5V1ltTRh3Ymp 7lCPfy7JFN7eIQpAKp2/rldxvWK2gobSErTJR6nfs3ohSxe6WPLEpVS5Bfxrjo+8 a0LUOi/9E2+Kj1ja1Wf165GkQlI7ZfQgrmFRm8pVWS9WwkjlDvZbHjArv4lg6X6w 02yGuiyT2P0MIhia7SJF7xFM+lUi8mDdT/psnrZQ1++UhckuGPwWTa0EJ8nVWfk2 KkN3G3R1RVdSSgQSlh71ngNzwyFmxvMjHAZHB5ETtiO+/Of6TMkW+o3S8oJrbJSh 9M7WjDlKSUl7R3NcBE2iqx9NUyz7ldwPme+iG/w3aTAsvNaMOgjzsVloEosVeDIh I/GOOujl+ym2IiJsAX9YRyaKmcBTZGEjfnUNWhf14hMDeM5fB5N8P6f+6JsMOB/N s8U1L/LUiCc=
=ai+1
-----END PGP SIGNATURE-----

#15 lore raw
Quoted 8 lines · John Benes
Quoted 6 lines · Sam Ravnborg
Quoted 3 lines

You have Firefox, don't you? Next time you surf to gitweb, right click on the funny yellow symbol in the lower right corner of your Firefox. It should say something like "Subscribe to...". Do it.

Unfortunately not on my firefox. 1.0.6 on gentoo.
Puzzled...

Quoted 6 lines

I don't see it either with Firefox/1.0+ ID:2005080905.

For it to work, this code needs to be added to the HEAD (slightly modified)

<link rel="alternate" type="application/rss+xml" title="GIT Trees" href="http://www.kernel.org/git/?a=opml" />

Are you sure that firefox handles opml without a plugin?

Kay

#16 lore raw
In reply to Johannes Schindelin
Quoted 4 lines · Johannes Schindelin

You have Firefox, don't you? Next time you surf to gitweb, right click on the funny yellow symbol in the lower right corner of your Firefox. It should say something like "Subscribe to...". Do it.

Left-click. And you need to be inside the project you want to rss (it would be nice if you could be at the "projects" page and it would give you a list of things to subscribe to, but that may not be possible).

Linus

#17 lore raw
Quoted 11 lines · Linus Torvalds
Quoted 4 lines · Johannes Schindelin

You have Firefox, don't you? Next time you surf to gitweb, right click on the funny yellow symbol in the lower right corner of your Firefox. It should say something like "Subscribe to...". Do it.

Left-click. And you need to be inside the project you want to rss (it would be nice if you could be at the "projects" page and it would give you a list of things to subscribe to, but that may not be possible).

Sure, it is that way. It is called OPML and I once tested it with a RSS reader and it was able to read the list of offered feeds in with a single request.
Just click on the RSS pict in the footer and it will return the overview of the index page. Firefox may need a plugin to be able to read it, I don't really know...

Kay

#18 lore raw
Quoted 2 lines · Kay Sievers

Firefox may need a plugin to be able to read it, I don't really know...

Firefox definitely needs a separate plugin, at least for me.

Linus

#6 lore raw
In reply to Mitchell Blank Jr
Quoted 4 lines · Mitchell Blank Jr

Is it really hard to just make it purely time-based (git-rev-list --max-age)? Think of if Linus is merging with a lot of people and then pushes the results to the master repository -- suddenly there's, say, 400 new commits since the last time my aggregator checked 2 hours ago.

Think of Linus merging a bunch of trees with 1-month old commits, all of which you'd miss that way.

IMHO, you definitely need a static file for RSS -- do a git-rev-list between HEAD and HEAD-as-of-the-last-time-you-generated-the-RSS, concatenate with the old RSS, then trim appropriately.

Signature · 4 lines
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  [email protected]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
You judge the acts of others only by their intentions.