]> git.ipfire.org Git - thirdparty/git.git/commitdiff
strbuf: clarify dependency
authorCalvin Wan <calvinwan@google.com>
Tue, 6 Jun 2023 19:48:38 +0000 (19:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jun 2023 20:49:35 +0000 (13:49 -0700)
refs.h was once needed but is no longer so as of 6bab74e7fb8 ("strbuf:
move strbuf_branchname to sha1_name.c", 2010-11-06). strbuf.h was
included thru refs.h, so removing refs.h requires strbuf.h to be added
back.

Signed-off-by: Calvin Wan <calvinwan@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
strbuf.c

index 08eec8f1d8b488fe9040b219edae353b4d199077..f5dfd093a062de5f9df99046fe662a95e3918cb5 100644 (file)
--- a/strbuf.c
+++ b/strbuf.c
@@ -5,8 +5,8 @@
 #include "gettext.h"
 #include "hex.h"
 #include "object-name.h"
-#include "refs.h"
 #include "repository.h"
+#include "strbuf.h"
 #include "string-list.h"
 #include "utf8.h"
 #include "date.h"