Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Remove unused remote_prefix member in builtin-remote
author
Shawn O. Pearce
<spearce@spearce.org>
Sun, 1 Jun 2008 03:57:48 +0000
(23:57 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 1 Jun 2008 06:54:10 +0000
(23:54 -0700)
Not sure when this became unused, but no code references it,
other than to populate the strbuf with an initial value.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-remote.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
d2b3691
)
diff --git
a/builtin-remote.c
b/builtin-remote.c
index 99a34dfe86a79df353d3c094cb2ebf71fdca1cc0..c76fe2e0ede09a8b548742b06a8ffd47f9d76db0 100644
(file)
--- a/
builtin-remote.c
+++ b/
builtin-remote.c
@@
-206,7
+206,6
@@
static void read_branches(void)
struct ref_states {
struct remote *remote;
- struct strbuf remote_prefix;
struct path_list new, stale, tracked;
};
@@
-262,8
+261,6
@@
static int get_ref_states(const struct ref *ref, struct ref_states *states)
}
free_refs(fetch_map);
- strbuf_addf(&states->remote_prefix,
- "refs/remotes/%s/", states->remote->name);
for_each_ref(handle_one_branch, states);
sort_path_list(&states->stale);