sgit-objsha 233 B

1234567891011
  1. #! /bin/bash
  2. [[ $# -ne 1 ]] && echo "Usage: $0 FILE
  3. Converts the sha1sum associated with a git object." && exit 1
  4. loc="$1"
  5. [[ ! -f "$1" ]] && echo "File $loc not found." && exit 1
  6. echo $(basename $(dirname $loc))$(basename $loc)