git.el: Avoid using ewoc-set-data for compatibility with Emacs 21.
Signed-off-by: Alexandre Julliard <julliard@winehq.org> Acked-by: Karl Hasselström <kha@treskal.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
be52a41c4e
commit
61988f1127
@ -530,7 +530,7 @@ and returns the process output as a string."
|
|||||||
(setf (git-fileinfo->needs-refresh info) t)
|
(setf (git-fileinfo->needs-refresh info) t)
|
||||||
(when node ;preserve the marked flag
|
(when node ;preserve the marked flag
|
||||||
(setf (git-fileinfo->marked info) (git-fileinfo->marked (ewoc-data node))))
|
(setf (git-fileinfo->marked info) (git-fileinfo->marked (ewoc-data node))))
|
||||||
(if node (ewoc-set-data node info) (ewoc-enter-last status info))))
|
(if node (setf (ewoc-data node) info) (ewoc-enter-last status info))))
|
||||||
|
|
||||||
(defun git-run-diff-index (status files)
|
(defun git-run-diff-index (status files)
|
||||||
"Run git-diff-index on FILES and parse the results into STATUS.
|
"Run git-diff-index on FILES and parse the results into STATUS.
|
||||||
|
Loading…
Reference in New Issue
Block a user