Hide .git/ in file browser for now

This commit is contained in:
Sebastian Morr 2020-10-22 14:59:44 +02:00
parent 0e96bd2fc0
commit 17b8c64a1d
2 changed files with 3 additions and 1 deletions

View file

@ -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)

View file

@ -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)