From 1e6dcb20b9db6cff0efeebadc89e1c2ec4d92141 Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Mon, 7 Jul 2008 10:49:30 -0400 Subject: [PATCH] Remove expensive calls to update-index --- yap/yap.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/yap/yap.py b/yap/yap.py index 1fdb4c8..30121e4 100644 --- a/yap/yap.py +++ b/yap/yap.py @@ -451,7 +451,6 @@ shown. The '-d' flag causes only staged changes to be shown. pager = self._get_pager_cmd() - os.system("git update-index -q --refresh") if '-u' in flags: os.system("git diff-files -p | %s" % pager) elif '-d' in flags: @@ -560,8 +559,7 @@ operation in spite of this. raise YapError("Pointing there will lose commits. Use -f to force") os.system("git read-tree HEAD") - os.system("git checkout-index -f -a") - os.system("git update-index --refresh") + os.system("git checkout-index -u -f -a") @short_help("alter history by dropping or amending commits") @long_help(""" -- 2.11.4.GIT