File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2727 " Trace namespace in FILE-NAMES."
2828 (mapcar (lambda (file-name )
2929 (with-current-buffer (find-file-noselect
30- ( expand- file-name file-name) )
30+ file-name)
3131 (nrepl-send-sync-request (list " op" " sayid-trace-ns-in-file"
3232 " file" (buffer-file-name ))
3333 (cider-current-connection))))
3434 file-names)
3535 (sayid-show-traced))
3636
37+ (defun sayid-magit--changed-files ()
38+ " docstring"
39+ (mapcar
40+ (lambda (file )
41+ (expand-file-name file (locate-dominating-file (buffer-file-name ) " .git" )))
42+ (magit-changed-files (magit-read-starting-point " Sayid trace" nil " HEAD" ))))
43+
3744;;;### autoload
3845(defun sayid-magit-trace-changed-ns ()
3946 " Trace the changed namespaces in a git commit."
4047 (interactive )
41- (sayid--trace-ns-in-files
42- (magit-changed-files (magit-read-starting-point " Sayid trace" nil " HEAD" ))))
48+ (sayid--trace-ns-in-files (sayid-magit--changed-files)))
4349
4450(provide 'sayid-magit )
4551
You can’t perform that action at this time.
0 commit comments