]> git.ipfire.org Git - thirdparty/git.git/commit - remote.c
Wrap rewrite globals in a struct in preparation for adding another set
authorJosh Triplett <josh@joshtriplett.org>
Mon, 7 Sep 2009 08:56:00 +0000 (01:56 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Sep 2009 19:58:45 +0000 (12:58 -0700)
commitd071d942963fa76b11826f25c54fdfd8b09d7626
tree9ffe6d20c304eb3b85a9c1d101193639d93a8178
parent6ea71fe7d36cf5b81c2100d97a822ecf0bc04746
Wrap rewrite globals in a struct in preparation for adding another set

remote.c has a global set of URL rewrites, accessed by alias_url and
make_rewrite.  Wrap them in a new "struct rewrites", passed to alias_url
and make_rewrite.  This allows adding other sets of rewrites.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c