update packages
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
;;; Transient
|
||||
|
||||
;;;###autoload (autoload 'magit-gitignore "magit-gitignore" nil t)
|
||||
;;;###autoload(autoload 'magit-gitignore "magit-gitignore" nil t)
|
||||
(transient-define-prefix magit-gitignore ()
|
||||
"Instruct Git to ignore a file or pattern."
|
||||
:man-page "gitignore"
|
||||
@@ -118,9 +118,9 @@ Rules that are defined in that file affect all local repositories."
|
||||
(mapcan
|
||||
(lambda (file)
|
||||
(cons (concat "/" file)
|
||||
(and-let* ((ext (file-name-extension file)))
|
||||
(list (concat "/" (file-name-directory file) "*." ext)
|
||||
(concat "*." ext)))))
|
||||
(and$ (file-name-extension file)
|
||||
(list (concat "/" (file-name-directory file) "*." $)
|
||||
(concat "*." $)))))
|
||||
(sort (nconc
|
||||
(magit-untracked-files nil base)
|
||||
;; The untracked section of the status buffer lists
|
||||
@@ -138,7 +138,7 @@ Rules that are defined in that file affect all local repositories."
|
||||
(unless (member default choices)
|
||||
(setq default nil))))
|
||||
(magit-completing-read "File or pattern to ignore"
|
||||
choices nil nil nil nil default)))
|
||||
choices nil 'any nil nil default)))
|
||||
|
||||
;;; Skip Worktree Commands
|
||||
|
||||
@@ -192,4 +192,15 @@ Rules that are defined in that file affect all local repositories."
|
||||
|
||||
;;; _
|
||||
(provide 'magit-gitignore)
|
||||
;; Local Variables:
|
||||
;; read-symbol-shorthands: (
|
||||
;; ("and$" . "cond-let--and$")
|
||||
;; ("and>" . "cond-let--and>")
|
||||
;; ("and-let" . "cond-let--and-let")
|
||||
;; ("if-let" . "cond-let--if-let")
|
||||
;; ("when-let" . "cond-let--when-let")
|
||||
;; ("while-let" . "cond-let--while-let")
|
||||
;; ("match-string" . "match-string")
|
||||
;; ("match-str" . "match-string-no-properties"))
|
||||
;; End:
|
||||
;;; magit-gitignore.el ends here
|
||||
|
||||
Reference in New Issue
Block a user