Improve staging of diff chunks
authorJonas Fonseca <fonseca@diku.dk>
Thu, 3 Apr 2008 23:03:21 +0000 (01:03 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 3 Apr 2008 23:03:21 +0000 (01:03 +0200)
commit234918423a4fac44375317e6c9e7ee54ea09379c
treee1a4a0b60e95dbade0f108bdba8f808de45ce1b3
parent1e61580b7bdf4f60e4b222f9aeb9421a50c27eb2
Improve staging of diff chunks

As suggested by Petr Baudis some year ago, make updating of chunks work
stage the chunk the cursor line is within instead of the whole file. Still
stage everything when the cursor is in the diff --stat header.
tig.c