All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gitweb: [commit view] Do not suppress commitdiff link in root commit
@ 2006-10-06 16:59 Petr Baudis
  2006-10-06 20:57 ` Jakub Narebski
  2006-10-07  7:25 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Petr Baudis @ 2006-10-06 16:59 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

There's no reason for that, the commitdiff view is meaningful for the
root commit as well and we link to it everywhere else.

Signed-off-by: Petr Baudis <pasky@suse.cz>
---

 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 56e5231..3a10124 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -3034,7 +3034,7 @@ sub git_commit {
 			$cgi->a({-href => href(action=>"log", hash=>$hash)}, "log");
 	}
 	git_header_html(undef, $expires);
-	git_print_page_nav('commit', defined $co{'parent'} ? '' : 'commitdiff',
+	git_print_page_nav('commit', '',
 	                   $hash, $co{'tree'}, $hash,
 	                   join (' | ', @views_nav));
 

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

* Re: [PATCH] gitweb: [commit view] Do not suppress commitdiff link in root commit
  2006-10-06 16:59 [PATCH] gitweb: [commit view] Do not suppress commitdiff link in root commit Petr Baudis
@ 2006-10-06 20:57 ` Jakub Narebski
  2006-10-07  7:25 ` Junio C Hamano
  1 sibling, 0 replies; 5+ messages in thread
From: Jakub Narebski @ 2006-10-06 20:57 UTC (permalink / raw)
  To: git

Petr Baudis wrote:

> There's no reason for that, the commitdiff view is meaningful for the
> root commit as well and we link to it everywhere else.

It not used to be. It is since we added '--root' as hash_parent ('hp')
parameter for parentless commits.
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

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

* Re: [PATCH] gitweb: [commit view] Do not suppress commitdiff link in root commit
  2006-10-06 16:59 [PATCH] gitweb: [commit view] Do not suppress commitdiff link in root commit Petr Baudis
  2006-10-06 20:57 ` Jakub Narebski
@ 2006-10-07  7:25 ` Junio C Hamano
  2006-10-07 10:00   ` Jakub Narebski
  1 sibling, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2006-10-07  7:25 UTC (permalink / raw)
  To: Petr Baudis; +Cc: git

Petr Baudis <pasky@suse.cz> writes:

> There's no reason for that, the commitdiff view is meaningful for the
> root commit as well and we link to it everywhere else.

It probably is not any more useful than the blob view but I
agree there is no strong reason to supress it, as long as the
commitdiff page is prepared to show the root commit (which I
haven't checked -- if you have --root you should be Ok).

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

* Re: [PATCH] gitweb: [commit view] Do not suppress commitdiff link in root commit
  2006-10-07  7:25 ` Junio C Hamano
@ 2006-10-07 10:00   ` Jakub Narebski
  2006-10-07 12:33     ` Petr Baudis
  0 siblings, 1 reply; 5+ messages in thread
From: Jakub Narebski @ 2006-10-07 10:00 UTC (permalink / raw)
  To: git

Junio C Hamano wrote:

> Petr Baudis <pasky@suse.cz> writes:
> 
>> There's no reason for that, the commitdiff view is meaningful for the
>> root commit as well and we link to it everywhere else.
> 
> It probably is not any more useful than the blob view but I
> agree there is no strong reason to supress it, as long as the
> commitdiff page is prepared to show the root commit (which I
> haven't checked -- if you have --root you should be Ok).

The commitdiff for root commit is much less useful, I think, and not having
commitdiff link serves as indicator of root (parentless) commit, important
in non-commit views. 

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

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

* Re: [PATCH] gitweb: [commit view] Do not suppress commitdiff link in root commit
  2006-10-07 10:00   ` Jakub Narebski
@ 2006-10-07 12:33     ` Petr Baudis
  0 siblings, 0 replies; 5+ messages in thread
From: Petr Baudis @ 2006-10-07 12:33 UTC (permalink / raw)
  To: Jakub Narebski; +Cc: git

Dear diary, on Sat, Oct 07, 2006 at 12:00:29PM CEST, I got a letter
where Jakub Narebski <jnareb@gmail.com> said that...
> Junio C Hamano wrote:
> 
> > Petr Baudis <pasky@suse.cz> writes:
> > 
> >> There's no reason for that, the commitdiff view is meaningful for the
> >> root commit as well and we link to it everywhere else.
> > 
> > It probably is not any more useful than the blob view but I
> > agree there is no strong reason to supress it, as long as the
> > commitdiff page is prepared to show the root commit (which I
> > haven't checked -- if you have --root you should be Ok).
> 
> The commitdiff for root commit is much less useful, I think, and not having
> commitdiff link serves as indicator of root (parentless) commit, important
> in non-commit views. 

  But we don't shor commitdiff _only_ (afaics) in the commit view. ;-)
So it doesn't indicate anything anyway.

  I personally don't mind looking at mass-addition patches (something
looking at Debian package diffs teaches you), and it's a quick way to
see all the files being added to the tree, not browse them blob-by-blob.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)

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

end of thread, other threads:[~2006-10-07 12:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-06 16:59 [PATCH] gitweb: [commit view] Do not suppress commitdiff link in root commit Petr Baudis
2006-10-06 20:57 ` Jakub Narebski
2006-10-07  7:25 ` Junio C Hamano
2006-10-07 10:00   ` Jakub Narebski
2006-10-07 12:33     ` Petr Baudis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.