acme-misc/git/Gdifs

6 lines
90 B
Bash
Executable File

#!/usr/bin/env rc
if(~ $#samfile 0)
git diff --staged
if not
git diff --staged $samfile