mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
96b1ba4b04
- Place these in your .git/hooks/ directory
4 lines
206 B
Bash
Executable File
4 lines
206 B
Bash
Executable File
#!/bin/bash
|
|
toplevel=$( git rev-parse --show-toplevel )
|
|
git log -1 --pretty="format:{\"commit\": \"%H\", \"commit_short\": \"%h\", \"version\": \"%ad\"}" --date="format:%y.%m.%d" > "$toplevel/version.json"
|