1#!/bin/sh
2#A=`hg diff $@ | grep -v '+++' | grep ^+ |wc -l`
3#B=`hg diff $@ | grep -v -- '---' | grep ^- |wc -l`
4A="$(git diff "$@" | grep -v '+++' | grep -c ^+)"
5B="$(git diff "$@" | grep -v -- '---' | grep -c ^-)"
6echo "$((A-B))"
7