]> git.phdru.name Git - dotfiles.git/commitdiff
.bash_prompt: do not call git update-index
authorOleg Broytman <phd@phdru.name>
Wed, 24 Feb 2016 10:27:16 +0000 (13:27 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 24 Feb 2016 10:27:16 +0000 (13:27 +0300)
Avoid touching .git and triggering backup.

.bash_prompt

index 5b5c80f9c34d94b7bddf1662635068c4e6aff744..f7ae3bbd991b41a40f4d9fc712d7dc0ca68d5808 100644 (file)
@@ -23,7 +23,7 @@ prompt_git() {
         if [ "$(git rev-parse --is-inside-git-dir 2> /dev/null)" == "false" ]; then
 
             # ensure index is up to date
-            git update-index --really-refresh  -q &>/dev/null
+            #git update-index --really-refresh  -q &>/dev/null
 
             # check for uncommitted changes in the index
             if ! $(git diff --quiet --ignore-submodules --cached); then