I work with a codebase that has a lot of duplication. It seems the files were copied and then slightly modified, say bumping version numbers in string output and creation time-stamps.
Is there a way to tell git diff
to ignore lines (a) in which only a specific number or digit is replaced by another (e.g. version_5
and version_6
) or (b) in which the difference is digits only?
I know that git diff
is quite flexible and I've read this answer about ignoring comments, but I don't see how I find out anything about the difference between two lines (like, if it's only digits that are different).