]> git.ipfire.org Git - thirdparty/git.git/commitdiff
commit: remove unused forward declaration
authorJustin Tobler <jltobler@gmail.com>
Fri, 13 Mar 2026 01:39:36 +0000 (20:39 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Mar 2026 04:28:19 +0000 (21:28 -0700)
In 6206089cbd (commit: write commits for both hashes, 2023-10-01),
`sign_with_header()` was removed, but its forward declaration in
"commit.h" was left. Remove the unused declaration.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.h

index f2f39e1a89ef62d13f7c7e4e7b91c8efbcd71488..e9dee8d26bc9ee040df2a1c1881ce6368b2a169c 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -400,8 +400,6 @@ LAST_ARG_MUST_BE_NULL
 int run_commit_hook(int editor_is_used, const char *index_file,
                    int *invoked_hook, const char *name, ...);
 
-/* Sign a commit or tag buffer, storing the result in a header. */
-int sign_with_header(struct strbuf *buf, const char *keyid);
 /* Parse the signature out of a header. */
 int parse_buffer_signed_by_header(const char *buffer,
                                  unsigned long size,