rebase -i: Simplify commit counting for generated commit messages
commitf99e269c44a7f07699a92c7e31d31ed93dafb409
authorMichael Haggerty <mhagger@alum.mit.edu>
Thu, 14 Jan 2010 05:54:50 +0000 (14 06:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Jan 2010 08:27:56 +0000 (14 00:27 -0800)
tree77083a03328716f07c5b94444a598ed14bbac62d
parent5065ed296abc1c0b66ad7c5e963e048cb90b6ee6
rebase -i: Simplify commit counting for generated commit messages

Read the old count from the first line of the old commit message
rather than counting the number of commit message blocks in the file.
This is simpler, faster, and more robust (e.g., it cannot be confused
by strange commit message contents).

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--interactive.sh