Is there a way in Git on the command line, or in a Git-GUI supported by Linux, to do git add -p for ONLY hunks that meet the two following conditions?
- the hunk involves changes of 50+ lines.
- the changes are only additions; no deletions
OR
How do I sort the hunks by their size?
Either option would help me achieve my goal:
I am merging two git branches, and my goal is to only look at the big hunks in one of the branches and decide whether to merge them or not. I don't want to use any of the hunks that don't meet the two above conditions, but be able to choose which hunks I add that do meet these two conditions.
I saw this question, and it makes me pessimistic, but here I don't need a regex, and I need to somehow figure out which hunks are added versus rejected.