git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gitk: add Update menu item.

From
SVSven Verdoolaege <skimo@kotnet.org>
Date
Dec 1, 2005, 13:07 UTC
Message-ID
<20051201130724.GV8383MdfPADPa@greensroom.kotnet.org>
In-Reply-To
<17294.58317.317337.145932@cargo.ozlabs.ibm.com>
On Thu, Dec 01, 2005 at 10:51:41PM +1100, Paul Mackerras wrote:
> I put this in although I'm not completely happy with it (though it is
> a good step in the right direction).
Thanks.  That's what it was meant to be (a step in the right direction).
> Why do we unset children and nchildren in the phase == updatecommits
> case?  Wouldn't it give the same result if we set ncleft to nchildren
> for each commit and then we didn't call updatechildren in
> finishcommits?  I think that would end up simpler.

Well, you probably know your own code better than I do, but I'll have a look later.

> I tried removing some commits (using git reset --hard) and then doing
> selecting update from the menu, and it redrew everything, but the
> removed commits were still shown.

Hmmm... I'll have look at this over the weekend (unless you beat me to it).

> Also, what will happen if the user selects update while gitk is still
> drawing the graph?  I think that will cause havoc.  At _best_ we'll
> end up with a truncated list of commits AFAICS.  We need to make that
> robust.

Agreed. I hadn't thought a user would do that, but that was just my lack of imagination.

skimo
Previous: Paul MackerrasNext: Alex Riesen
Message 4 of 5 in “gitk: add Update menu item.”
  1. gitk: add Update menu item.Sven Verdoolaege, Nov 23, 2005
  2. gitk: add Update menu item.Sven Verdoolaege, Nov 29, 2005
  3. Paul MackerrasDec 1, 2005
  4. Sven VerdoolaegeDec 1, 2005
  5. Alex RiesenDec 8, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.