Mittenchops
Mittenchops

Reputation: 19654

Emacs magit command that shows names of modified files in a branch

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

Answers (3)

Shengis
Shengis

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

Joe Riel
Joe Riel

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

Mittenchops
Mittenchops

Reputation: 19654

There is not a magit command to do this.

Upvotes: 1

Related Questions