aboutsummaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-06-01 00:28:04 -0400
committerJunio C Hamano <gitster@pobox.com>2008-05-31 23:55:50 -0700
commit7ad2458fadc6cafe25e23affd6cc46cd6494a42d (patch)
tree14b1d0536033afa37713981e9c45977889aa5f3d /perl
parentc175a7ad32ee978baaa6524304e9406684bd1286 (diff)
downloadgit-7ad2458fadc6cafe25e23affd6cc46cd6494a42d.tar.gz
git-7ad2458fadc6cafe25e23affd6cc46cd6494a42d.tar.xz
Make "git-remote rm" delete refs acccording to fetch specs
A remote may be configured to fetch into tracking branches that don't match its name. A user may have created a remote by hand that will fetch to a different tracking branch namespace: [remote "alt"] url = git://repo.or.cz/alt-git.git fetch = refs/heads/*:refs/remotes/origin/* When deleting remote alt we should clean up the refs whose names start with "refs/remotes/origin/", even though the remote itself was named alt by the user. To avoid deleting refs used by another remote we only clear refs that are unique to this remote. This prevents `git prune rm alt` from removing the refs used by say origin if alt was just using a different URL for the same repository. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'perl')
0 files changed, 0 insertions, 0 deletions