Skip to content

Commit

Permalink
magit-diff-wash-submodule: Delay inserting module commits
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Mar 16, 2024
1 parent 28bcd29 commit 0963697
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lisp/magit-diff.el
Original file line number Diff line number Diff line change
Expand Up @@ -2480,12 +2480,13 @@ section or a child thereof."
(and untracked "untracked")
" content"))
")")
(let ((default-directory
(file-name-as-directory
(expand-file-name module (magit-toplevel)))))
(magit-git-wash (apply-partially #'magit-log-wash-log 'module)
"log" "--oneline" "--left-right" range)
(delete-char -1)))))
(magit-insert-section-body
(let ((default-directory
(file-name-as-directory
(expand-file-name module (magit-toplevel)))))
(magit-git-wash (apply-partially #'magit-log-wash-log 'module)
"log" "--oneline" "--left-right" range)
(delete-char -1))))))
((and (looking-at "^Submodule \\([^ ]+\\) \\([^ ]+\\) (\\([^)]+\\))$")
(equal (match-string 1) module))
(magit-bind-match-strings (_module _range msg) nil
Expand Down

0 comments on commit 0963697

Please sign in to comment.