git-status-tree icon indicating copy to clipboard operation
git-status-tree copied to clipboard

git tree [<commit>] [<commit>]

Open wteuber opened this issue 10 years ago • 1 comments

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/)`

wteuber avatar Jun 26 '14 14:06 wteuber

temp. work-around:

git reset <old-commit> --hard
git reset <new-commit> --soft
git add -A
git tree
git reset <old-commit> --hard

wteuber avatar Feb 11 '16 22:02 wteuber