summary refs log tree commit diff
path: root/commit
diff options
context:
space:
mode:
Diffstat (limited to 'commit')
-rwxr-xr-xcommit11
1 files changed, 11 insertions, 0 deletions
diff --git a/commit b/commit
new file mode 100755
index 0000000..69f5cc8
--- /dev/null
+++ b/commit
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+cat <<EOF > ModAS.Server/Version.cs
+namespace Modas.Server;
+public static class Version
+{
+    public const string Text = "$(git rev-parse --abbrev-ref HEAD)@$(git describe --tags --abbrev=0)+`git log $(git describe --tags --abbrev=0)..HEAD --oneline`";
+}
+EOF
+
+#git log $(git describe --tags --abbrev=0)..HEAD --oneline
\ No newline at end of file