git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitweb: Change feeds from commit to commitdiff output.
@ 2008-01-10 13:09 Florian La Roche
  2008-01-10 20:21 ` Junio C Hamano
  2008-01-11 11:12 ` Jakub Narebski
  0 siblings, 2 replies; 4+ messages in thread
From: Florian La Roche @ 2008-01-10 13:09 UTC (permalink / raw)
  To: git, gitster

[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.

Signed-off-by: Florian La Roche <laroche@redhat.com>
---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 6256641..0db83c0 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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" .
-- 
1.5.3.8

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] gitweb: Change feeds from commit to commitdiff output.
  2008-01-10 13:09 [PATCH] gitweb: Change feeds from commit to commitdiff output Florian La Roche
@ 2008-01-10 20:21 ` Junio C Hamano
  2008-01-11  6:53   ` Florian La Roche
  2008-01-11 11:12 ` Jakub Narebski
  1 sibling, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2008-01-10 20:21 UTC (permalink / raw)
  To: Florian La Roche; +Cc: git

Florian La Roche <laroche@redhat.com> writes:

> [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.
>
> Signed-off-by: Florian La Roche <laroche@redhat.com>

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gitweb: Change feeds from commit to commitdiff output.
  2008-01-10 20:21 ` Junio C Hamano
@ 2008-01-11  6:53   ` Florian La Roche
  0 siblings, 0 replies; 4+ messages in thread
From: Florian La Roche @ 2008-01-11  6:53 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

On Thu, Jan 10, 2008 at 12:21:21PM -0800, Junio C Hamano wrote:
> Florian La Roche <laroche@redhat.com> writes:
> 
> > [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.
> >
> > Signed-off-by: Florian La Roche <laroche@redhat.com>
> 
> 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.


> 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.


> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gitweb: Change feeds from commit to commitdiff output.
  2008-01-10 13:09 [PATCH] gitweb: Change feeds from commit to commitdiff output Florian La Roche
  2008-01-10 20:21 ` Junio C Hamano
@ 2008-01-11 11:12 ` Jakub Narebski
  1 sibling, 0 replies; 4+ messages in thread
From: Jakub Narebski @ 2008-01-11 11:12 UTC (permalink / raw)
  To: Florian La Roche; +Cc: git

Florian La Roche <laroche@redhat.com> writes:

> [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.

> --- a/gitweb/gitweb.perl
> +++ b/gitweb/gitweb.perl
> @@ -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') {

-- 
Jakub Narebski
Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-11 11:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-10 13:09 [PATCH] gitweb: Change feeds from commit to commitdiff output Florian La Roche
2008-01-10 20:21 ` Junio C Hamano
2008-01-11  6:53   ` Florian La Roche
2008-01-11 11:12 ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).