[PATCH] gitignore: Add .DS_Store for Mac OS X

Baruch Siach baruch@tkos.co.il
Tue Sep 30 07:40:00 GMT 2014


Hi Bryan,

On Mon, Sep 29, 2014 at 10:18:15PM -0700, Bryan Hundven wrote:

[snip]

> diff --git a/.gitignore b/.gitignore
> index 90b516d..c1af0a1 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -21,3 +21,6 @@ build.log
> .build/
> # .. and the legacy location
> targets/
> +
> +# Mac OS X .DS_Store file
> +.DS_Store
> 
> 
> Instead of adding this file to each and every software project .gitignore,
> why
> not why not add it to your local $HOME/.config/git/ignore file? See
> core.excludesfile in the git-config(1) man page.
> 
> 
> Is it really that horrible to have two extra lines in a .gitignore file to
> make sure we don't let users accidentally include this file in a commit?
> (functionally, it's really one line, but the comment kind of helps)

I'll let the maintainer decide on that. But I think it would be much easier 
for you to set $HOME/.config/git/ignore once, and solve the problem for all 
your git trees.

Just my 2¢.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list