I have a system that is retrieving .xml files from a Salesforce organization. For some of the files, their line number ordering shifts on subsequent retrievals. So if I do the following:
- Retrieve a file
- Commit its contents
- Re-retrieve the file
- Commit its contents
It's completely possible that the order of the lines in the XML has changed, which causes the diff checker to think that the file has had changes made when that's not the case. Is there any git command or strategy that would help cut down the commit clutter? Perhaps something that simplifies a diff down to a set of the lines, and solely checks whether any of the lines in the set have changes.