author | Jonathan Nieder <jrnieder@gmail.com> | |
Wed, 16 Mar 2011 07:10:14 +0000 (02:10 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Mar 2011 19:52:15 +0000 (12:52 -0700) | ||
commit | 6e0332ec3ea74e635258a30d360bd2e00a51730e | |
tree | 80a38c518e629e2dbdde4d295b11c7b8f3eea6e5 | tree | snapshot |
parent | 9cba13ca5d233a4e1a7068f3f5ed5836a081dcc0 | commit | diff |
branch: split off function that writes tracking info and commit subject
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>
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>
builtin/branch.c | diff | blob | history |