git-status-tree
git-status-tree copied to clipboard
git tree [<commit>] [<commit>]
Current git status tree
git tree
Show changes files in commit in tree format
git tree <commit>
Show changes files in diff in tree format
git tree <commit> <commit>
Useful commands that can be used in GitStatusTree#initialize
git diff-tree --no-commit-id --name-status -r <commit>
git diff-tree --no-commit-id --name-status -r <commit> <commit>
e.g.
`files = (%x(git diff-tree --name-status -r #{commit1} #{commit2})).gsub(/\t/,' ').split(/\n/)`
temp. work-around:
git reset <old-commit> --hard
git reset <new-commit> --soft
git add -A
git tree
git reset <old-commit> --hard