Git diff exclude swapped lines

Hi,

I am doing aws security group auditing every day to find the difference. I am using git to find the difference. But some times some security group rules order is changing up and down(swapping lines). So 'git diff' command gives this as a difference which i dont want(i need only new lines added, lines removed or modified). Any solutions to overcome this?

Operating System : Ubuntu

Thanks,

But I guess that's how all the revision-ing systems are right?
I am not an expert in git, but if there is no other option, may be can think of doing it via scripting once you pull the file versions in question.

--ahamed

1 Like

This is solved by sorting the file.

1 Like