diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2026-02-03 08:55:12 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2026-02-03 08:55:12 +0100 |
| commit | a2165a0ba7ceae43fe67cd8023e866dec48382b9 (patch) | |
| tree | f3df5bbcb2073ba24bda9304e19ec25a2edd224f /lisp/magit-git.el | |
| parent | f3a596a138f4948cd4acadaf6caaf08c400c157c (diff) | |
magit-find-file-noselect: Pivot to file if index has multiple stages
Diffstat (limited to 'lisp/magit-git.el')
| -rw-r--r-- | lisp/magit-git.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index 414ca02..960a4f9 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -1329,6 +1329,12 @@ Sorted from longest to shortest CYGWIN name." (and (derived-mode-p 'magit-log-mode) (car magit-buffer-log-files)))) +;;; Blobs + +(defun magit--file-index-stages (file) + (mapcar (##split-string % " ") + (magit-git-lines "ls-files" "--stage" "--" file))) + ;;; Predicates (defun magit-no-commit-p () |
