[PATCH v1 01/11] git-gui: allow specifying path '.' to the browser
- From
Mark Levedahl <mlevedahl@gmail.com>
- Date
- May 14, 2026, 14:33 UTC
- Message-ID
- <20260514143322.865587-2-mlevedahl@gmail.com>
- In-Reply-To
- <20260514143322.865587-1-mlevedahl@gmail.com>
Invoking "git-gui browser rev ." should show the file browser for the commitish rev, starting at the root directory. This errors out in normalize_relpath because the '.' is removed, yielding an empty list as argument to [file join ...]. Fix this.
Signed-off-by: Mark Levedahl <mlevedahl@gmail.com> --- git-gui.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/git-gui.sh b/git-gui.sh index 23fe76e..6048f92 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -2965,7 +2965,11 @@ proc normalize_relpath {path} { } lappend elements $item } - return [eval file join $elements] + if {$elements ne {}} { + return [eval file join $elements] + } else { + return {} + } } # -- Not a normal commit type invocation? Do that instead!
-- 2.54.0.99.14