This is the mail archive of the
mailing list for the glibc project.
Re: How should files be moved in the glibc repository
On Mon, Nov 28, 2016 at 2:39 PM, Andreas Schwab <email@example.com> wrote:
> On Nov 28 2016, Steve Ellcey <firstname.lastname@example.org> wrote:
>> I found my problem. I was doing 'git diff' and not 'git diff HEAD'.
> You should create a commit and then use format-patch.
if sending to the list, i'd recommend using the -C/-M options -- it
makes the diff much easier to read/follow. it'll just show metadata
lines indicating the rename rather than two full diffs -- one showing
you deleting the original and one showing you adding the new one.
i think setting the git-config diff.renames option Zack referenced to
"copy" will get you automatic -C behavior. personally i create an
$ git config --global alias.format-patch "format-patch -C -M"