Skip to content

Instantly share code, notes, and snippets.

@trico
Created March 30, 2012 12:57
Show Gist options
  • Save trico/2251334 to your computer and use it in GitHub Desktop.
Save trico/2251334 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import subprocess
archivos = subprocess.check_output(["git", "diff", "HEAD^", "HEAD", "--name-only"])
try:
print subprocess.check_output("grep -nHe console " + archivos.replace('\n', ' '), stderr=subprocess.STDOUT, shell=True)
except Exception, e:
print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment