Make 'd' diff against working tree, not HEAD.

* magit.el (magit-diff-head, magit-diff-working-tree): Renamed former
to latter.  Use single revision when calling magit-diff.
This commit is contained in:
Marius Vollmer 2008-08-17 02:35:05 +03:00
parent bf1c66ce5c
commit 72819bd451

View file

@ -306,7 +306,7 @@
(define-key map (kbd "=") 'magit-diff-with-mark)
(define-key map (kbd "l") 'magit-log-head)
(define-key map (kbd "L") 'magit-log)
(define-key map (kbd "d") 'magit-diff-head)
(define-key map (kbd "d") 'magit-diff-working-tree)
(define-key map (kbd "D") 'magit-diff)
(define-key map (kbd "x") 'magit-reset-head)
(define-key map (kbd "X") 'magit-reset-working-tree)
@ -924,10 +924,10 @@ pushed.
'magit-wash-diff
"git" "diff" args))))))
(defun magit-diff-head (rev)
(defun magit-diff-working-tree (rev)
(interactive (list (magit-read-rev "Diff with")))
(if rev
(magit-diff (cons "HEAD" rev))))
(magit-diff rev)))
(defun magit-diff-with-mark ()
(interactive)