[clfswm-devel] git: exclude patter for clfswm

Philippe Brochard pbrochard at common-lisp.net
Tue Mar 18 21:11:21 UTC 2008


Xavier Maillard writes:

> Hi,
>
Hi,

> since I hate when git status displays all untracked files, I have
> set up a small list of exclude patterns.
>
> Normally, this command:
>
> git-ls-files --others
>
> should display all untracked files including fas,lib and all ~
> files (there could be even more items). The default for this
> command is to display all files unknown to git. As I am not
> really interested to see my backup files or compiled files in the
> untracked list, just throw them.
>
> My exclude list is as follow:
>
> # git-ls-files --others --exclude-from=.git/info/exclude
> # Lines that start with '#' are comments.
> # For a project mostly in C, the following would be a good set of
> # exclude patterns (uncomment them if you want to use them):
> *.fas
> *.lib
> *.orig
> *.patch
> *~
>
> Just save this to your <path to clfswm git
> repo>/.git/info/exclude and running
>
> git-ls-files --others --exclude-from=.git/info/exclude
>
> should not display all the files matching these patterns.
>
> For the curious, to list all files tracked by git, just run
>
> git-ls-files
>
> For more informations (woman "git-ls-files")
>
Thanks, I've been annoyed by those files too. I've committed a
.gitignore file which remove unwanted files from git status.

Philippe

-- 
Philippe Brochard    <pbrochard at common-lisp.net>
                      http://hocwp.free.fr




More information about the clfswm-devel mailing list