Skip to contentSkip to conversation

git: show hidden tracked files

PATCH In review Thomas Monjalon 2 participants 3 messages Oct 17, 2024 – Nov 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git: show hidden tracked files

The hidden files are not considered because of the first rule in .gitignore file.

In order to see changes in the hidden tracked files, they are added in .gitignore as explicit include rules.

The derivatives of the first level files are also shown.
Example: .mailmap.rej

---
 .gitignore | 5 +++++
 1 file changed, 5 insertions(+)
.gitignore +5 -0
index 01a47a7606..903fe9bc64 100644
@@ -1,5 +1,10 @@
 # ignore hidden files
 .*
+# except the tracked ones and derivatives
+!.ci/
+!.github/
+!.gitignore*
+!.mailmap*
 
 # ignore generated documentation tables
 doc/guides/nics/overview_table.txt
Signature · 1 line
2.46.0
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · On Thu, 17 Oct 2024 17:15:03 +0200 Thomas Monjalon <[email protected]> wrote:

The hidden files are not considered because of the first rule in .gitignore file.

In order to see changes in the hidden tracked files, they are added in .gitignore as explicit include rules.

The derivatives of the first level files are also shown.
Example: .mailmap.rej

author Applied
#2 lore raw

17/10/2024 18:26, Stephen Hemminger:

Quoted 6 lines
Quoted 3 lines · On Thu, 17 Oct 2024 17:15:03 +0200 Thomas Monjalon <[email protected]> wrote:

The hidden files are not considered because of the first rule in .gitignore file.

Quoted 8 lines
Quoted 7 lines

In order to see changes in the hidden tracked files, they are added in .gitignore as explicit include rules.

The derivatives of the first level files are also shown.
Example: .mailmap.rej

Applied