Skip to contentSkip to conversation

gitweb: Change feeds from commit to commitdiff output.

PATCH In review Florian La Roche 3 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitweb: Change feeds from commit to commitdiff output.

[PATCH] gitweb: Change feeds from commit to commitdiff output.

Change feeds from displaying the commit to displaying the commitdiff output. This way the patches are shown directly and code review is done more easily via watching feeds.

---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
gitweb/gitweb.perl +1 -1
index 6256641..0db83c0 100755
@@ -5566,7 +5566,7 @@ XML
 			or next;
 
 		# print element (entry, item)
-		my $co_url = href(-full=>1, action=>"commit", hash=>$commit);
+		my $co_url = href(-full=>1, action=>"commitdiff", hash=>$commit);
 		if ($format eq 'rss') {
 			print "<item>\n" .
 			      "<title>" . esc_html($co{'title'}) . "</title>\n" .
Signature · 1 line
1.5.3.8
#1 lore raw
Quoted 7 lines · Florian La Roche

[PATCH] gitweb: Change feeds from commit to commitdiff output.

Change feeds from displaying the commit to displaying the commitdiff output. This way the patches are shown directly and code review is done more easily via watching feeds.

I can see that easier access to commitdiff output is sometimes desirable.

If you are making this change unconditional, however, I think there needs a list discussion between you and the silent majority of people that have been perfectly happy with the current "log only" behaviour.

And to have that discussion, you first have to wake them up, which this patch would serve well as a wake-up call. But if that was the purpose of the posting, please (1) mark the patch as such (commonly done by saying [RFC/PATCH] instead), and (2) keep me out of the "To:" list, if the patch is not for inclusion but for discussion ("cc:" is fine but it's redundant as long as you are sending to the list).

After such a discussion, we may end up finding out that everybody have been silently unhappy and wanted to have commitdiff there, and agree on doing this unconditionally.

But we do not know that yet.

Thanks.

#2 lore raw
Quoted 10 lines · Junio C Hamano
Quoted 7 lines · Florian La Roche

[PATCH] gitweb: Change feeds from commit to commitdiff output.

Change feeds from displaying the commit to displaying the commitdiff output. This way the patches are shown directly and code review is done more easily via watching feeds.

Quoted 7 lines

I can see that easier access to commitdiff output is sometimes desirable.

If you are making this change unconditional, however, I think there needs a list discussion between you and the silent majority of people that have been perfectly happy with the current "log only" behaviour.

Hello Junio,

Right, this is a change in behaviour. Maybe a config option for this would be good, so that users can configure their wanted output style.

Quoted 7 lines

And to have that discussion, you first have to wake them up, which this patch would serve well as a wake-up call. But if that was the purpose of the posting, please (1) mark the patch as such (commonly done by saying [RFC/PATCH] instead), and (2) keep me out of the "To:" list, if the patch is not for inclusion but for discussion ("cc:" is fine but it's redundant as long as you are sending to the list).

Ok.

Quoted 8 lines

After such a discussion, we may end up finding out that everybody have been silently unhappy and wanted to have commitdiff there, and agree on doing this unconditionally.

But we do not know that yet.

From asking people, most don't use feeds to follow development

checkins, but prefer to keep with mailinglists and looking only at the repos for their own interesting parts.

Hope more people will speak up here on the git@ list.

Thanks a lot,

Florian La Roche

#3 lore raw
In reply to Florian La Roche
Quoted 5 lines · Florian La Roche

[PATCH] gitweb: Change feeds from commit to commitdiff output.

Change feeds from displaying the commit to displaying the commitdiff output. This way the patches are shown directly and code review is done more easily via watching feeds.

First, this changes _link_, and not display (change summary), so the commit message IMHO should read rather:

gitweb: Change feeds link from commit view to commitdiff view.

Change feed link from link to commit view to link to commitdiff view. This way the patches are shown directly and code review is done more easily via watching feeds.

I personally do not use gitweb feeds not feed readers, so I cannot say if this change truly helps. I just don't know what the "feed watcher" workflow looks like.

Second, at least for Atom format it is possible to give both 'commit' and 'commitdiff' view links as alternate links for a feed. That is something to consider.

Quoted 9 lines
gitweb/gitweb.perl +1 -1
@@ -5566,7 +5566,7 @@ XML
 			or next;
 
 		# print element (entry, item)
-		my $co_url = href(-full=>1, action=>"commit", hash=>$commit);
+		my $co_url = href(-full=>1, action=>"commitdiff", hash=>$commit);
 		if ($format eq 'rss') {
Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git