diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2010-08-13 14:20:11 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2010-08-13 14:20:11 +0200 |
commit | 54213d336782b55c73eac2eae78f27ea87bb2656 (patch) | |
tree | 1787d80b18a60f30a12881f027a33592a18f9c6c | |
parent | 71b48be99cecc1fb3fda98d245ab74966bdd6ea6 (diff) |
[Funcs] get git status while into a .repo folder
-rw-r--r-- | 01_Functions.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh index 5d4f16b..f6c99bf 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -191,6 +191,12 @@ get_git_status () then return fi + if [ -f ".repo/manifests.git/config" ] + then + echo "$git_colors[up_to_date]"; + return + fi + if [ "$(git-rev-parse --is-inside-git-dir)" = "true" -o "$(git-config --get core.bare)" = "true" ] ; then echo "$git_colors[managment_folder]" return |