Skip to content

Instantly share code, notes, and snippets.

@drizzd
Created March 2, 2013 11:20
Show Gist options
  • Save drizzd/5070568 to your computer and use it in GitHub Desktop.
Save drizzd/5070568 to your computer and use it in GitHub Desktop.
list files not changed by a git commit
#!/bin/bash
comm -23 <(git ls-tree --name-only -r "$1" | sort) <(git diff --name-only "$1"^! | sort)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment