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

[PATCH] make sha1_sort inline

From
DRDavid Rientjes <rientjes@google.com>
Date
Aug 18, 2006, 05:30 UTC
Message-ID
<Pine.LNX.4.63.0608172229070.25827@chino.corp.google.com>
Inlines sha1_sort as discussed in previous thread.
Signed-off-by: David Rientjes <rientjes@google.com>
---
 builtin-pack-objects.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index f19f0d6..b7ba558 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -929,7 +929,8 @@ static struct object_entry **create_sort
 	return list;
 }
 
-static int sha1_sort(const struct object_entry *a, const struct object_entry *b)
+static inline int sha1_sort(const struct object_entry *a,
+			    const struct object_entry *b)
 {
 	return hashcmp(a->sha1, b->sha1);
 }
-- 
1.4.2.rc4.gd070-dirty
Next: Junio C Hamano
Message 1 of 3 in “make sha1_sort inline”
  1. make sha1_sort inlineDavid Rientjes, Aug 18, 2006
  2. Junio C HamanoAug 18, 2006
  3. David RientjesAug 18, 2006

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.