Reputation: 19654
While on a branch, I'm looking to run effectively this command:
git diff --name-only master...
using magit. What is the appropriate keystroke to see the names of files that have been modified on a branch like the above?
Upvotes: 0
Views: 470
Reputation: 176
On the magit status page, type d for diff, r for range, and then enter "master" for the branch to diff with.
It will show all the diffs, the trick is, on the Magit-diff buffer press Shfit+Tab (which is bind to "magit-section-cycle-global") to collapse the sections and show only the file names.
Upvotes: 0
Reputation: 1
In .gitalias I include
[alias]
dnom = diff --name-only master
Then in the git-status window type ":" dnom, which runs magit-git-command and displays the files that differ in the current branch from master.
Upvotes: 0