List for cgit developers and users
 help / color / mirror / Atom feed
From: e at 80x24.org (Eric Wong)
Subject: [RFC] remove "diff" link at top bar?
Date: Wed, 3 Apr 2019 01:14:40 +0000	[thread overview]
Message-ID: <20190403011440.GA22867@dcvr> (raw)

I've been running this for a few months, now, but forgot to send
it out for review.  Perhaps I'm missing something obvious, but
I've never understood the purpose exposing the "diff" endpoint
at the top navigation bar...

The following applies on top of my:
"ui-shared: improve pageheader display on text-based browsers"
patch which hasn't gotten any feedback, yet.

-----------8<----------------
Subject: [PATCH] ui-shared: get rid of "diff" link at top bar

It's pointless clutter, since the "commit" link shows
the same information.
---
 ui-shared.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/ui-shared.c b/ui-shared.c
index a859ab0..1bb22e6 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -1054,9 +1054,6 @@ void cgit_print_pageheader(void)
 		html(" ");
 		cgit_commit_link("commit", NULL, hc("commit"),
 				 ctx.qry.head, ctx.qry.sha1, ctx.qry.vpath);
-		html(" ");
-		cgit_diff_link("diff", NULL, hc("diff"), ctx.qry.head,
-			       ctx.qry.sha1, ctx.qry.sha2, ctx.qry.vpath);
 		if (ctx.repo->max_stats) {
 			html(" ");
 			cgit_stats_link("stats", NULL, hc("stats"),
-- 
EW


                 reply	other threads:[~2019-04-03  1:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190403011440.GA22867@dcvr \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).