summary refs log tree commit diff
path: root/etc/snippets/scheme-mode/guix-git-reference
diff options
context:
space:
mode:
Diffstat (limited to 'etc/snippets/scheme-mode/guix-git-reference')
-rw-r--r--etc/snippets/scheme-mode/guix-git-reference7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/snippets/scheme-mode/guix-git-reference b/etc/snippets/scheme-mode/guix-git-reference
new file mode 100644
index 0000000000..29ca6a9c54
--- /dev/null
+++ b/etc/snippets/scheme-mode/guix-git-reference
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: guix-git-reference
+# key: git-reference...
+# --
+(git-reference
+  (url "$1")
+  (commit ${2:commit}))
\ No newline at end of file