Skip to content

Instantly share code, notes, and snippets.

@alxrocha
Forked from subtleGradient/git-transmit
Created January 4, 2012 14:40
Show Gist options
  • Save alxrocha/1560319 to your computer and use it in GitHub Desktop.
Save alxrocha/1560319 to your computer and use it in GitHub Desktop.
git-transmit opens your recently modified files using Panic's Transmit.app DockSend
#!/usr/bin/env bash
# author: Thomas Aylott SubtleGradient.com
echo "Transmitting"
for i in `git log -${1:-1} $2 --name-only|grep -E '^[^ ]+$'|sort|uniq`; do
if [[ -e $i ]]; then
echo " $i"
open -a Transmit $i
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment