Tree ==== .. cl:package:: cl-git .. cl:clos-class:: tree .. cl:method:: get-object (eq tree) common-lisp:t common-lisp:t Listing Contents ---------------- .. cl:generic:: tree-directory .. code-block:: common-lisp-repl GIT> (tree-directory (commit-tree (target (repository-head (open-repository (merge-pathnames #p"projects/ecl" (user-homedir-pathname))))))) (# # # # # # # # # # # #) Filtering ~~~~~~~~~ In the same way that :cl:symbol:`COMMON-LISP:DIRECTORY` can take wildcard pathnames to produce limited list of results. .. code-block:: common-lisp-repl GIT> (directory (merge-pathnames #p"projects/ecl/co*" (user-homedir-pathname))) (#P"/home/russell/projects/ecl/configure" #P"/home/russell/projects/ecl/contrib/") :cl:symbol:`TREE-DIRECTORY` can be used to limit the results from the directory tree. Using a wild card will filter the results that are returned. Extending on the example above we can just list a subset of the content with. .. code-block:: common-lisp-repl GIT> (tree-directory (get-tree (target (repository-head (open-repository (merge-pathnames #p"projects/ecl" (user-homedir-pathname)))))) #P"co*") (# #)