[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: PCB GIT: tracking inter-file moves



On Mon, Nov 16, 2009 at 09:23:48AM +0000, Ineiev wrote:
> I've noticed that some functions moved yesterday
> from src/hid/gtk/gtkhid-main.c to src/hid/gtkhid-gdk.c,
> and learnt that GIT does not track the changes
> when the content is moved between files (not by default).
> 
> Is there any means to automate such tracking?

Git stores entire files and trees.  It doesn't record diffs at all.
Anything finer grained than 'this file disappeared and this similar,
same-named file appeared' is presented at the time the change is
observed, not when it is committed.  That's why all of the options
like '-M' (detect renames) are on commands like 'log', 'show', etc.
So what you'd really want as a feature is not 'tracking' but the
ability for merge to track functions across files just like it currently
can across renames.

-- 
Ben Jackson AD7GD
<ben@xxxxxxx>
http://www.ben.com/


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user