Discussion:
[PATCH] gitignore: Add .DS_Store for Mac OS X
Bryan Hundven
2014-09-29 22:46:01 UTC
Permalink
From: Bryan Hundven <***@Bryans-MacBook-Pro.local>

Signed-off-by: Bryan Hundven <***@gmail.com>
---
.gitignore | 3 +++
1 file changed, 3 insertions(+)

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
--
2.1.1


--
For unsubscribe information see http://sourceware.org/lists.html#faq
Baruch Siach
2014-09-30 04:47:35 UTC
Permalink
Hi Bryan,
This can't be right.
Post by Bryan Hundven
---
.gitignore | 3 +++
1 file changed, 3 insertions(+)
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.

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

--
For unsubscribe information see http://sourceware.org/lists.html#faq
Baruch Siach
2014-09-30 07:40:20 UTC
Permalink
Hi Bryan,

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

[snip]
Post by Bryan Hundven
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------------{=
- ***@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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