git clone 'git://github.com/tarao/anything-git-files-el.git'
M-x package-install RET anything-git-files RET.
M-x el-get RET anything-git-files RET
(:name anything-git-files :type github :pkgname "tarao/anything-git-files-el" :depends anything)
Load anything-git-files.el in your ~/.emacs or ~/emacs.d/init.el:
M-x anything-git-files will list the files in a git
repository. Note that
M-x anything-git-files will fail when the
file of the current buffer is not in a git repository.
The anything sources to get files in a git repository are
The list of anything sources for submodules can be retrieved by
anything-git-files:submodule-sources. The function takes
one argument, which is a list of symbols of source type,
all. For example,
(anything-git-files:submodule-sources '(untracked all) returns
anything sources for untracked files and all files in the git
repository of the submodules.
The following example defines a custom anything function to
list files from several sources, including ones from
(defun tarao/anything-for-files ()
(let* ((git-source (and (anything-git-files:git-p)
(anything-other-buffer sources "*anything for files*")))