View git differences tree in reasonable format

I am going to make git svn dcommit in our svn repo - and, as recommended in a number of places, I wanted to find out exactly what I was going to accomplish with a dry run. As such, I ran:

git svn dcommit -n

Result:

Committing to http://somerepo/svn/branches/somebranch
diff-tree 1b937dacb302908602caedf1798171fb1b7afc81~1 1b937dacb302908602caedf1798171fb1b7afc81

How can I view this in a format that I can use as a person? Recall the list of modified files. This is probably easy, but running git diff-tree on these hashes gives me a link to the directory and some other hashes, as well as some numbers. Not quite sure what to do about it.

Thanks a lot josh

+5
source share
1 answer

Do not use diff-tree, use diff:

# full diff
git diff 1b937da~1 1b937da

# list of files, with status M/A/D/R/C (modified, added, deleted, renamed, copied)
git diff --name-status 1b937da~1 1b937da
+6
source

All Articles