From 2dc6fa7a8b9248234c5f9ba64247eeeca7afa293 Mon Sep 17 00:00:00 2001 From: Neil Macneale IV Date: Mon, 27 Nov 2023 11:54:57 -0800 Subject: [PATCH] Refresh the root on '/' --- go/store/cmd/noms/splunk.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/store/cmd/noms/splunk.pl b/go/store/cmd/noms/splunk.pl index fce7847677..da9219b8a7 100755 --- a/go/store/cmd/noms/splunk.pl +++ b/go/store/cmd/noms/splunk.pl @@ -14,8 +14,7 @@ print "Welcome to the splunk shell for exploring dolt repository storage.\n"; my $root = `noms root $noms_dir`; -my $message = "Currently examining root.\nUse numeric labels to navigate the tree\n.. to back up a level, / to return to root.\nType quit or exit to exit.\n"; - +my $message = "Currently examining root.\nUse numeric labels to navigate the tree\n.. to back up a level, / to return reload root and return there.\nType quit or exit to exit.\n"; my $hash = $root; my @stack = ($root); @@ -45,6 +44,7 @@ while (true) { } if ($input eq "/") { + $root = `noms root $noms_dir`; $hash = $root; @stack = ($root); next;