aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Hållberg <gustav@virtutech.com>2010-01-25 11:17:58 +0100
committerGustav Hållberg <gustav@virtutech.com>2010-01-25 11:18:37 +0100
commit0b71b4dc1acf1770c3bd7796487232feb936c99e (patch)
tree73da2401fac6832026594f90628f33eee797a3db
parente44674e3d8505c6b3983dacb159d9dcee738d6d0 (diff)
downloadstgit-0b71b4dc1acf1770c3bd7796487232feb936c99e.tar.gz
stgit.el: Run "git update-index --refresh" before redrawing work tree status
This prevents unchanged files from showing up as "Modified" in the work tree. Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
-rw-r--r--contrib/stgit.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/stgit.el b/contrib/stgit.el
index 3b5538e..4af6243 100644
--- a/contrib/stgit.el
+++ b/contrib/stgit.el
@@ -742,6 +742,8 @@ at point."
(let ((standard-output (current-buffer)))
(apply 'stgit-run-git
(cond ((eq patchsym :work)
+ (let (standard-output)
+ (stgit-run-git "update-index" "--refresh"))
`("diff-files" "-0" ,@args))
((eq patchsym :index)
`("diff-index" ,@args "--cached" "HEAD"))