Skip to content

Commit 1560b58

Browse files
authored
Merge pull request libgit2#4288 from pks-t/pks/include-fixups
Include fixups
2 parents 6be167f + 0c7f49d commit 1560b58

File tree

238 files changed

+614
-254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+614
-254
lines changed

deps/zlib/zconf.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
#ifndef ZCONF_H
99
#define ZCONF_H
1010

11-
#include "../../src/common.h"
11+
#include "../../include/git2/types.h"
12+
#include <stdarg.h>
1213

1314
/* Jeez, don't complain about non-prototype
1415
* forms, we didn't write zlib */

src/annotated_commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
77

8-
#include "common.h"
98
#include "annotated_commit.h"
9+
1010
#include "refs.h"
1111
#include "cache.h"
1212

src/annotated_commit.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef INCLUDE_annotated_commit_h__
88
#define INCLUDE_annotated_commit_h__
99

10+
#include "common.h"
11+
1012
#include "oidarray.h"
1113

1214
#include "git2/oid.h"

src/apply.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
77

8+
#include "apply.h"
9+
810
#include <assert.h>
911

1012
#include "git2/patch.h"
1113
#include "git2/filter.h"
1214
#include "array.h"
1315
#include "patch.h"
1416
#include "fileops.h"
15-
#include "apply.h"
1617
#include "delta.h"
1718
#include "zstream.h"
1819

src/apply.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef INCLUDE_apply_h__
88
#define INCLUDE_apply_h__
99

10+
#include "common.h"
11+
1012
#include "git2/patch.h"
1113
#include "buffer.h"
1214

src/attr.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
#include "common.h"
1+
/*
2+
* Copyright (C) the libgit2 contributors. All rights reserved.
3+
*
4+
* This file is part of libgit2, distributed under the GNU GPL v2 with
5+
* a Linking Exception. For full terms see the included COPYING file.
6+
*/
7+
8+
#include "attr.h"
9+
210
#include "repository.h"
311
#include "sysdir.h"
412
#include "config.h"

src/attr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef INCLUDE_attr_h__
88
#define INCLUDE_attr_h__
99

10+
#include "common.h"
11+
1012
#include "attr_file.h"
1113
#include "attrcache.h"
1214

src/attr_file.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
#include "common.h"
1+
/*
2+
* Copyright (C) the libgit2 contributors. All rights reserved.
3+
*
4+
* This file is part of libgit2, distributed under the GNU GPL v2 with
5+
* a Linking Exception. For full terms see the included COPYING file.
6+
*/
7+
8+
#include "attr_file.h"
9+
210
#include "repository.h"
311
#include "filebuf.h"
4-
#include "attr_file.h"
512
#include "attrcache.h"
613
#include "git2/blob.h"
714
#include "git2/tree.h"

src/attr_file.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef INCLUDE_attr_file_h__
88
#define INCLUDE_attr_file_h__
99

10+
#include "common.h"
11+
1012
#include "git2/oid.h"
1113
#include "git2/attr.h"
1214
#include "vector.h"

src/attrcache.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
#include "common.h"
1+
/*
2+
* Copyright (C) the libgit2 contributors. All rights reserved.
3+
*
4+
* This file is part of libgit2, distributed under the GNU GPL v2 with
5+
* a Linking Exception. For full terms see the included COPYING file.
6+
*/
7+
8+
#include "attrcache.h"
9+
210
#include "repository.h"
311
#include "attr_file.h"
412
#include "config.h"

0 commit comments

Comments
 (0)