Add for_each_remote() function, and extend remote_find_tracking()
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 10 Jul 2007 17:48:40 +0000 (18:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Jul 2007 22:28:15 +0000 (15:28 -0700)
The function for_each_remote() does exactly what the name
suggests.

The function remote_find_tracking() was extended to be able to
search remote refs for a given local ref. The caller sets
either src or dst (but not both) in the refspec parameter, and
remote_find_tracking() will fill in the other and return 0.

Both changes are required for the next step: simplification of
git-branch's --track functionality.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found