inputs.sh 253 B

12345678910111213141516171819
  1. get_git_branch() {
  2. git rev-parse --abbrev-ref HEAD || echo "0"
  3. }
  4. get_git_commit_id() {
  5. git rev-parse HEAD || echo "0"
  6. }
  7. get_git_commit_id_short() {
  8. git rev-parse --short HEAD || echo "0"
  9. }
  10. get_date_stamp() {
  11. date --utc +%Y-%m-%d
  12. }