X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/e44674e3d8505c6b3983dacb159d9dcee738d6d0..ea696de91d6b8e99497cf9c67c3385d0709f242c:/contrib/stgit.el?ds=sidebyside diff --git a/contrib/stgit.el b/contrib/stgit.el index 3b5538e..234dcaa 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -43,7 +43,8 @@ instead of \"dir/old/file -> dir/new/file\"." (defcustom stgit-default-show-worktree t "Set to non-nil to by default show the working tree in a new stgit buffer. -Use \\\\[stgit-toggle-worktree] to toggle the this setting in an already-started StGit buffer." +Use \\\\[stgit-toggle-worktree] to toggle the +this setting in an already-started StGit buffer." :type 'boolean :group 'stgit :link '(variable-link stgit-show-worktree)) @@ -742,6 +743,8 @@ at point." (let ((standard-output (current-buffer))) (apply 'stgit-run-git (cond ((eq patchsym :work) + (let (standard-output) + (stgit-run-git "update-index" "--refresh")) `("diff-files" "-0" ,@args)) ((eq patchsym :index) `("diff-index" ,@args "--cached" "HEAD")) @@ -1348,7 +1351,9 @@ PATCHSYM." (when (and node file) (let* ((file-ewoc (stgit-patch->files-ewoc (ewoc-data node))) (file-node (ewoc-nth file-ewoc 0))) - (while (and file-node (not (equal (stgit-file->file (ewoc-data file-node)) file))) + (while (and file-node + (not (equal (stgit-file->file (ewoc-data file-node)) + file))) (setq file-node (ewoc-next file-ewoc file-node))) (when file-node (ewoc-goto-node file-ewoc file-node)