diff options
author | Michael Lukashov <michael.lukashov@gmail.com> | 2010-02-16 23:42:52 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-17 15:07:15 -0800 |
commit | f1863d0d16b9a5288671e17b7fa2eba8244ead2f (patch) | |
tree | ddd1b513802a0a97f715b47a22e2ed790364c2da /t/t5402-post-merge-hook.sh | |
parent | Merge branch 'jc/typo' (diff) | |
download | tgif-f1863d0d16b9a5288671e17b7fa2eba8244ead2f.tar.xz |
refactor duplicated code in builtin-send-pack.c and transport.c
The following functions are (almost) identical:
verify_remote_names
update_tracking_ref
refs_pushed
print_push_status
Move common versions of these functions to transport.c and rename
them, as suggested by Jeff King and Junio C Hamano.
These functions have been removed entirely from builtin-send-pack.c,
since they are only used internally by print_push_status():
print_ref_status
status_abbrev
print_ok_ref_status
print_one_push_status
Also, move #define SUMMARY_WIDTH to transport.h and rename it
TRANSPORT_SUMMARY_WIDTH as it is used in builtin-fetch.c and
transport.c
Signed-off-by: Michael Lukashov <michael.lukashov@gmail.com>
Acked-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5402-post-merge-hook.sh')
0 files changed, 0 insertions, 0 deletions