Skip to content

Commit

Permalink
git.el: Avoid using ewoc-set-data for compatibility with Emacs 21.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexandre Julliard authored and Junio C Hamano committed Aug 1, 2007
1 parent be52a41 commit 61988f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/emacs/git.el
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ and returns the process output as a string."
(setf (git-fileinfo->needs-refresh info) t)
(when node ;preserve the marked flag
(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)
"Run git-diff-index on FILES and parse the results into STATUS.
Expand Down

0 comments on commit 61988f1

Please sign in to comment.