From a3aab9b7ca3e8ecfa8093a5801ba0bc611699c86 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sat, 19 Aug 2017 19:20:50 +0200 Subject: prettyprompt: add repo status display --- pkg/prompt/pwd.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'pkg/prompt/pwd.go') diff --git a/pkg/prompt/pwd.go b/pkg/prompt/pwd.go index 1623a5f..969a8ce 100644 --- a/pkg/prompt/pwd.go +++ b/pkg/prompt/pwd.go @@ -116,18 +116,6 @@ func findNearestAccessiblePath(path string) string { return findNearestAccessiblePath(filepath.Dir(path)) } -//Returns empty string if `path` is not inside a Git repo. -func findRepoRootPath(path string) string { - _, err := os.Stat(filepath.Join(path, ".git")) - if err == nil { - return path - } - if path == "/" { - return "" - } - return findRepoRootPath(filepath.Dir(path)) -} - func getDirectoryField(dir Directory) string { if dir.DisplayPath == "" { return "" -- cgit v1.3.1