radare2/sys/locdiff
2015-06-16 22:59:01 -04:00

7 lines
230 B
Bash
Executable File

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