Skip to contentSkip to conversation

btrfs-progs: gitignore: Ignore hidden files

PATCH Superseded Qu Wenruo 4 participants 5 messages Feb 27, 2019 Btrfs file system

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Qu Wenruo

author
#0 lore raw

PATCH 1/1 btrfs-progs: gitignore: Ignore hidden files

A lot of editor/IDE related config files are hidden files, like .vimrc or .clang_complete.

Instead of adding gitignore entry for each editor/IDE, just ignore all hidden files like what kernel does.

---
 .gitignore | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.gitignore +1 -1
index d9f022c48c7d..aadf9ae77d41 100644
@@ -64,7 +64,7 @@
 /cscope.files
 /cscope.in.out
 /cscope.po.out
-.clang_complete
+.*
 
 /Documentation/Makefile
 /Documentation/*.html
Signature · 1 line
2.21.0
#1 lore raw
Quoted 6 lines · Qu Wenruo

A lot of editor/IDE related config files are hidden files, like .vimrc or .clang_complete.

Instead of adding gitignore entry for each editor/IDE, just ignore all hidden files like what kernel does.

I think you mean:
files starting with ".", like ls does by default without the -a flag.

Mike

Quoted 22 lines
---
 .gitignore | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.gitignore +1 -2
index d9f022c48c7d..aadf9ae77d41 100644
@@ -64,7 +64,7 @@
 /cscope.files
 /cscope.in.out
 /cscope.po.out
-.clang_complete
+.*
 
 /Documentation/Makefile
 /Documentation/*.html
--

2.21.0

#2 lore raw
Quoted 9 lines · Mike Fleetwood
Quoted 6 lines · Qu Wenruo

A lot of editor/IDE related config files are hidden files, like .vimrc or .clang_complete.

Instead of adding gitignore entry for each editor/IDE, just ignore all hidden files like what kernel does.

I think you mean:
files starting with ".", like ls does by default without the -a flag.

When I punched the words "linux hidden file" into google, I got quite a lot of pages showing 'In the Linux operating system, a hidden file is any file that begins with a "."'

So I think the words "hidden files" should be more or less OK?

Thanks,
Qu

Quoted 25 lines

Mike

Quoted 22 lines
---
 .gitignore | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.gitignore +1 -2
index d9f022c48c7d..aadf9ae77d41 100644
@@ -64,7 +64,7 @@
 /cscope.files
 /cscope.in.out
 /cscope.po.out
-.clang_complete
+.*
 
 /Documentation/Makefile
 /Documentation/*.html
--

2.21.0

#3 lore raw
Quoted 8 lines · Qu Wenruo
Quoted 7 lines · Mike Fleetwood
Quoted 6 lines · Qu Wenruo

A lot of editor/IDE related config files are hidden files, like .vimrc or .clang_complete.

Instead of adding gitignore entry for each editor/IDE, just ignore all hidden files like what kernel does.

Quoted 8 lines
Quoted 2 lines

I think you mean:
files starting with ".", like ls does by default without the -a flag.

When I punched the words "linux hidden file" into google, I got quite a lot of pages showing 'In the Linux operating system, a hidden file is any file that begins with a "."'

So I think the words "hidden files" should be more or less OK?

I think the word "dotfiles" is ok.

Signature · 2 lines
  ciao - 
    Stefan
#4 lore raw
Quoted 10 lines · Stefan Traby
Quoted 8 lines · Qu Wenruo
Quoted 7 lines · Mike Fleetwood
Quoted 6 lines · Qu Wenruo

A lot of editor/IDE related config files are hidden files, like .vimrc or .clang_complete.

Instead of adding gitignore entry for each editor/IDE, just ignore all hidden files like what kernel does.

Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

I think you mean:
files starting with ".", like ls does by default without the -a flag.

When I punched the words "linux hidden file" into google, I got quite a lot of pages showing 'In the Linux operating system, a hidden file is any file that begins with a "."'

So I think the words "hidden files" should be more or less OK?

My main point was that you said "hidden files like what kernel does" which is not true.

Quoted 2 lines

I think the word "dotfiles" is ok.

Shortening to "just ignore all dotfiles" would be a good choice.