revision: include object-name.h

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>

Derrick Stolee committed Mar 26, 2026 at 15:14 UTC 50da232312dc753ba6352995399bed5e9e28d926
1 file changed +1
revision.h
+1
@@ -4,6 +4,7 @@
4 #include "commit.h"
5 #include "grep.h"
6 #include "notes.h"
7 +#include "object-name.h"
8 #include "oidset.h"
9 #include "pretty.h"
10 #include "diff.h"