summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-03-11 00:22:41 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-03-11 00:22:41 (EST)
commitabe88a0ce657fecc8f3245f6e6610b3749704fd4 (patch)
treed5120b7f82d0a54aac40b4390eeac8a7c1c6f346
downloadvcsh-abe88a0ce657fecc8f3245f6e6610b3749704fd4.zip
vcsh-abe88a0ce657fecc8f3245f6e6610b3749704fd4.tar.gz
vcsh-abe88a0ce657fecc8f3245f6e6610b3749704fd4.tar.bz2
Initial commit
-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