]> git.ipfire.org Git - thirdparty/git.git/commitdiff
revision: include object-name.h
authorDerrick Stolee <stolee@gmail.com>
Thu, 26 Mar 2026 15:14:49 +0000 (15:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Mar 2026 16:38:06 +0000 (09:38 -0700)
The REV_INFO_INIT macro includes a use of the DEFAULT_ABBREV macro, which is
defined in object-name.h. Include it in revision.h so consumers of
REV_INFO_INIT do not need to include this hidden dependency.

Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.h

index 69242ecb189a527db53cb1f3f5a7616f98ff9227..584f1338b5e323820783a20372095a235f03e4e6 100644 (file)
@@ -4,6 +4,7 @@
 #include "commit.h"
 #include "grep.h"
 #include "notes.h"
+#include "object-name.h"
 #include "oidset.h"
 #include "pretty.h"
 #include "diff.h"