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>
Alexandre Julliard committed
Jul 31, 2007 at 23:03 UTC
61988f1127587f8597b8b41da78a65717851e1fa
1 file changed
+1
-1
contrib/emacs/git.el
+1
-1
@@ -530,7 +530,7 @@ and returns the process output as a string."
530
(setf (git-fileinfo->needs-refresh info) t)
531
(when node ;preserve the marked flag
532
(setf (git-fileinfo->marked info) (git-fileinfo->marked (ewoc-data node))))
533
- (if node (ewoc-set-data node info) (ewoc-enter-last status info))))
533
+ (if node (setf (ewoc-data node) info) (ewoc-enter-last status info))))
534
535
(defun git-run-diff-index (status files)
536
"Run git-diff-index on FILES and parse the results into STATUS.