From 36fa779cd03ddada6324c8b5b38145dc3b0a8b41 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 24 Feb 2016 13:27:16 +0300 Subject: [PATCH] .bash_prompt: do not call git update-index Avoid touching .git and triggering backup. --- .bash_prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_prompt b/.bash_prompt index 5b5c80f..f7ae3bb 100644 --- a/.bash_prompt +++ b/.bash_prompt @@ -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 -- 2.39.2