File tree 1 file changed +9
-3
lines changed 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 27
27
" Trace namespace in FILE-NAMES."
28
28
(mapcar (lambda (file-name )
29
29
(with-current-buffer (find-file-noselect
30
- ( expand- file-name file-name) )
30
+ file-name)
31
31
(nrepl-send-sync-request (list " op" " sayid-trace-ns-in-file"
32
32
" file" (buffer-file-name ))
33
33
(cider-current-connection))))
34
34
file-names)
35
35
(sayid-show-traced))
36
36
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
+
37
44
;;;### autoload
38
45
(defun sayid-magit-trace-changed-ns ()
39
46
" Trace the changed namespaces in a git commit."
40
47
(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)))
43
49
44
50
(provide 'sayid-magit )
45
51
You can’t perform that action at this time.
0 commit comments