summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorMatthew DeVore <matvore@gmail.com>2019-03-26 10:27:38 -0700
committerMatthew DeVore <matvore@gmail.com>2019-04-01 13:38:00 -0700
commit54bdeaab888fb9085e718ef6ac781daa5d629e04 (patch)
tree89ec1ef17c0531735d559a99059e5a5a7e2fa653 /.gitignore
parent7d92a52d9e58895e717009e8888ec5930ca37dfb (diff)
downloadjgit-54bdeaab888fb9085e718ef6ac781daa5d629e04.tar.gz
jgit-54bdeaab888fb9085e718ef6ac781daa5d629e04.zip
.gitignore: remove editor- and OS-specific files
Whenever Vim opens a file, it creates a .<filename>.swp file in the same directory as the file. Emacs adds *~ backup files. macOS creates .DS_Store files. Other editors and OS' surely do their own thing. Rather than add each one's own swap/backup file to this .gitignore, encourage users to add the corresponding items to their system-wide gitignore files. Change-Id: I5535f5d2f1ebe896eef108cfda087dcb4c50f031 Signed-off-by: Matthew DeVore <matvore@gmail.com>
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore7
1 files changed, 5 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 3679a3365b..553ecac486 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,9 @@
/.project
/target
-.DS_Store
infer-out
bazel-*
-*~
+
+# Do not add editor- and OS-specific files like *~ (Emacs) and .DS_Store
+# (macOS). Instead, add them to $XDG_CONFIG_HOME/git/ignore
+# (~/.config/git/ignore if $XDG_CONFIG_HOME is not set) or
+# $GIT_DIR/info/exclude. See "git help gitignore" for details.