Thread (35 messages) 35 messages, 4 authors, 4d ago

Re: [PATCH 3/7] hash: document function pointers and wrappers

From: Jeff King <hidden>
Date: 2026-07-07 20:05:58

On Tue, Jul 07, 2026 at 04:26:36PM +0200, Patrick Steinhardt wrote:
On Tue, Jul 07, 2026 at 01:05:57AM -0400, Jeff King wrote:
quoted
diff --git a/hash.h b/hash.h
index 0a23ef4dfd..5686914b71 100644
--- a/hash.h
+++ b/hash.h
@@ -341,12 +334,40 @@ struct git_hash_algo {
 };
 extern const struct git_hash_algo hash_algos[GIT_HASH_NALGOS];
 
+/*
+ * Prepare an uninitialized hash context for use. You must eventually release
+ * the context with with git_hash_final() (or final_oid()) or by calling
s/with with/with/
Thanks, looks like there are a few minor formatting nits, so I'll fix
this in a v2.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help