Re: [PATCH v1 0/3] add -p: select individual hunk lines
- From
- Gustavo Leite <gustavoleite.ti@gmail.com>
- Date
- Feb 19, 2018, 12:20 UTC
- Message-ID
- <CAEGv8HiRsS9N2nHBu8uwm+35GS+HRVc6Q0e1R+=-tZn7JcZ8BQ@mail.gmail.com>
- In-Reply-To
- <20180219113619.26566-1-phillip.wood@talktalk.net>
2018-02-19 8:36 GMT-03:00 Phillip Wood <phillip.wood@talktalk.net>:
Show 11 quoted lines
> > "When I end up editing hunks it is almost always because I want to > stage a subset of the lines in the hunk. Doing this by editing the > hunk is inconvenient and error prone (especially so if the patch is > going to be reversed before being applied). Instead offer an option > for add -p to stage individual lines. When the user presses 'l' the > hunk is redrawn with labels by the insertions and deletions and they > are prompted to enter a list of the lines they wish to stage. Ranges > of lines may be specified using 'a-b' where either 'a' or 'b' may be > omitted to mean all lines from 'a' to the end of the hunk or all lines > from 1 upto and including 'b'."
This is an interesting (and needed feature). Would be nice to see it merged.
-- Gustavo Leite