#!/bin/sh
#A=`hg diff $@ | grep -v '+++' | grep ^+ |wc -l`
#B=`hg diff $@ | grep -v -- '---' | grep ^- |wc -l`
A=`git diff $* | grep -v '+++' | grep ^+ |wc -l`
B=`git diff $* | grep -v -- '---' | grep ^- |wc -l`
echo $((A-B))