]> git.madduck.net Git - etc/systemd.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add vcsh hooks master
authormartin f. krafft <madduck@madduck.net>
Thu, 17 Apr 2025 06:43:53 +0000 (08:43 +0200)
committermartin f. krafft <madduck@madduck.net>
Thu, 17 Apr 2025 06:44:59 +0000 (08:44 +0200)
.config/vcsh/hooks-available/systemd-user.update [new file with mode: 0755]
.config/vcsh/hooks-enabled/post-clone.systemd-user-update [new symlink]
.config/vcsh/hooks-enabled/post-enter.systemd-user-update [new symlink]
.config/vcsh/hooks-enabled/post-pull.systemd-user-update [new symlink]
.config/vcsh/hooks-enabled/post-run.systemd-user-update [new symlink]
.gitignore.d/systemd

diff --git a/.config/vcsh/hooks-available/systemd-user.update b/.config/vcsh/hooks-available/systemd-user.update
new file mode 100755 (executable)
index 0000000..3e949fc
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cd ${XDG_CONFIG_DIR:-~/.config}/systemd/user
+git ls-files . | grep -q . || exit 0
+echo Triggering systemd-user daemon reload… >&2
+systemctl --user daemon-reload
diff --git a/.config/vcsh/hooks-enabled/post-clone.systemd-user-update b/.config/vcsh/hooks-enabled/post-clone.systemd-user-update
new file mode 120000 (symlink)
index 0000000..8590d5d
--- /dev/null
@@ -0,0 +1 @@
+../hooks-available/systemd-user.update
\ No newline at end of file
diff --git a/.config/vcsh/hooks-enabled/post-enter.systemd-user-update b/.config/vcsh/hooks-enabled/post-enter.systemd-user-update
new file mode 120000 (symlink)
index 0000000..8590d5d
--- /dev/null
@@ -0,0 +1 @@
+../hooks-available/systemd-user.update
\ No newline at end of file
diff --git a/.config/vcsh/hooks-enabled/post-pull.systemd-user-update b/.config/vcsh/hooks-enabled/post-pull.systemd-user-update
new file mode 120000 (symlink)
index 0000000..8590d5d
--- /dev/null
@@ -0,0 +1 @@
+../hooks-available/systemd-user.update
\ No newline at end of file
diff --git a/.config/vcsh/hooks-enabled/post-run.systemd-user-update b/.config/vcsh/hooks-enabled/post-run.systemd-user-update
new file mode 120000 (symlink)
index 0000000..8590d5d
--- /dev/null
@@ -0,0 +1 @@
+../hooks-available/systemd-user.update
\ No newline at end of file
index 442f4b01c4e4ee44402d67a8726ba24e58a1c25c..7751a5565b228b7105b441dc5840f28c9684be61 100644 (file)
@@ -1,5 +1,10 @@
 *
 !/.config/systemd/user/.gitignore
 *
 !/.config/systemd/user/.gitignore
+!/.config/vcsh/hooks-available/systemd-user.update
+!/.config/vcsh/hooks-enabled/post-clone.systemd-user-update
+!/.config/vcsh/hooks-enabled/post-enter.systemd-user-update
+!/.config/vcsh/hooks-enabled/post-pull.systemd-user-update
+!/.config/vcsh/hooks-enabled/post-run.systemd-user-update
 !/.gitignore.d/systemd
 !/.zsh/aliases/sc
 !/.zsh/aliases/scu
 !/.gitignore.d/systemd
 !/.zsh/aliases/sc
 !/.zsh/aliases/scu