Skip to contentSkip to conversation

gitignore: lift some sane defaults from others

PATCH In review [email protected] 3 participants 5 messages Jun 3, 2024 – Jun 5, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitignore: lift some sane defaults from others

From: Randolph Sapp <[email protected]>

Lift the common parts of the top level gitignore from oe-core and meta-openembedded. This masks out temporary python files, intermediate artifacts, and patches at the root of the project.

---
 .gitignore | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 .gitignore
.gitignore new file +7 -0
new file mode 100644
index 00000000..c01df45e
@@ -0,0 +1,7 @@
+*.pyc
+*.pyo
+/*.patch
+*.swp
+*.orig
+*.rej
+*~
Signature · 1 line
2.45.1
#1 lore raw
Quoted 5 lines · On Mon, Jun 03, 2024 at 02:55:15PM -0500, [email protected] wrote:

From: Randolph Sapp <[email protected]>

Lift the common parts of the top level gitignore from oe-core and meta-openembedded. This masks out temporary python files, intermediate artifacts, and patches at the root of the project.

FWIW, this is a matter of a personal preference, e.g. I don't like when git ignores, essentially hiding patches in the top directory. I do prefer them to be visible with "git status". But I'll leave it to Ryan.

Quoted 21 lines
---
 .gitignore | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 .gitignore
.gitignore new file +7 -0
new file mode 100644
index 00000000..c01df45e
@@ -0,0 +1,7 @@
+*.pyc
+*.pyo
+/*.patch
+*.swp
+*.orig
+*.rej
+*~
Signature · 1 line
2.45.1
#2 lore raw
Quoted 10 lines · Denys Dmytriyenko
Quoted 5 lines · On Mon, Jun 03, 2024 at 02:55:15PM -0500, [email protected] wrote:

From: Randolph Sapp <[email protected]>

Lift the common parts of the top level gitignore from oe-core and meta-openembedded. This masks out temporary python files, intermediate artifacts, and patches at the root of the project.

FWIW, this is a matter of a personal preference, e.g. I don't like when git ignores, essentially hiding patches in the top directory. I do prefer them to be visible with "git status". But I'll leave it to Ryan.

Yeah. I was testing it, but I was also thinking the same thing and trying to decide if I wanted to take them. Maybe a reduced set might good. Like leave the patches, but hide the temp files and what not? What are your thoughts on that? Just remove the *.patch from the list below?

Quoted 21 lines
Quoted 21 lines
---
  .gitignore | 7 +++++++
  1 file changed, 7 insertions(+)

create mode 100644 .gitignore

.gitignore new file +7 -0
new file mode 100644
index 00000000..c01df45e
@@ -0,0 +1,7 @@
+*.pyc
+*.pyo
+/*.patch
+*.swp
+*.orig
+*.rej
+*~
Signature · 1 line
2.45.1
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#3 lore raw
Quoted 14 lines · Ryan Eatmon
Quoted 10 lines · Denys Dmytriyenko
Quoted 5 lines · On Mon, Jun 03, 2024 at 02:55:15PM -0500, [email protected] wrote:

From: Randolph Sapp <[email protected]>

Lift the common parts of the top level gitignore from oe-core and meta-openembedded. This masks out temporary python files, intermediate artifacts, and patches at the root of the project.

FWIW, this is a matter of a personal preference, e.g. I don't like when git ignores, essentially hiding patches in the top directory. I do prefer them to be visible with "git status". But I'll leave it to Ryan.

Quoted 5 lines

Yeah. I was testing it, but I was also thinking the same thing and trying to decide if I wanted to take them. Maybe a reduced set might good. Like leave the patches, but hide the temp files and what not? What are your thoughts on that? Just remove the *.patch from the list below?

Up to you guys. I just noticed the different behavior in this layer and wanted to get us more in sync with core.

Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
---
  .gitignore | 7 +++++++
  1 file changed, 7 insertions(+)

create mode 100644 .gitignore

.gitignore new file +7 -0
new file mode 100644
index 00000000..c01df45e
@@ -0,0 +1,7 @@
+*.pyc
+*.pyo
+/*.patch
+*.swp
+*.orig
+*.rej
+*~
Signature · 1 line
2.45.1
#4 lore raw
Quoted 15 lines · Randolph Sapp
Quoted 14 lines · Ryan Eatmon
Quoted 10 lines · Denys Dmytriyenko
Quoted 5 lines · On Mon, Jun 03, 2024 at 02:55:15PM -0500, [email protected] wrote:

From: Randolph Sapp <[email protected]>

Lift the common parts of the top level gitignore from oe-core and meta-openembedded. This masks out temporary python files, intermediate artifacts, and patches at the root of the project.

FWIW, this is a matter of a personal preference, e.g. I don't like when git ignores, essentially hiding patches in the top directory. I do prefer them to be visible with "git status". But I'll leave it to Ryan.

Quoted 8 lines
Quoted 5 lines

Yeah. I was testing it, but I was also thinking the same thing and trying to decide if I wanted to take them. Maybe a reduced set might good. Like leave the patches, but hide the temp files and what not? What are your thoughts on that? Just remove the *.patch from the list below?

Up to you guys. I just noticed the different behavior in this layer and wanted to get us more in sync with core.

I say remove the patches and submit a v2.

Quoted 22 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
---
   .gitignore | 7 +++++++
   1 file changed, 7 insertions(+)

create mode 100644 .gitignore

.gitignore new file +7 -0
new file mode 100644
index 00000000..c01df45e
@@ -0,0 +1,7 @@
+*.pyc
+*.pyo
+/*.patch
+*.swp
+*.orig
+*.rej
+*~
Signature · 1 line
2.45.1
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS