diff options
| author | Kyle Meyer <kyle@kyleam.com> | 2015-08-13 16:22:48 -0400 |
|---|---|---|
| committer | Kyle Meyer <kyle@kyleam.com> | 2015-08-13 16:22:48 -0400 |
| commit | 87f2dcf021037d234d8d51d400dfb038201c2cdf (patch) | |
| tree | 1d597006f9b5f2b0f9f2cf179a2c9cc0d75dd225 /lisp | |
| parent | 998c9b5ad27befe60459deece3f60f70994cf13a (diff) | |
update rev extraction from revision buffers
The result of '(car (last magit-refresh-args 2))' in a revision buffer
no longer corresponds to the revision as of 4a40aba
("magit-diff-arguments: always include the files in return value",
2015-07-30).
9a86041 ("magit-diff-visit-file: sanitize getting rev in rev buffer",
2015-07-30) fixed this in one function. Update the remaining places
that assume the old structure of magit-refresh-args.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/magit-git.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index 2225b30..703d774 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -577,14 +577,14 @@ string \"true\", otherwise return nil." (defun magit-commit-at-point () (or (magit-section-when commit) (and (derived-mode-p 'magit-revision-mode) - (car (last magit-refresh-args 2))))) + (car magit-refresh-args)))) (defun magit-branch-or-commit-at-point () (or (magit-section-case (branch (magit-section-value it)) (commit (magit-get-shortname (magit-section-value it)))) (and (derived-mode-p 'magit-revision-mode) - (car (last magit-refresh-args 2))))) + (car magit-refresh-args)))) (defun magit-tag-at-point () |
