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.
This was accomplished in bash scripting by using
git diff --name-only FIRSTBRANCH...SECONDBRANCH
user = str(sys.argv)
password = str(sys.argv)
currentBranch = str(sys.argv)
compBranch = str(sys.argv)
repo = Repo(directory)
currentCommit = repo.commit(currentBranch)
compCommit = repo.commit(compBranch)
diffed = repo.diff(currentBranch, compBranch)
Fixed or at least on the right track with the following (inspired by someone who deleted their answer... thanks, guy)
subprocess.check_output(['git', 'diff', '--name-only', currentBranch + '..' + compBranch])
This basically does what I need it to, although if there is a more elegant solution I'd love to hear it!