Git development
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: Sven Verdoolaege <skimo@kotnet.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] gitk: add Update menu item.
Date: Thu, 22 Sep 2005 09:46:43 +1000	[thread overview]
Message-ID: <17201.61667.465005.53654@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20050920122423.GA4228MdfPADPa@greensroom.kotnet.org>

Sven Verdoolaege writes:

> Update will redraw the commits if any commits have been added to any
> of the selected heads.  The new commits appear on the top.

I like the idea but I am not sure if you have implemented it the best
way.

Are we sure that all the commits we had before doing the update will
still be there after the update?  What if I had checked in some
changes and run gitk, and then decided that the commit I just created
was wrong, and so I set HEAD to HEAD^1 and did a git prune, then told
gitk to update - shouldn't I see the top commit disappear?

Maybe it would be better to just clean out everything and re-read all
the commits from scratch.

Also, I'm not convinced that doing ^$id for all tags, heads and other
refs is correct.  Although we have read the reference and know the ID,
that doesn't mean we have seen that commit and displayed it.

The more general problem is to provide a way for the user to change
the set of commits displayed using a dialog box.  That would require
gitk to understand its command-line arguments so that the elements of
the dialog box could be initialized properly, though.

Some other comments:

> +    .bar.file add command -label "Update" -command "updatecommits [list $rargs]"

This would be better as:

    .bar.file add command -label "Update" -command [list updatecommits $rargs]

> +    rereadrefs

We don't need the redrawing part of rereadrefs, just the bit that
unsets tagids etc. and calls readrefs.

Regards,
Paul.

  parent reply	other threads:[~2005-09-22  0:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-20 12:24 [PATCH] gitk: add Update menu item Sven Verdoolaege
2005-09-20 14:56 ` Sven Verdoolaege
2005-09-21 23:46 ` Paul Mackerras [this message]
2005-09-22 13:30   ` Sven Verdoolaege
  -- strict thread matches above, loose matches on Subject: below --
2005-11-23 22:20 Sven Verdoolaege
2005-11-29 21:15 ` Sven Verdoolaege
2005-12-01 11:51   ` Paul Mackerras
2005-12-01 13:07     ` Sven Verdoolaege
2005-12-08  7:52       ` Alex Riesen

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=17201.61667.465005.53654@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=git@vger.kernel.org \
    --cc=skimo@kotnet.org \
    /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