~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e44674e
)
stgit.el: Run "git update-index --refresh" before redrawing work tree status
author
Gustav Hållberg
<gustav@virtutech.com>
Mon, 25 Jan 2010 10:17:58 +0000
(11:17 +0100)
committer
Gustav Hållberg
<gustav@virtutech.com>
Mon, 25 Jan 2010 10:18:37 +0000
(11:18 +0100)
This prevents unchanged files from showing up as "Modified" in the
work tree.
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
contrib/stgit.el
patch
|
blob
|
blame
|
history
diff --git
a/contrib/stgit.el
b/contrib/stgit.el
index
3b5538e
..
4af6243
100644
(file)
--- 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"))