Skip to content

Commit

Permalink
feat: moved to global git ignore
Browse files Browse the repository at this point in the history
Decided to use a global git ignore so I could reuse on other tools (namely rg), for that to work rg looks for the
core.excludesFiles on the following files: `$HOME/.gitconfig` and `$XDG_CONFIG_HOME/git/config`.

Refernces:
BurntSushi/ripgrep#2396
BurntSushi/ripgrep#2392
  • Loading branch information
augustomelo committed May 23, 2023
1 parent 3c7701f commit f215e82
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.DS_Store
**/themes
.luarc.json
confipicker.lua
4 changes: 3 additions & 1 deletion git/gitconfig → git/config
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

[pull]
ff = only

[core]
editor = nvim
editor = nvim
excludesFile = ~/.config/git/ignore

[alias]
a = "!f() { \
Expand Down
51 changes: 51 additions & 0 deletions git/ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
*.log
.git/
log/

## https://github.com/github/gitignore/blob/main/Global/Vim.gitignore
# Swap
[._]*.s[a-v][a-z]
!*.svg # comment out if you don't need vector files
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
Session.vim
Sessionx.vim

# Temporary
.netrwhist
*~
# Auto-generated tag files
tags
# Persistent undo
[._]*.un~
# https://github.com/github/gitignore/blob/main/Global/macOS.gitignore
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

0 comments on commit f215e82

Please sign in to comment.