[clfswm-devel] git: exclude patter for clfswm

Xavier Maillard xma at gnu.org
Tue Mar 18 01:00:10 UTC 2008


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")

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org



More information about the clfswm-devel mailing list