Browse files

OSX ignores

  • Loading branch information...
1 parent 901ad86 commit 18f1d8e9bfc597a11be38648b5696a51d34ebd53 @rapidan committed Dec 20, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 .gitignore
View
4 .gitignore
@@ -8,3 +8,7 @@
/*.ipr
/*.iws
/*.iml
+
+# OSX ignores
+.DS_Store
+

3 comments on commit 18f1d8e

@ge0ffrey

Don't all the OSX git clients do this by default?

@rapidan
Owner

Hi Geoffrey, not that I know of. I'm also not aware of any specific OSX git clients.

I just upgraded my git to 1.7.3.4 from 1.7.1 to double-check and I don't see this ignore as default. It doesn't strike me as a good idea for git to make this assumption anyway.

In the current file, my addition of the ignore for .DS_Store is redundant because of the existing ignore for all dotfiles, but I prefer to be explicit. Dotfiles can be used for different purposes and some should be checked in (Viz the 'unignore' for .gitignore). I usually list .classpath and .project explicitly in the ignore file.

Perhaps a better thing for me to do would be to add .DS_Store to my global .gitignore so I don't have to do this on all my git-managed projects. I'll look into this and remove this commit when I get a chance.

Congratulations on getting drools moved to github!

@ge0ffrey

It's not redundant as is, because the leading slash means something:
/.*
ignores /.DS_Store but not /src/.DS_Store (note that we don't want to do just .*)
But as you'll add them to the mac global ignore's, I won't add it to our ignores for the time being

Please sign in to comment.