git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Petr Baudis <pasky@suse.cz>
To: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 4/5] gitweb: Selecting diffs in JavaScript
Date: Sun, 26 Aug 2007 03:17:43 +0200	[thread overview]
Message-ID: <20070826011742.GF1219@pasky.or.cz> (raw)
In-Reply-To: <11796926122089-git-send-email-mkoegler@auto.tuwien.ac.at>

On Sun, May 20, 2007 at 10:23:31PM CEST, Martin Koegler wrote:
> The adds support for selecting arbitrary diffs, if the client browser supports
> JavaScript.
> 
> Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>

JFYI, I've just enabled it on repo.or.cz experimentally. Please anyone
tell me what you think.

(Just click at almost any view in gitweb and marvel at the extra base
and diff links smiling everywhere.)

I'll dump my mind state here, horribly sleepy. Sorry for the
incomprehensible rant. :-)

One thing for certain is that I would get rid of GitAddLinks and instead
have href() add the extra links there, by default display: none and
javascript code making it show. Also, there are obvious UI bugs, like
commit and tree entries for commits having redundant base/diff links;
and Firefox doesn't expand table cells properly for the additional
links. None of these bugs is easily fixable I think.

But maybe it needs more general overhaul and the links added explicitly
in the views, because it really makes sense to have only a single
linkpair per entry and it would be good to have this always at the same
place, and perhaps in a different color. Hmm. And it seems that it's
getting in the way, overally.

Hmm.

What about having another item in the main action menu, 'diff'?
Base/diff links are by default display: none but show up when you click
at 'diff', in green. They will keep showing up until you click 'diff'
again. When you click 'base', both the selected base link and main
'diff' link changes color to red.


Oh the naivity that I've already lost about that someone might make a
patch while I'm sleeping... ;-)

-- 
				Petr "Pasky" Baudis
Ever try. Ever fail. No matter. // Try again. Fail again. Fail better.
		-- Samuel Beckett

  parent reply	other threads:[~2007-08-26  1:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-20 20:23 [PATCH 1/5] gitweb: Support comparing blobs with different names Martin Koegler
2007-05-20 20:23 ` [PATCH 2/5] gitweb: support filename prefix in git_patchset_body/git_difftree_body Martin Koegler
2007-05-20 20:23   ` [PATCH 3/5] gitweb: Add treediff view Martin Koegler
2007-05-20 20:23     ` [PATCH 4/5] gitweb: Selecting diffs in JavaScript Martin Koegler
2007-05-20 20:23       ` [PATCH 5/5] gitweb: Incremental blame Martin Koegler
2007-08-26  1:17       ` Petr Baudis [this message]
2007-08-26 16:17         ` [PATCH 4/5] gitweb: Selecting diffs in JavaScript Martin Koegler
2007-08-26 17:21           ` Petr Baudis
  -- strict thread matches above, loose matches on Subject: below --
2007-09-02 14:46 [PATCH 0/5] gitweb: Support for arbitrary diffs Martin Koegler
2007-09-02 14:46 ` [PATCH 1/5] gitweb: Support comparing blobs with different names Martin Koegler
2007-09-02 14:46   ` [PATCH 2/5] gitweb: support filename prefix in git_patchset_body/git_difftree_body Martin Koegler
2007-09-02 14:46     ` [PATCH 3/5] gitweb: Add treediff view Martin Koegler
2007-09-02 14:46       ` [PATCH 4/5] gitweb: Selecting diffs in JavaScript Martin Koegler

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=20070826011742.GF1219@pasky.or.cz \
    --to=pasky@suse.cz \
    --cc=git@vger.kernel.org \
    --cc=mkoegler@auto.tuwien.ac.at \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).