Skip to contentSkip to conversation

Add a .gitignore file

PATCH New angus salkeld 4 participants 5 messages May 4, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add a .gitignore file

---
 .gitignore |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
.gitignore new file +16 -0
new file mode 100644
index 0000000..191e148
@@ -0,0 +1,16 @@
+build_*
+project_*
+toolchain_*
+binaries/*
+.auto.deps
+.config.cmd
+.config.old
+package/config/buildroot-config/
+package/config/.depend
+package/config/conf
+package/config/mconf
+package/config/*.o
+package/config/lex.zconf.c
+package/config/lxdialog/*.o
+package/config/zconf.hash.c
+package/config/zconf.tab.c
Signature · 13 lines
1.5.6

NOTICE: This message contains privileged and confidential
information intended only for the use of the addressee
named above. If you are not the intended recipient of
this message you are hereby notified that you must not
disseminate, copy or take any action in reliance on it.
If you have received this message in error please
notify Allied Telesis Labs Ltd immediately.
Any views expressed in this message are those of the
individual sender, except where the sender has the
authority to issue and specifically states them to
be the views of Allied Telesis Labs.
#1 lore raw

PATCH 1/1 Add a .gitignore file

Quoted 18 lines · angus salkeld
---
 .gitignore |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
.gitignore new file +6 -0
new file mode 100644
index 0000000..191e148
@@ -0,0 +1,16 @@
+build_*
+project_*
+toolchain_*
+binaries/*
+.auto.deps
+.config.cmd

.gitignore line 16

Quoted 10 lines
.gitignore new file +10 -0
+.config.old
+package/config/buildroot-config/
+package/config/.depend
+package/config/conf
+package/config/mconf
+package/config/*.o
+package/config/lex.zconf.c
+package/config/lxdialog/*.o
+package/config/zconf.hash.c
+package/config/zconf.tab.c

Hello Angus,
I think it is better to add .gitignore file in each subdirectory. So if a subdirectory comes to be changed, you don't have to modify the .gitignore file in the root directory, and this avoids having a long list of ignored files in .gitignore.
Other wise, yes, .gitignore files is a good idea.

Cheers,

#2 lore raw

PATCH 1/1 Add a .gitignore file

In reply to angus salkeld
Quoted 7 lines
.gitignore new file +0 -0
new file mode 100644
index 0000000..191e148

.gitignore line 7

Quoted 7 lines
.gitignore new file +7 -0
@@ -0,0 +1,16 @@
+build_*
+project_*
+toolchain_*
+binaries/*
+.auto.deps
+.config.cmd
+.config.old

Add leading slashes to match only in top level dir:

/build_*
/project_*
/toolchain_*
/binaries
/.auto.deps
/.config.cmd
/.config.old

.gitignore line 14

Quoted 3 lines
.gitignore new file +3 -0
+package/config/.depend
+package/config/*.o
+package/config/lxdialog/*.o

Maybe two global patterns:

*.o
*.depend

#3 lore raw

PATCH 1/1 Add a .gitignore file

Hi

Thanks for the feedback.
Here is a patch with the suggested changes.

Regards
-Angus Salkeld

---
 .gitignore                |    9 +++++++++
 package/config/.gitignore |    6 ++++++
 2 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
 create mode 100644 package/config/.gitignore
.gitignore new file +9 -0
new file mode 100644
index 0000000..f901994
@@ -0,0 +1,9 @@
+/build_*
+/project_*
+/toolchain_*
+/binaries/*
+/.auto.deps
+/.config.cmd
+/.config.old
+*.depend
+*.o
package/config/.gitignore new file +6 -0
new file mode 100644
index 0000000..9067e68
@@ -0,0 +1,6 @@
+/buildroot-config
+/conf
+/mconf
+/lex.zconf.c
+/zconf.hash.c
+/zconf.tab.c
Signature · 1 line
1.5.6
#4 lore raw

PATCH 1/1 Add a .gitignore file

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"angus" == angus salkeld <[email protected]> writes:

angus> Hi
angus> Thanks for the feedback.
angus> Here is a patch with the suggested changes.

Thanks, committed.

Signature · 1 line
Bye, Peter Korsgaard