New revision in http://www-verimag.imag.fr/~moy/bzr/dvc/moy/
------------------------------------------------------------
revno: 278
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Matthieu Moy <[EMAIL PROTECTED]>
branch nick: moy
timestamp: Mon 2007-10-15 17:05:05 +0200
message:
More items in the git-specific menu in xgit-diff-mode.
=== modified file 'lisp/xgit.el'
--- a/lisp/xgit.el 2007-10-15 14:15:04 +0000
+++ b/lisp/xgit.el 2007-10-15 15:05:05 +0000
@@ -294,6 +294,10 @@
`("GIT-Diff"
["Re-add modified files (add -u)" xgit-status-add-u t]
["Reset index (reset --mixed)" xgit-status-reset-mixed t]
+ "---"
+ ["View staged changes" xgit-diff-cached t]
+ ["View unstaged changes" xgit-diff-index t]
+ ["View all local changes" xgit-diff-head t]
))
(define-derived-mode xgit-diff-mode dvc-diff-mode "xgit-diff"
@@ -376,7 +380,8 @@
(defun xgit-diff-cached (&optional against-rev path dont-switch)
"Call \"git diff --cached\"."
(interactive (list nil nil current-prefix-arg))
- (xgit-diff-1 against-rev path dont-switch '(xgit (index))))
+ (let ((xgit-use-index 'always))
+ (xgit-diff-1 against-rev path dont-switch '(xgit (index)))))
;;;###autoload
(defun xgit-diff-index (&optional against-rev path dont-switch)
_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev