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

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

From
Paul Mackerras <paulus@samba.org>
Date
Dec 1, 2005, 11:51 UTC
Message-ID
<17294.58317.317337.145932@cargo.ozlabs.ibm.com>
In-Reply-To
<20051129211551.GF8383MdfPADPa@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 put this in although I'm not completely happy with it (though it is a good 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.

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.

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.

Paul.
Previous: Sven VerdoolaegeNext: Sven Verdoolaege
Message 3 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.