branch: split off function that writes tracking info and commit subject
authorJonathan Nieder <jrnieder@gmail.com>
Wed, 16 Mar 2011 07:10:14 +0000 (02:10 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Mar 2011 19:52:15 +0000 (12:52 -0700)
Introduce a add_verbose_info function that takes care of adding

- an abbreviated object name;
- a summary of the form [ahead x, behind y] of the relationship
to the corresponding upstream branch;
- a one line commit subject

for the tip commit of a branch, for use in "git branch -v" output.

No functional change intended. This just unindents the code a little
and makes it easier to skip on first reading.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found