author | Jay Soffian <jaysoffian@gmail.com> | |
Wed, 25 Feb 2009 08:32:11 +0000 (03:32 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 26 Feb 2009 08:49:45 +0000 (00:49 -0800) | ||
commit | 454e2025a933593fd751475b59cc014887b4df6d | |
tree | c062d080209a45abbd32ba3aab633426f77dc09e | tree | snapshot |
parent | 5483f79998c5a9705d453a713d11fb7591329ed4 | commit | diff |
move duplicated get_local_heads() to remote.c
get_local_heads() appears to have been copied from builtin-send-pack.c
to http-push.c via cut and paste. This patch moves the function and its
helper one_local_ref() to remote.c.
The two copies of one_local_ref() were not identical. I used the more
recent version from builtin-send-pack.c after confirming with Jeff King
that it was an oversight that commit 30affa1e did not update both
copies.
This is in preparation for being able to call it from builtin-remote.c
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
get_local_heads() appears to have been copied from builtin-send-pack.c
to http-push.c via cut and paste. This patch moves the function and its
helper one_local_ref() to remote.c.
The two copies of one_local_ref() were not identical. I used the more
recent version from builtin-send-pack.c after confirming with Jeff King
that it was an oversight that commit 30affa1e did not update both
copies.
This is in preparation for being able to call it from builtin-remote.c
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-send-pack.c | diff | blob | history | |
http-push.c | diff | blob | history | |
remote.c | diff | blob | history | |
remote.h | diff | blob | history |