Get A List Of Changed Files Between Two Commits Or Branches
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 in
Solution 1:
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!
Post a Comment for "Get A List Of Changed Files Between Two Commits Or Branches"