Fwd: possible Improving diff algoritm
- From
Kevin <ikke@ikke.info>
- Date
- Dec 12, 2012, 15:03 UTC
- Message-ID
- <CAO54GHD3C2RKUvE5jK_XOCVbbDuE_c5xfe28rOL+DaE5anL-Wg@mail.gmail.com>
- In-Reply-To
- <CAO54GHC4AXQO1MbU2qXMdcDO5mtUFhrXfXND5evc93kQhNfCrw@mail.gmail.com>
Regularly I notice that the diffs that are provided (through diff, or add -p) tend to disconnect changes that belong to each other and report lines being changed that are not changed.
An example for this is:
/** + * Default parent + * + * @var int + * @access protected + * @index + */ + protected $defaultParent; + + /**
I understand this is a valid view of what is changed, but not a very logical view from the point of the user.
I wondered if there is a way to improve this, or would that have other consequences.