branch: elpa/magit commit d3f275373322e8c97d9cf9adcbae76b022e5a83e Author: Richard Sent <rich...@freakingpenguin.com> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-diff-visit-file: Remove inaccurate sentence from documentation Co-authored-by: Jonas Bernoulli <jo...@bernoul.li> --- docs/magit.org | 9 +++------ docs/magit.texi | 9 +++------ lisp/magit-diff.el | 6 +++--- 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/docs/magit.org b/docs/magit.org index 81dbf4f3e8..669e073185 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 2a5a33de04..51c69120fe 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 f3703e1d2f..26cb79fc24 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