title: Get a list of changed files between two commits or branches
body: <p>I'm a Python/Git newb but I'm trying to write a script that takes two branches or commits as parameters and shows a list of changed files between the two, not all the extraneous info that comes with a regular diff.</p>
  
  <p>This was accomplished in bash scripting by using </p>
  
  <pre><code>git diff --name-only FIRSTBRANCH...SECONDBRANCH
  </code></pre>
  
  <p>but it isn't translating as easily to Python scripting using gitpython. If anyone has any idea how to do this, that'd be great.</p>
  
  <p>edit: heres some code </p>
  
  <pre><code>user = str(sys.argv[1])
  password = str(sys.argv[2])
  currentBranch = str(sys.argv[3])
  compBranch = str(sys.argv[4])
  
  repo = Repo(directory)
  currentCommit = repo.commit(currentBranch)
  compCommit = repo.commit(compBranch)
  diffed = repo.diff(currentBranch, compBranch)
  </code></pre>
  
  <p>print diff will return all the diff details when I only want a list of changed files</p>