summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/vcsh/config3
-rwxr-xr-x.config/vcsh/hooks-enabled/post-upgrade3
-rw-r--r--.gitignore.d/vcsh17
3 files changed, 23 insertions, 0 deletions
diff --git a/.config/vcsh/config b/.config/vcsh/config
new file mode 100644
index 0000000..6cef3c6
--- /dev/null
+++ b/.config/vcsh/config
@@ -0,0 +1,3 @@
+# Supported since <https://github.com/RichiH/vcsh/issues/103>.
+# Required since <https://github.com/RichiH/vcsh/issues/111>.
+VCSH_GITATTRIBUTES=exact
diff --git a/.config/vcsh/hooks-enabled/post-upgrade b/.config/vcsh/hooks-enabled/post-upgrade
new file mode 100755
index 0000000..147e4f4
--- /dev/null
+++ b/.config/vcsh/hooks-enabled/post-upgrade
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+git config include.path ".gitconfig.d/${VCSH_REPO_NAME}"
diff --git a/.gitignore.d/vcsh b/.gitignore.d/vcsh
new file mode 100644
index 0000000..35d1240
--- /dev/null
+++ b/.gitignore.d/vcsh
@@ -0,0 +1,17 @@
+# Exclude all files
+*
+
+# Include relevant files
+!/.config/
+!/.config/vcsh/
+!/.config/vcsh/config
+!/.config/vcsh/hooks-enabled/
+!/.config/vcsh/hooks-enabled/post-upgrade
+!/.gitignore.d/
+!/.gitignore.d/vcsh
+
+# Exclude swap and backup files
+*.s[a-w]?
+*.vim
+*~
+*.orig