diff options
| author | Mark Levedahl <mlevedahl@gmail.com> | 2026-05-31 19:02:21 -0400 |
|---|---|---|
| committer | Johannes Sixt <j6t@kdbg.org> | 2026-06-02 19:13:13 +0200 |
| commit | d0e9b4959bea9f4bfca2628eb24136b23c00e8fa (patch) | |
| tree | 7e79832478d759ecdd194bce894cf0a65b2b01bb /t/t4013/diff.diff_initial..side | |
| parent | 80b7207e68ffaf56077d9b7d00eb31490fb48cc5 (diff) | |
git-gui: simplify [is_bare] to report if a worktree is known
git-gui includes proc is_bare, used in several places to make decisions
on whether a worktree exists, but also in discovery to tell if a
worktree can be supported.
But, is_bare is out of date with regard to multiple worktrees, safe
repository guards, and possibly other relevant features known to git
rev-parse. Also, is_bare caches its result on the first call, so is not
useful if a later step in the discovery process finds a worktree.
So, simplify is_bare to report whether git-gui has a worktree or is
working only from a repository.
Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
