Add file completion for git apply, am to pcomplete

* lisp/pcmpl-git.el (pcomplete/git): Add an "apply" and "am" clause to
complete all files.  (Bug#76356)
This commit is contained in:
Antero Mejr 2025-01-28 13:39:10 -05:00 committed by Stefan Kangas
parent 515542b653
commit 9cedb434ee

View file

@ -114,7 +114,10 @@ Files listed by `git ls-files ARGS' satisfy the predicate."
;; Complete remotes and their revisions
((or "fetch" "pull" "push")
(pcomplete-here (process-lines vc-git-program "remote"))
(pcomplete-here (pcmpl-git--remote-refs (pcomplete-arg 1)))))))))
(pcomplete-here (pcmpl-git--remote-refs (pcomplete-arg 1))))
;; Complete all files
((or "apply" "am")
(pcomplete-here (pcomplete-entries))))))))
(provide 'pcmpl-git)
;;; pcmpl-git.el ends here