author | William Pursell <bill.pursell@gmail.com> | |
Thu, 4 Dec 2008 10:00:24 +0000 (10:00 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 5 Dec 2008 01:59:41 +0000 (17:59 -0800) | ||
commit | 3f6aff68896f8490e101eb5c4ad8f0fa5b8b67bb | |
tree | 80e58f3d4fa1397240f65283b0bbeb10f4146a1a | tree | snapshot |
parent | ae26e7c74970281bd3597c79e44a8b54a927bbe1 | commit | diff |
Add subroutine to display one-line summary of hunks
This commit implements a rather simple-minded mechanism to display a
one-line summary of the hunks in an array ref. The display consists of
the line numbers and the first changed line, truncated to 80 characters.
20 lines are displayed at a time, and the index of the first undisplayed
line is returned, allowing the caller to display more if desired. (The 20
and 80 should be made configurable.)
Signed-off-by: William Pursell <bill.pursell@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit implements a rather simple-minded mechanism to display a
one-line summary of the hunks in an array ref. The display consists of
the line numbers and the first changed line, truncated to 80 characters.
20 lines are displayed at a time, and the index of the first undisplayed
line is returned, allowing the caller to display more if desired. (The 20
and 80 should be made configurable.)
Signed-off-by: William Pursell <bill.pursell@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-add--interactive.perl | diff | blob | history |