#!/bin/bash

usage() {
  echo "usage $0 <sha1> <sha2>:"
  echo "  Shows commit log (along a single path) between sha1 and sha2."
}

if [ -z "$1" ]; then
  echo
  echo "Missing the first sha to look up"
  echo
  usage
  exit 1
fi

if [ -z "$2" ]; then
  echo
  echo "Missing the second sha to look up"
  echo
  usage
  exit 1
fi

git log --oneline --first-parent --graph $1..$2


