Is there a git command to add differences within a range of line-numbers to the index?
I want to be able to select lines in my editor and run a macro to add
The easiest way to do it currently is with git add in interactive mode:
git add
git add -i path/to/file
It will launch simple UI where you can choose chunks you want to stage and let you edit any chunk to remove lines you don't want to commit.