commit 39ccd01728db4a4cd45f03fdb4e8bfe7a8c16b0a from: Stefan Sperling date: Thu Oct 12 13:31:23 2023 UTC make 'tog diff' release the work tree lock earlier Avoids 'work tree is already locked' errors from got commands while the 'tog diff' command remains running. commit - b610c677694f4118404d76458ed7f75c0feb4bab commit + 39ccd01728db4a4cd45f03fdb4e8bfe7a8c16b0a blob - 19547283cc38d79b4c4555e2bbe444ce6bab29d3 blob + ce92dab6cd549c3c215b39c9561173732788a67c --- tog/tog.c +++ tog/tog.c @@ -6185,6 +6185,10 @@ cmd_diff(int argc, char *argv[]) error = set_tog_base_commit(repo, worktree); if (error != NULL) goto done; + + /* Release work tree lock. */ + got_worktree_close(worktree); + worktree = NULL; } error = view_loop(view);