echo "closest match."
echo
echo "Example: $0 --cached v1.0..HEAD"
- echo "Compares current work tree to all revisions between v1.0 and HEAD,"
+ echo "Compares current index to all revisions between v1.0 and HEAD,"
echo "and identifies the closest match."
}
done
echo >&2 "Done."
+if [ -z "$bestrevscore" ]; then
+ exit 1
+fi
+
echo "$bestrev"
git diff $diffopts --cached "$bestrev" >&2