git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/3] Remove unused remote_prefix member in builtin-remote

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jun 1, 2008, 03:57 UTC
Message-ID
<20080601035748.GA32176@spearce.org>

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>
---
 builtin-remote.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/builtin-remote.c b/builtin-remote.c
index 99a34df..c76fe2e 100644
--- 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);
 
-- 
1.5.6.rc0.158.g7c7a1
Message 1 of 1 in “Remove unused remote_prefix member in builtin-remote”
  1. 1/3 Remove unused remote_prefix member in builtin-remoteShawn O. Pearce, Jun 1, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.