git commit ID via Lua abfragbar machen

This commit is contained in:
Nero 2023-07-23 11:31:44 +00:00
parent fde95395f5
commit 278f9c7b22
2 changed files with 5 additions and 0 deletions

1
.gitattributes vendored
View File

@ -1,2 +1,3 @@
*.lua text eol=crlf
.git* export-ignore
On.lua export-subst

4
On.lua
View File

@ -1,3 +1,7 @@
-- Versionsbezeichner, damit Leute mir den Wert von print(_KSKIT) geben können
-- und ich exakt weiss welche Version sie haben
_KSKIT='$Format:%as-%h$'
-- Schluessel ist der Callback-Name, Wert ist eine Tabelle mit den Funktionen
local Callbacks = {}