diff options
| -rw-r--r-- | docs/magit.org | 9 | ||||
| -rw-r--r-- | docs/magit.texi | 9 | ||||
| -rw-r--r-- | lisp/magit-diff.el | 6 |
3 files changed, 9 insertions, 15 deletions
diff --git a/docs/magit.org b/docs/magit.org index 81dbf4f..669e073 100644 --- a/docs/magit.org +++ b/docs/magit.org @@ -4065,12 +4065,9 @@ These commands can only be used when point is inside a diff. - Key: RET (magit-diff-visit-file) :: This command visits the appropriate version of the file that the - diff at point is about. - - This commands visits the worktree version of the appropriate file. - The location of point inside the diff determines which file is being - visited. The visited version depends on what changes the diff is - about. + diff at point is about. The location of point inside the diff + determines which file is being visited. The visited version depends + on what changes the diff is about. 1. If the diff shows uncommitted changes (i.e., staged or unstaged changes), then visit the file in the working tree (i.e., the diff --git a/docs/magit.texi b/docs/magit.texi index 2a5a33d..51c6912 100644 --- a/docs/magit.texi +++ b/docs/magit.texi @@ -4783,12 +4783,9 @@ These commands can only be used when point is inside a diff. @kindex RET @findex magit-diff-visit-file This command visits the appropriate version of the file that the -diff at point is about. - -This commands visits the worktree version of the appropriate file. -The location of point inside the diff determines which file is being -visited. The visited version depends on what changes the diff is -about. +diff at point is about. The location of point inside the diff +determines which file is being visited. The visited version depends +on what changes the diff is about. @enumerate @item diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el index f3703e1..26cb79f 100644 --- a/lisp/magit-diff.el +++ b/lisp/magit-diff.el @@ -1596,9 +1596,9 @@ Display the buffer in the selected window. With a prefix argument OTHER-WINDOW display the buffer in another window instead. -Visit the worktree version of the appropriate file. The location -of point inside the diff determines which file is being visited. -The visited version depends on what changes the diff is about. +The location of point inside the diff determines which file is +being visited. The visited version depends on what changes the +diff is about. 1. If the diff shows uncommitted changes (i.e., stage or unstaged changes), then visit the file in the working tree (i.e., the |
