git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitweb: Remove redundant "commit" link from shortlog
@ 2006-09-28 23:48 Luben Tuikov
  2006-10-06 13:55 ` Petr Baudis
  0 siblings, 1 reply; 5+ messages in thread
From: Luben Tuikov @ 2006-09-28 23:48 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

Remove the redundant "commit" link from shortlog.
It can be had by simply clicking on the entry title
of the row.

Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
---
 gitweb/gitweb.perl |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

[-- Attachment #2: 1908141687-p2.txt --]
[-- Type: text/plain, Size: 625 bytes --]

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 79c8052..f3f22c2 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2013,7 +2013,6 @@ sub git_shortlog_body {
 		                          href(action=>"commit", hash=>$commit), $ref);
 		print "</td>\n" .
 		      "<td class=\"link\">" .
-		      $cgi->a({-href => href(action=>"commit", hash=>$commit)}, "commit") . " | " .
 		      $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff") . " | " .
 		      $cgi->a({-href => href(action=>"tree", hash=>$commit, hash_base=>$commit)}, "tree");
 		print "</td>\n" .
-- 
1.4.2.1.g05f0f


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

* Re: [PATCH] gitweb: Remove redundant "commit" link from shortlog
  2006-09-28 23:48 [PATCH] gitweb: Remove redundant "commit" link from shortlog Luben Tuikov
@ 2006-10-06 13:55 ` Petr Baudis
  2006-10-06 15:08   ` Jakub Narebski
                     ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Petr Baudis @ 2006-10-06 13:55 UTC (permalink / raw)
  To: Luben Tuikov; +Cc: git

Dear diary, on Fri, Sep 29, 2006 at 01:48:40AM CEST, I got a letter
where Luben Tuikov <ltuikov@yahoo.com> said that...
> Remove the redundant "commit" link from shortlog.
> It can be had by simply clicking on the entry title
> of the row.
> 
> Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>

And what if the commit message is empty?

Witness at http://repo.or.cz/?p=test;a=summary

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

* Re: [PATCH] gitweb: Remove redundant "commit" link from shortlog
  2006-10-06 13:55 ` Petr Baudis
@ 2006-10-06 15:08   ` Jakub Narebski
  2006-10-06 16:55   ` [PATCH] gitweb: Handle commits with empty commit messages more reasonably Petr Baudis
  2006-10-06 18:27   ` [PATCH] gitweb: Remove redundant "commit" link from shortlog Luben Tuikov
  2 siblings, 0 replies; 5+ messages in thread
From: Jakub Narebski @ 2006-10-06 15:08 UTC (permalink / raw)
  To: git

Petr Baudis wrote:

> Dear diary, on Fri, Sep 29, 2006 at 01:48:40AM CEST, I got a letter
> where Luben Tuikov <ltuikov@yahoo.com> said that...
>> Remove the redundant "commit" link from shortlog.
>> It can be had by simply clicking on the entry title
>> of the row.
>> 
>> Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
> 
> And what if the commit message is empty?
> 
> Witness at http://repo.or.cz/?p=test;a=summary

By the way, commitdiff view in this case also looks strange.
I think that simplyfying the git_difftree_body went too far,
Luben.
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

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

* [PATCH] gitweb: Handle commits with empty commit messages more reasonably
  2006-10-06 13:55 ` Petr Baudis
  2006-10-06 15:08   ` Jakub Narebski
@ 2006-10-06 16:55   ` Petr Baudis
  2006-10-06 18:27   ` [PATCH] gitweb: Remove redundant "commit" link from shortlog Luben Tuikov
  2 siblings, 0 replies; 5+ messages in thread
From: Petr Baudis @ 2006-10-06 16:55 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Currently those look very weird, you can't get easily at the commit view
etc. This patch makes their title '(no commit message)'.

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

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

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index ea159e9..56e5231 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -1115,6 +1115,9 @@ sub parse_commit {
 			last;
 		}
 	}
+	if ($co{'title'} eq "") {
+		$co{'title'} = $co{'title_short'} = '(no commit message)';
+	}
 	# remove added spaces
 	foreach my $line (@commit_lines) {
 		$line =~ s/^    //;

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

* Re: [PATCH] gitweb: Remove redundant "commit" link from shortlog
  2006-10-06 13:55 ` Petr Baudis
  2006-10-06 15:08   ` Jakub Narebski
  2006-10-06 16:55   ` [PATCH] gitweb: Handle commits with empty commit messages more reasonably Petr Baudis
@ 2006-10-06 18:27   ` Luben Tuikov
  2 siblings, 0 replies; 5+ messages in thread
From: Luben Tuikov @ 2006-10-06 18:27 UTC (permalink / raw)
  To: Petr Baudis; +Cc: git

--- Petr Baudis <pasky@suse.cz> wrote:
> Dear diary, on Fri, Sep 29, 2006 at 01:48:40AM CEST, I got a letter
> where Luben Tuikov <ltuikov@yahoo.com> said that...
> > Remove the redundant "commit" link from shortlog.
> > It can be had by simply clicking on the entry title
> > of the row.
> > 
> > Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
> 
> And what if the commit message is empty?
> 
> Witness at http://repo.or.cz/?p=test;a=summary

Clearly a pathological case.  Who or why would anyone do this?
I don't think we should worry about such pathological cases.

Commits without commit messages do not question GIT.  They
question the committer... (that's the morning chuckle)

    Luben


> 
> -- 
> 				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*',/((..)*)$/)
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

end of thread, other threads:[~2006-10-06 18:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-28 23:48 [PATCH] gitweb: Remove redundant "commit" link from shortlog Luben Tuikov
2006-10-06 13:55 ` Petr Baudis
2006-10-06 15:08   ` Jakub Narebski
2006-10-06 16:55   ` [PATCH] gitweb: Handle commits with empty commit messages more reasonably Petr Baudis
2006-10-06 18:27   ` [PATCH] gitweb: Remove redundant "commit" link from shortlog Luben Tuikov

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