diff --git a/linux/git_commit_description b/linux/git_commit_description new file mode 100755 index 00000000..c9d898aa --- /dev/null +++ b/linux/git_commit_description @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +#*# linux/git_commit_description + +#** +# ====================== +# Git Commit Description +# ====================== +# +# .. default-domain:: bash +# +# .. file:: git_commit_description +# +# :Output: *stdout* - The preferred ``git describe`` output +# +# Helper script for printing out the preferred ``git describe`` for a repo +#** + +function git_commit_description() +{ + git describe --all --long --always --dirty +} + +if [ "${BASH_SOURCE[0]}" = "${0}" ] || [ "$(basename "${BASH_SOURCE[0]}")" = "${0}" ]; then + git_commit_description ${@+"${@}"} + exit "${?}" +fi \ No newline at end of file