diff options
| author | SZEDER Gábor <szeder.dev@gmail.com> | 2020-06-05 13:00:28 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-06-08 12:28:49 -0700 |
| commit | fa7965309e709e6dcd59c38fc6743d17d82d538b (patch) | |
| tree | 60eac076360231904e29f738273b284291c595c7 /git-gui/git-gui.sh | |
| parent | diff.h: drop diff_tree_oid() & friends' return value (diff) | |
| download | git-fa7965309e709e6dcd59c38fc6743d17d82d538b.tar.gz git-fa7965309e709e6dcd59c38fc6743d17d82d538b.zip | |
commit-graph: clean up #includes
Our CodingGuidelines says that it's sufficient to include one of
'git-compat-util.h' and 'cache.h', but both 'commit-graph.c' and
'commit-graph.h' include both. Let's include only 'git-compat-util.h'
to loose a bunch of unnecessary dependencies; but include 'hash.h',
because 'commit-graph.h' does require the definition of 'struct
object_id'.
'commit-graph.h' explicitly includes 'repository.h' and
'string-list.h', but only needs the declaration of a few structs from
them. Drop these includes and forward-declare the necessary structs
instead.
'commit-graph.c' includes 'dir.h', but doesn't actually use anything
from there, so let's drop that #include as well.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/git-gui.sh')
0 files changed, 0 insertions, 0 deletions
