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

[PATCH 4/5] refs.c: make repack_without_refs static

From
Ronnie Sahlberg <sahlberg@google.com>
Date
Jul 25, 2014, 17:55 UTC
Message-ID
<1406310926-4080-5-git-send-email-sahlberg@google.com>
In-Reply-To
<1406310926-4080-1-git-send-email-sahlberg@google.com>
Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
---
 refs.c | 2 +-
 refs.h | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/refs.c b/refs.c
index efa4f0d..5696d18 100644
--- a/refs.c
+++ b/refs.c
@@ -2534,7 +2534,7 @@ static int curate_packed_ref_fn(struct ref_entry *entry, void *cb_data)
 /*
  * Must be called with packed refs already locked (and sorted)
  */
-int repack_without_refs(const char **refnames, int n, struct strbuf *err)
+static int repack_without_refs(const char **refnames, int n, struct strbuf *err)
 {
 	struct ref_dir *packed;
 	struct string_list refs_to_delete = STRING_LIST_INIT_DUP;
diff --git a/refs.h b/refs.h
index eb918a0..7183e8e 100644
--- a/refs.h
+++ b/refs.h
@@ -155,9 +155,6 @@ extern void rollback_packed_refs(void);
  */
 int pack_refs(unsigned int flags);
 
-extern int repack_without_refs(const char **refnames, int n,
-			       struct strbuf *err);
-
 extern int ref_exists(const char *);
 
 /*
-- 
2.0.1.518.g4f5a8ad
Previous: Ronnie SahlbergNext: Ronnie Sahlberg
Message 9 of 10 in “use packed refs for ref-transactions”
  1. 0/5 use packed refs for ref-transactionsRonnie Sahlberg, Jul 25, 2014
  2. 1/5 refs.c: move reflog updates into its own functionRonnie Sahlberg, Jul 25, 2014
  3. 2/5 refs.c: write updates to packed refs when a transaction has more than one refRonnie Sahlberg, Jul 25, 2014
  4. Junio C HamanoJul 29, 2014
  5. Ronnie SahlbergJul 30, 2014
  6. Junio C HamanoJul 29, 2014
  7. Ronnie SahlbergJul 30, 2014
  8. 3/5 remote.c: use a transaction for deleting refsRonnie Sahlberg, Jul 25, 2014
  9. 4/5 refs.c: make repack_without_refs staticRonnie Sahlberg, Jul 25, 2014
  10. 5/5 refs.c: make the *_packed_refs functions staticRonnie Sahlberg, Jul 25, 2014

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.