Skip to content

Commit 8a676bd

Browse files
pks-tgitster
authored andcommitted
hash-ll: merge with "hash.h"
The "hash-ll.h" header was introduced via d1cbe1e (hash-ll.h: split out of hash.h to remove dependency on repository.h, 2023-04-22) to make explicit the split between hash-related functions that rely on the global `the_repository`, and those that don't. This split is no longer necessary now that we we have removed the reliance on `the_repository`. Merge "hash-ll.h" back into "hash.h". This causes some code units to not include "repository.h" anymore, which requires us to add some forward declarations. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 36026a0 commit 8a676bd

39 files changed

+400
-398
lines changed

apply.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef APPLY_H
22
#define APPLY_H
33

4-
#include "hash-ll.h"
4+
#include "hash.h"
55
#include "lockfile.h"
66
#include "string-list.h"
77
#include "strmap.h"

bloom.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "commit-graph.h"
77
#include "commit.h"
88
#include "commit-slab.h"
9+
#include "repository.h"
910

1011
define_commit_slab(bloom_filter_slab, struct bloom_filter);
1112

checkout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef CHECKOUT_H
22
#define CHECKOUT_H
33

4-
#include "hash-ll.h"
4+
#include "hash.h"
55

66
/*
77
* Check if the branch name uniquely matches a branch name on a remote

chunk-format.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef CHUNK_FORMAT_H
22
#define CHUNK_FORMAT_H
33

4-
#include "hash-ll.h"
4+
#include "hash.h"
55

66
struct hashfile;
77
struct chunkfile;

commit-graph.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ struct commit_graph *load_commit_graph_chain_fd_st(struct repository *r,
122122
struct commit_graph *read_commit_graph_one(struct repository *r,
123123
struct object_directory *odb);
124124

125+
struct repo_settings;
126+
125127
/*
126128
* Callers should initialize the repo_settings with prepare_repo_settings()
127129
* prior to calling parse_commit_graph().

compat/sha1-chunked.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "git-compat-util.h"
2-
#include "hash-ll.h"
2+
#include "hash.h"
33

44
int git_SHA1_Update_Chunked(platform_SHA_CTX *c, const void *data, size_t len)
55
{

convert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#ifndef CONVERT_H
55
#define CONVERT_H
66

7-
#include "hash-ll.h"
7+
#include "hash.h"
88
#include "string-list.h"
99

1010
struct index_state;

csum-file.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef CSUM_FILE_H
22
#define CSUM_FILE_H
33

4-
#include "hash-ll.h"
4+
#include "hash.h"
55
#include "write-or-die.h"
66

77
struct progress;

diff.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#ifndef DIFF_H
55
#define DIFF_H
66

7-
#include "hash-ll.h"
7+
#include "hash.h"
88
#include "pathspec.h"
99
#include "strbuf.h"
1010

diffcore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#ifndef DIFFCORE_H
55
#define DIFFCORE_H
66

7-
#include "hash-ll.h"
7+
#include "hash.h"
88

99
struct diff_options;
1010
struct mem_pool;

dir.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef DIR_H
22
#define DIR_H
33

4-
#include "hash-ll.h"
4+
#include "hash.h"
55
#include "hashmap.h"
66
#include "pathspec.h"
77
#include "statinfo.h"

0 commit comments

Comments
 (0)