emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git history tracking across renames (and emacs support)


From: Robert Pluim
Subject: Re: git history tracking across renames (and emacs support)
Date: Fri, 13 Jul 2018 10:18:44 +0200

Stefan Monnier <address@hidden> writes:

>>> Generate the diff and then use `C-x 4 A` from the diff.
>>> It should be fairly easy to combine the two into a single command.
>> ...but this doesnʼt.
>
> You meant `C-x 4 A` doesn't work (if so, why not), or combining the two
> into a single command doesn't (if so, it probably depends on how you
> did it)?

C-x 4 A doesnʼt work from a magit diff buffer that contains changes
for multiple files, it creates a ChangeLog entry for whichever file
entry point happens to be in. So I would need to do M-! git diff M-x
diff-mode C-x 4 A. That could be made into a single command, but if
C-x 4 A understood magit diffs, then you'd get complete control over
the content of the diff (staged, unstaged, commit, etc).

Regards

Robert



reply via email to

[Prev in Thread] Current Thread [Next in Thread]