summaryrefslogtreecommitdiffstats
path: root/read-cache.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-07-10 19:48:40 +0200
committerJunio C Hamano <gitster@pobox.com>2007-07-12 00:28:15 +0200
commitb42f69273bf5ae2d5bb0c7479bfa9827e7b351ac (patch)
tree67849e4e3354317f92e8dd6acf1d941e05bf2778 /read-cache.c
parentt7004: Add tests for the git tag -n option. (diff)
downloadgit-b42f69273bf5ae2d5bb0c7479bfa9827e7b351ac.tar.xz
git-b42f69273bf5ae2d5bb0c7479bfa9827e7b351ac.zip
Add for_each_remote() function, and extend remote_find_tracking()
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>
Diffstat (limited to 'read-cache.c')
0 files changed, 0 insertions, 0 deletions