Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Note ability to use ibuffer-vc-generate-filter-groups-by-vc-root dire…

…ctly
  • Loading branch information...
commit 296bf3ce8d772107b57cadaeaba63cc1ccef1cff 1 parent 268c425
Steve Purcell authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 ibuffer-vc.el
5 ibuffer-vc.el
View
@@ -40,6 +40,10 @@
;; (ibuffer-vc-set-filter-groups-by-vc-root)
;; (ibuffer-do-sort-by-alphabetic)))
;;
+;; Alternatively, use `ibuffer-vc-generate-filter-groups-by-vc-root'
+;; to programmatically obtain a list of filter groups that you can
+;; combine with your own custom groups.
+;;
;; To include vc status info in the ibuffer list, add either
;; vc-status-mini or vc-status to `ibuffer-formats':
;;
@@ -114,6 +118,7 @@ file is not under version control"
(ibuffer-awhen (ibuffer-vc-root buf)
(equal qualifier it)))
+;;;###autoload
(defun ibuffer-vc-generate-filter-groups-by-vc-root ()
"Create a set of ibuffer filter groups based on the vc root dirs of buffers"
(let ((roots (ibuffer-remove-duplicates
Please sign in to comment.
Something went wrong with that request. Please try again.