diff options
author | Calvin Wan <calvinwan@google.com> | 2023-06-06 19:48:41 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-12 20:49:36 (GMT) |
commit | f94018506c6103331a0183d78b206f39cf739ec3 (patch) | |
tree | 4d46cf1c422bf44be5d035ed73068df9184970b1 /pretty.c | |
parent | f89854362cbe60371605dac3ae542109218ef1f3 (diff) | |
download | git-f94018506c6103331a0183d78b206f39cf739ec3.zip git-f94018506c6103331a0183d78b206f39cf739ec3.tar.gz git-f94018506c6103331a0183d78b206f39cf739ec3.tar.bz2 |
object-name: move related functions to object-name
Move object-name-related functions from strbuf.[ch] to object-name.[ch]
so that strbuf is focused on string manipulation routines with minimal
dependencies.
dir.h relied on the forward declration of the repository struct in
strbuf.h. Since that is removed in this patch, add the forward
declaration to dir.h.
Signed-off-by: Calvin Wan <calvinwan@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.c')
-rw-r--r-- | pretty.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -18,6 +18,7 @@ #include "gpg-interface.h" #include "trailer.h" #include "run-command.h" +#include "object-name.h" /* * The limit for formatting directives, which enable the caller to append |