Skip to content

Runaway process and commit selection fixes

Alexander Gavrilov git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6gitk: Kill back-end processes on window close.gitk+25 -100 replies
2/6gitk: Register diff-files & diff-index in commfd, to ensure kill.gitk+23 -160 replies
3/6gitk: On Windows use a Cygwin-specific flag for kill.gitk+6 -10 replies
4/6gitk: Fixed broken exception handling in diff.gitk+2 -10 replies
5/6gitk: Fixed automatic row selection during load.gitk+24 -173 replies
6/6gitk: Fallback to selecting the head commit upon load.gitk+18 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH (GITK) 0/6] Runaway process and commit selection fixes

This series includes three patches that I sent 8 days ago, because I haven't received any reply so far.

These patches address the following problems:

1) Runaway processes (resend)

As in the 'git gui blame' case, gitk back-end processes can sometimes run for a while without producing any output, e.g. diff-files on a slow filesystem.

These patches make gitk explicitly kill its back-end processes.

2) Gitk stopping showing any diffs under random conditions.

3) Broken commit selection on view reload: gitk tried to preserve the selected commit, but usually failed because of code rot.

I added selection preservation on Reload and Edit View. Update still should reset the selection to HEAD if anything changed.

Also, if the previously selected commit was not found in the new view, gitk should fall back to selecting HEAD.

Alexander Gavrilov (6):
gitk: Kill back-end processes on window close.
gitk: Register diff-files & diff-index in commfd, to ensure kill.
gitk: On Windows use a Cygwin-specific flag for kill.

gitk: Fixed broken exception handling in diff.
gitk: Fixed automatic row selection during load.
gitk: Fallback to selecting the head commit upon load.

 gitk |  148 +++++++++++++++++++++++++++++++++++++++++++-----------------------
 1 files changed, 97 insertions(+), 51 deletions(-)