12345678910111213141516171819 |
- get_git_branch() {
- git rev-parse --abbrev-ref HEAD || echo "0"
- }
- get_git_commit_id() {
- git rev-parse HEAD || echo "0"
- }
- get_git_commit_id_short() {
- git rev-parse --short HEAD || echo "0"
- }
- get_date_stamp() {
- date --utc +%Y-%m-%d
- }
|