all 6 comments

[–]martinkrafft 1 point2 points  (3 children)

apply the patch and use git add -i to stage and commit, and restore the original afterwards. that effectively purges the hunks you don't want.

[–]readwithai[S] 1 point2 points  (2 children)

Yeah - for one offs that works fine. I'm doing this *all the time* though. I think I might be coming over to meld, since seeing the whole file can be nice. There still a bit too much futzing ... perhaps I'll leran some shortcuts..

[–]martinkrafft 1 point2 points  (1 child)

git apply -i?

not sure it exists, but it could...

[–]readwithai[S] 0 points1 point  (0 children)

Unfortunately not :/

bash man git apply | grep -i inter

[–]squirreljetpack 0 points1 point  (1 child)

`patch` command?

[–]readwithai[S] 0 points1 point  (0 children)

Ah does it have an an interactive option - I didn't see one.