#!/bin/sh

path="$(git rev-parse --show-toplevel)/.git/COMMIT_EDITMSG"
if [ "$1" = "copy" ]; then
  pbcopy <"${path}"
else
  echo "${path}"
fi
