- #! /bin/bash
- [[ $# -ne 1 ]] && echo "Usage: $0 SHA1SUM
- Lists type of git object associated with SHA1SUM." && exit 1
- sha=$1
- [[ ! -f "$(sgit-loc $sha)" ]] && echo "No object is associated with sha1sum $sha." && exit 1
- sgit-cat $sha | head -1 | awk '{print $1}'
|