Re: How to keep log history when renaming and changing simultaneously

2017-04-17 Thread Junio C Hamano
Jacob Keller writes: > Unfortunately I don't have a ready link to the message, but there is a > very good post from early on in Git's development where Linus explains > why Git does not store rename and copy information in the history. One of the most important message in the list archive, gmane

Re: How to keep log history when renaming and changing simultaneously

2017-04-17 Thread Jacob Keller
On Mon, Apr 17, 2017 at 2:36 PM, Urs Thuermann wrote: > Igor Djordjevic writes: > >> For both cases (renaming and splitting), would using `--find-copies` >> work for you? Perhaps with some low threshold value to start with, if >> the default one yields no results. >> >> If interested, adding `--n

Re: How to keep log history when renaming and changing simultaneously

2017-04-17 Thread Urs Thuermann
Igor Djordjevic writes: > For both cases (renaming and splitting), would using `--find-copies` > work for you? Perhaps with some low threshold value to start with, if > the default one yields no results. > > If interested, adding `--name-status` to the mix will show similarity > percentage be

Re: How to keep log history when renaming and changing simultaneously

2017-04-17 Thread Igor Djordjevic
Hi Urs, On 17/04/2017 13:36, Urs Thuermann wrote: > Sometimes I need to rename and change a file in one commit. One > example would be a file foo.h that begins with > > #ifndef FOO_H > #define FOO_H > > which should be renamed bar.h and have the FOO_H changed to BAR_H. > In subversion I

Re: How to keep log history when renaming and changing simultaneously

2017-04-17 Thread Duy Nguyen
On Mon, Apr 17, 2017 at 6:36 PM, Urs Thuermann wrote: > Sometimes I need to rename and change a file in one commit. One > example would be a file foo.h that begins with > > #ifndef FOO_H > #define FOO_H > > which should be renamed bar.h and have the FOO_H changed to BAR_H. > In subversion

How to keep log history when renaming and changing simultaneously

2017-04-17 Thread Urs Thuermann
Sometimes I need to rename and change a file in one commit. One example would be a file foo.h that begins with #ifndef FOO_H #define FOO_H which should be renamed bar.h and have the FOO_H changed to BAR_H. In subversion I would svn mv foo.h bar.h; vi bar.h; svn ci and then a s