From 17b8c64a1d316e2a12adf632d9f6cb87fcc0cc75 Mon Sep 17 00:00:00 2001 From: Sebastian Morr Date: Thu, 22 Oct 2020 14:59:44 +0200 Subject: [PATCH] Hide .git/ in file browser for now --- file_browser.gd | 2 ++ shell.gd | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/file_browser.gd b/file_browser.gd index 6d0d618..dd3e1f2 100644 --- a/file_browser.gd +++ b/file_browser.gd @@ -19,6 +19,8 @@ func update(): files.sort_custom(self, "very_best_sort") for file_path in files: file_path = file_path.substr(2) + if file_path.substr(0, 5) == ".git/": + continue var child = $FileTree.create_item(root_item) child.set_text(0, file_path) #child.set_editable(0, true) diff --git a/shell.gd b/shell.gd index 66d1b4a..db9d7ba 100644 --- a/shell.gd +++ b/shell.gd @@ -15,7 +15,7 @@ func cd(dir): # Run a shell command given as a string. Run this if you're interested in the # output of the command. func run(command, crash_on_fail=true): - var debug = true + var debug = false if debug: print("$ %s" % command)