diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2017-08-19 19:20:50 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2017-08-19 19:20:51 +0200 |
| commit | a3aab9b7ca3e8ecfa8093a5801ba0bc611699c86 (patch) | |
| tree | 81d59e2559c028d79d394d7362aea17f05ef5055 /pkg/prompt/pwd.go | |
| parent | 5d3e00dcb39a2d87919ea40bf144b4579c86c365 (diff) | |
| download | gofu-a3aab9b7ca3e8ecfa8093a5801ba0bc611699c86.tar.gz | |
prettyprompt: add repo status display
Diffstat (limited to 'pkg/prompt/pwd.go')
| -rw-r--r-- | pkg/prompt/pwd.go | 12 |
1 files changed, 0 insertions, 12 deletions
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 "" |
