Rename remote.uri to remote.url within remote handling internals

Anyplace we talk about the address of a remote repository we always
refer to it as a URL, especially in the configuration file and
.git/remotes where we call it "remote.$n.url" or start the first
line with "URL:".  Calling this value a uri within the internal C
code just doesn't jive well with our commonly accepted terms.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Shawn O. Pearce
2007-09-19 00:49:27 -04:00
committed by Junio C Hamano
parent bbaf458428
commit 28b91f8ad9
5 changed files with 26 additions and 26 deletions

View File

@ -4,8 +4,8 @@
struct remote {
const char *name;
const char **uri;
int uri_nr;
const char **url;
int url_nr;
const char **push_refspec;
struct refspec *push;
@ -32,7 +32,7 @@ struct remote *remote_get(const char *name);
typedef int each_remote_fn(struct remote *remote, void *priv);
int for_each_remote(each_remote_fn fn, void *priv);
int remote_has_uri(struct remote *remote, const char *uri);
int remote_has_url(struct remote *remote, const char *url);
struct refspec {
unsigned force : 1;