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

[PATCH 1/2] refs: remove unused head_ref_submodule() implementation

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Mar 19, 2017, 20:23 UTC
Message-ID
<a3c6fa20-7077-cd27-88da-fec4ded8bb30@ramsayjones.plus.com>

commit 990eaca068 ("refs: remove dead for_each_*_submodule()", 18-03-2017) removed the public declaration of head_ref_submodule(), but forgot to remove the definition.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
Hi Duy,

If you need to re-roll your 'nd/prune-in-worktree' branch, could you please squash this into the relevant patch.

Also, I note that this patch does not update the technical documentation to remove references to these api functions. (see Documentation/technical/\ api-ref-iteration.txt).

Thanks!

ATB, Ramsay Jones

 refs.c | 5 -----
 1 file changed, 5 deletions(-)
diff --git a/refs.c b/refs.c
index 6006d4fdb..e80425379 100644
--- a/refs.c
+++ b/refs.c
@@ -1208,11 +1208,6 @@ int refs_head_ref(struct ref_store *refs, each_ref_fn fn, void *cb_data)
 	return 0;
 }
 
-int head_ref_submodule(const char *submodule, each_ref_fn fn, void *cb_data)
-{
-	return refs_head_ref(get_submodule_ref_store(submodule), fn, cb_data);
-}
-
 int head_ref(each_ref_fn fn, void *cb_data)
 {
 	return refs_head_ref(get_main_ref_store(), fn, cb_data);
-- 
2.12.0
Message 1 of 1 in “refs: remove unused head_ref_submodule() implementation”
  1. 1/2 refs: remove unused head_ref_submodule() implementationRamsay Jones, Mar 19, 2017

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.