git.el: Refresh only the changed file marks when marking/unmarking all.
Signed-off-by: Alexandre Julliard <julliard@winehq.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
6df023884b
commit
2f6e86a86f
@ -842,7 +842,8 @@ Return the list of files that haven't been handled."
|
|||||||
"Mark all files."
|
"Mark all files."
|
||||||
(interactive)
|
(interactive)
|
||||||
(unless git-status (error "Not in git-status buffer."))
|
(unless git-status (error "Not in git-status buffer."))
|
||||||
(ewoc-map (lambda (info) (setf (git-fileinfo->marked info) t) t) git-status)
|
(ewoc-map (lambda (info) (unless (git-fileinfo->marked info)
|
||||||
|
(setf (git-fileinfo->marked info) t))) git-status)
|
||||||
; move back to goal column after invalidate
|
; move back to goal column after invalidate
|
||||||
(when goal-column (move-to-column goal-column)))
|
(when goal-column (move-to-column goal-column)))
|
||||||
|
|
||||||
@ -850,7 +851,9 @@ Return the list of files that haven't been handled."
|
|||||||
"Unmark all files."
|
"Unmark all files."
|
||||||
(interactive)
|
(interactive)
|
||||||
(unless git-status (error "Not in git-status buffer."))
|
(unless git-status (error "Not in git-status buffer."))
|
||||||
(ewoc-map (lambda (info) (setf (git-fileinfo->marked info) nil) t) git-status)
|
(ewoc-map (lambda (info) (when (git-fileinfo->marked info)
|
||||||
|
(setf (git-fileinfo->marked info) nil)
|
||||||
|
t)) git-status)
|
||||||
; move back to goal column after invalidate
|
; move back to goal column after invalidate
|
||||||
(when goal-column (move-to-column goal-column)))
|
(when goal-column (move-to-column goal-column)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user