Skip to content
Myr

version

This file

Path

scripts/version

13 lines · 313 bytes

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than fa6a2ff point at it.

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

lines 1–13why, one step back
1#!/bin/sh
2set -eu34cd "$(dirname "$0")/../"5test -e .git || exit 167if git describe --tags --match 'jq-*' >/dev/null 2>&1; then8 git describe --tags --match 'jq-*' --dirty | sed 's/^jq-//'9else10 branch=$(git rev-parse --abbrev-ref HEAD)11 commit=$(git describe --always --dirty)12 echo "${branch}-${commit}"13fi