summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c729fe0)
Use git rev-list --count to get the revision number.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
try_git() {
git rev-parse --git-dir >/dev/null 2>&1 || return 1
try_git() {
git rev-parse --git-dir >/dev/null 2>&1 || return 1
- REV="$(git describe --match reboot | sed "s/reboot-\([0-9]*\)-.*/\1/g")"
+ REV="$(git rev-list reboot..HEAD --count)"
REV="${REV:+r$REV}"
[ -n "$REV" ]
}
REV="${REV:+r$REV}"
[ -n "$REV" ]
}