Skip to contentSkip to conversation

btrfs-progs: gitignore: Ignore hidden files

PATCH In review Qu Wenruo 3 participants 4 messages Feb 28, 2019 – Mar 5, 2019 Btrfs file system

lore
Share & tools
lore

Qu Wenruo

author
#0 lore raw

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

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

Instead of adding gitignore entry for each editor/IDE, just ignore all dotfiles.

---
changelog
v2:
- Change "hidden files" to "dotfiles" in the commit message.
- No longer mention the kernel gitignore behavior in the commit message.

---
 .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 5 lines · Qu Wenruo

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

Instead of adding gitignore entry for each editor/IDE, just ignore all dotfiles.

Fortunatelly it still works for tracked dotfiles like .travis.yml and .gitignore itself.

#2 lore raw
Quoted 9 lines · David Sterba
Quoted 5 lines · Qu Wenruo

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

Instead of adding gitignore entry for each editor/IDE, just ignore all dotfiles.

Fortunatelly it still works for tracked dotfiles like .travis.yml and .gitignore itself.

Didn't notice .travis.yml, but indeed i should notice .gitignore.

Any idea what's the correct way to handle them?
Just current .* or adding each possible dotfile?

Thanks,
Qu

#3 lore raw
Quoted 10 lines · Qu Wenruo
Quoted 7 lines · David Sterba
Quoted 5 lines · Qu Wenruo

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

Instead of adding gitignore entry for each editor/IDE, just ignore all dotfiles.

Quoted 7 lines
Quoted 2 lines

Fortunatelly it still works for tracked dotfiles like .travis.yml and .gitignore itself.

Didn't notice .travis.yml, but indeed i should notice .gitignore.

Any idea what's the correct way to handle them?
Just current .* or adding each possible dotfile?

I've left .* and tested that changes to .gitignore or .travis.yml are recognized (diff, commit).