Skip to content

Commit 30e4367

Browse files
committed
Move header files to src/
This is not a C library, so we don't have a public C API to expose.
1 parent 83874bd commit 30e4367

38 files changed

+96
-96
lines changed

src/blob.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727

2828
#define PY_SSIZE_T_CLEAN
2929
#include <Python.h>
30-
#include <pygit2/utils.h>
31-
#include <pygit2/object.h>
32-
#include <pygit2/blob.h>
30+
#include "utils.h"
31+
#include "object.h"
32+
#include "blob.h"
3333

3434

3535
PyDoc_STRVAR(Blob_size__doc__, "Size.");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#define PY_SSIZE_T_CLEAN
3232
#include <Python.h>
3333
#include <git2.h>
34-
#include <pygit2/types.h>
34+
#include "types.h"
3535

3636
PyObject* Blob_get_size(Blob *self);
3737

src/commit.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727

2828
#define PY_SSIZE_T_CLEAN
2929
#include <Python.h>
30-
#include <pygit2/error.h>
31-
#include <pygit2/utils.h>
32-
#include <pygit2/signature.h>
33-
#include <pygit2/commit.h>
30+
#include "error.h"
31+
#include "utils.h"
32+
#include "signature.h"
33+
#include "commit.h"
3434

3535
extern PyTypeObject TreeType;
3636

File renamed without changes.

src/config.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727

2828
#define PY_SSIZE_T_CLEAN
2929
#include <Python.h>
30-
#include <pygit2/error.h>
31-
#include <pygit2/types.h>
32-
#include <pygit2/utils.h>
33-
#include <pygit2/config.h>
30+
#include "error.h"
31+
#include "types.h"
32+
#include "utils.h"
33+
#include "config.h"
3434

3535
extern PyTypeObject ConfigType;
3636

File renamed without changes.

src/diff.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
#define PY_SSIZE_T_CLEAN
2929
#include <Python.h>
3030
#include <structmember.h>
31-
#include <pygit2/error.h>
32-
#include <pygit2/types.h>
33-
#include <pygit2/utils.h>
34-
#include <pygit2/diff.h>
31+
#include "error.h"
32+
#include "types.h"
33+
#include "utils.h"
34+
#include "diff.h"
3535

3636
extern PyObject *GitError;
3737

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#define PY_SSIZE_T_CLEAN
3232
#include <Python.h>
3333
#include <git2.h>
34-
#include <pygit2/types.h>
34+
#include "types.h"
3535

3636
#define DIFF_CHECK_TYPES(_x, _y, _type_x, _type_y) \
3737
PyObject_TypeCheck(_x, _type_x) && \

src/error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* Boston, MA 02110-1301, USA.
2626
*/
2727

28-
#include <pygit2/error.h>
28+
#include "error.h"
2929

3030
PyObject *GitError;
3131

File renamed without changes.

0 commit comments

Comments
 (0)