#!/bin/sh
X="${@:-.}"
A="$(git diff "$X" | grep -v '+++' | grep -c ^+)"
B="$(git diff "$X" | grep -v -- '---' | grep -c ^-)"
echo "$((A-B))"
