Commit 1560b580 by Edward Thomson Committed by GitHub

Merge pull request #4288 from pks-t/pks/include-fixups

Include fixups
parents 6be167f1 0c7f49dd
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
#ifndef ZCONF_H #ifndef ZCONF_H
#define ZCONF_H #define ZCONF_H
#include "../../src/common.h" #include "../../include/git2/types.h"
#include <stdarg.h>
/* Jeez, don't complain about non-prototype /* Jeez, don't complain about non-prototype
* forms, we didn't write zlib */ * forms, we didn't write zlib */
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "annotated_commit.h" #include "annotated_commit.h"
#include "refs.h" #include "refs.h"
#include "cache.h" #include "cache.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_annotated_commit_h__ #ifndef INCLUDE_annotated_commit_h__
#define INCLUDE_annotated_commit_h__ #define INCLUDE_annotated_commit_h__
#include "common.h"
#include "oidarray.h" #include "oidarray.h"
#include "git2/oid.h" #include "git2/oid.h"
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "apply.h"
#include <assert.h> #include <assert.h>
#include "git2/patch.h" #include "git2/patch.h"
...@@ -12,7 +14,6 @@ ...@@ -12,7 +14,6 @@
#include "array.h" #include "array.h"
#include "patch.h" #include "patch.h"
#include "fileops.h" #include "fileops.h"
#include "apply.h"
#include "delta.h" #include "delta.h"
#include "zstream.h" #include "zstream.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_apply_h__ #ifndef INCLUDE_apply_h__
#define INCLUDE_apply_h__ #define INCLUDE_apply_h__
#include "common.h"
#include "git2/patch.h" #include "git2/patch.h"
#include "buffer.h" #include "buffer.h"
......
#include "common.h" /*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "attr.h"
#include "repository.h" #include "repository.h"
#include "sysdir.h" #include "sysdir.h"
#include "config.h" #include "config.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_attr_h__ #ifndef INCLUDE_attr_h__
#define INCLUDE_attr_h__ #define INCLUDE_attr_h__
#include "common.h"
#include "attr_file.h" #include "attr_file.h"
#include "attrcache.h" #include "attrcache.h"
......
#include "common.h" /*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "attr_file.h"
#include "repository.h" #include "repository.h"
#include "filebuf.h" #include "filebuf.h"
#include "attr_file.h"
#include "attrcache.h" #include "attrcache.h"
#include "git2/blob.h" #include "git2/blob.h"
#include "git2/tree.h" #include "git2/tree.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_attr_file_h__ #ifndef INCLUDE_attr_file_h__
#define INCLUDE_attr_file_h__ #define INCLUDE_attr_file_h__
#include "common.h"
#include "git2/oid.h" #include "git2/oid.h"
#include "git2/attr.h" #include "git2/attr.h"
#include "vector.h" #include "vector.h"
......
#include "common.h" /*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "attrcache.h"
#include "repository.h" #include "repository.h"
#include "attr_file.h" #include "attr_file.h"
#include "config.h" #include "config.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_attrcache_h__ #ifndef INCLUDE_attrcache_h__
#define INCLUDE_attrcache_h__ #define INCLUDE_attrcache_h__
#include "common.h"
#include "attr_file.h" #include "attr_file.h"
#include "strmap.h" #include "strmap.h"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include "blame.h" #include "blame.h"
#include "git2/commit.h" #include "git2/commit.h"
#include "git2/revparse.h" #include "git2/revparse.h"
#include "git2/revwalk.h" #include "git2/revwalk.h"
......
#ifndef INCLUDE_blame_h__ #ifndef INCLUDE_blame_h__
#define INCLUDE_blame_h__ #define INCLUDE_blame_h__
#include "git2/blame.h"
#include "common.h" #include "common.h"
#include "git2/blame.h"
#include "vector.h" #include "vector.h"
#include "diff.h" #include "diff.h"
#include "array.h" #include "array.h"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include "blame_git.h" #include "blame_git.h"
#include "commit.h" #include "commit.h"
#include "blob.h" #include "blob.h"
#include "xdiff/xinclude.h" #include "xdiff/xinclude.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_blame_git__ #ifndef INCLUDE_blame_git__
#define INCLUDE_blame_git__ #define INCLUDE_blame_git__
#include "common.h"
#include "blame.h" #include "blame.h"
int git_blame__get_origin( int git_blame__get_origin(
......
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "blob.h"
#include "git2/common.h" #include "git2/common.h"
#include "git2/object.h" #include "git2/object.h"
#include "git2/repository.h" #include "git2/repository.h"
#include "git2/odb_backend.h" #include "git2/odb_backend.h"
#include "common.h"
#include "filebuf.h" #include "filebuf.h"
#include "blob.h"
#include "filter.h" #include "filter.h"
#include "buf_text.h" #include "buf_text.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_blob_h__ #ifndef INCLUDE_blob_h__
#define INCLUDE_blob_h__ #define INCLUDE_blob_h__
#include "common.h"
#include "git2/blob.h" #include "git2/blob.h"
#include "repository.h" #include "repository.h"
#include "odb.h" #include "odb.h"
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h" #include "branch.h"
#include "commit.h" #include "commit.h"
#include "tag.h" #include "tag.h"
#include "config.h" #include "config.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_branch_h__ #ifndef INCLUDE_branch_h__
#define INCLUDE_branch_h__ #define INCLUDE_branch_h__
#include "common.h"
#include "buffer.h" #include "buffer.h"
int git_branch_upstream__name( int git_branch_upstream__name(
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_buf_text_h__ #ifndef INCLUDE_buf_text_h__
#define INCLUDE_buf_text_h__ #define INCLUDE_buf_text_h__
#include "common.h"
#include "buffer.h" #include "buffer.h"
typedef enum { typedef enum {
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h" #include "cache.h"
#include "repository.h" #include "repository.h"
#include "commit.h" #include "commit.h"
#include "thread-utils.h" #include "thread-utils.h"
#include "util.h" #include "util.h"
#include "cache.h"
#include "odb.h" #include "odb.h"
#include "object.h" #include "object.h"
#include "git2/oid.h" #include "git2/oid.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_cache_h__ #ifndef INCLUDE_cache_h__
#define INCLUDE_cache_h__ #define INCLUDE_cache_h__
#include "common.h"
#include "git2/common.h" #include "git2/common.h"
#include "git2/oid.h" #include "git2/oid.h"
#include "git2/odb.h" #include "git2/odb.h"
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include <assert.h>
#include "checkout.h" #include "checkout.h"
#include <assert.h>
#include "git2/repository.h" #include "git2/repository.h"
#include "git2/refs.h" #include "git2/refs.h"
#include "git2/tree.h" #include "git2/tree.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_checkout_h__ #ifndef INCLUDE_checkout_h__
#define INCLUDE_checkout_h__ #define INCLUDE_checkout_h__
#include "common.h"
#include "git2/checkout.h" #include "git2/checkout.h"
#include "iterator.h" #include "iterator.h"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include "common.h" #include "common.h"
#include "repository.h" #include "repository.h"
#include "filebuf.h" #include "filebuf.h"
#include "merge.h" #include "merge.h"
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "clone.h"
#include <assert.h> #include <assert.h>
#include "git2/clone.h" #include "git2/clone.h"
...@@ -16,7 +18,6 @@ ...@@ -16,7 +18,6 @@
#include "git2/commit.h" #include "git2/commit.h"
#include "git2/tree.h" #include "git2/tree.h"
#include "common.h"
#include "remote.h" #include "remote.h"
#include "fileops.h" #include "fileops.h"
#include "refs.h" #include "refs.h"
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
#ifndef INCLUDE_clone_h__ #ifndef INCLUDE_clone_h__
#define INCLUDE_clone_h__ #define INCLUDE_clone_h__
#include "common.h"
#include "git2/clone.h"
extern int git_clone__should_clone_local(const char *url, git_clone_local_t local); extern int git_clone__should_clone_local(const char *url, git_clone_local_t local);
#endif #endif
...@@ -5,13 +5,14 @@ ...@@ -5,13 +5,14 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "commit.h"
#include "git2/common.h" #include "git2/common.h"
#include "git2/object.h" #include "git2/object.h"
#include "git2/repository.h" #include "git2/repository.h"
#include "git2/signature.h" #include "git2/signature.h"
#include "git2/sys/commit.h" #include "git2/sys/commit.h"
#include "common.h"
#include "odb.h" #include "odb.h"
#include "commit.h" #include "commit.h"
#include "signature.h" #include "signature.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_commit_h__ #ifndef INCLUDE_commit_h__
#define INCLUDE_commit_h__ #define INCLUDE_commit_h__
#include "common.h"
#include "git2/commit.h" #include "git2/commit.h"
#include "tree.h" #include "tree.h"
#include "repository.h" #include "repository.h"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
*/ */
#include "commit_list.h" #include "commit_list.h"
#include "common.h"
#include "revwalk.h" #include "revwalk.h"
#include "pool.h" #include "pool.h"
#include "odb.h" #include "odb.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_commit_list_h__ #ifndef INCLUDE_commit_list_h__
#define INCLUDE_commit_list_h__ #define INCLUDE_commit_list_h__
#include "common.h"
#include "git2/oid.h" #include "git2/oid.h"
#define PARENT1 (1 << 0) #define PARENT1 (1 << 0)
......
...@@ -47,10 +47,6 @@ ...@@ -47,10 +47,6 @@
# ifdef GIT_THREADS # ifdef GIT_THREADS
# include "win32/thread.h" # include "win32/thread.h"
# endif # endif
# if defined(GIT_MSVC_CRTDBG)
# include "win32/w32_stack.h"
# include "win32/w32_crtdbg_stacktrace.h"
# endif
#else #else
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "sysdir.h"
#include "config.h" #include "config.h"
#include "sysdir.h"
#include "git2/config.h" #include "git2/config.h"
#include "git2/sys/config.h" #include "git2/sys/config.h"
#include "vector.h" #include "vector.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_config_h__ #ifndef INCLUDE_config_h__
#define INCLUDE_config_h__ #define INCLUDE_config_h__
#include "common.h"
#include "git2.h" #include "git2.h"
#include "git2/config.h" #include "git2/config.h"
#include "vector.h" #include "vector.h"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include "common.h" #include "common.h"
#include "fileops.h" #include "fileops.h"
#include "repository.h" #include "repository.h"
#include "config.h" #include "config.h"
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h" #include "config_file.h"
#include "config.h" #include "config.h"
#include "filebuf.h" #include "filebuf.h"
#include "sysdir.h" #include "sysdir.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_config_file_h__ #ifndef INCLUDE_config_file_h__
#define INCLUDE_config_file_h__ #define INCLUDE_config_file_h__
#include "common.h"
#include "git2/sys/config.h" #include "git2/sys/config.h"
#include "git2/config.h" #include "git2/config.h"
......
...@@ -5,12 +5,13 @@ ...@@ -5,12 +5,13 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "git2/attr.h" #include "git2/attr.h"
#include "git2/blob.h" #include "git2/blob.h"
#include "git2/index.h" #include "git2/index.h"
#include "git2/sys/filter.h" #include "git2/sys/filter.h"
#include "common.h"
#include "fileops.h" #include "fileops.h"
#include "hash.h" #include "hash.h"
#include "filter.h" #include "filter.h"
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "curl_stream.h"
#ifdef GIT_CURL #ifdef GIT_CURL
#include <curl/curl.h> #include <curl/curl.h>
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_curl_stream_h__ #ifndef INCLUDE_curl_stream_h__
#define INCLUDE_curl_stream_h__ #define INCLUDE_curl_stream_h__
#include "common.h"
#include "git2/sys/stream.h" #include "git2/sys/stream.h"
extern int git_curl_stream_new(git_stream **out, const char *host, const char *port); extern int git_curl_stream_new(git_stream **out, const char *host, const char *port);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#define INCLUDE_git_delta_h__ #define INCLUDE_git_delta_h__
#include "common.h" #include "common.h"
#include "pack.h" #include "pack.h"
typedef struct git_delta_index git_delta_index; typedef struct git_delta_index git_delta_index;
......
...@@ -4,12 +4,14 @@ ...@@ -4,12 +4,14 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "git2/describe.h" #include "git2/describe.h"
#include "git2/strarray.h" #include "git2/strarray.h"
#include "git2/diff.h" #include "git2/diff.h"
#include "git2/status.h" #include "git2/status.h"
#include "common.h"
#include "commit.h" #include "commit.h"
#include "commit_list.h" #include "commit_list.h"
#include "oidmap.h" #include "oidmap.h"
......
...@@ -4,9 +4,10 @@ ...@@ -4,9 +4,10 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "git2/version.h"
#include "common.h"
#include "diff.h" #include "diff.h"
#include "git2/version.h"
#include "diff_generate.h" #include "diff_generate.h"
#include "patch.h" #include "patch.h"
#include "commit.h" #include "commit.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_diff_h__ #ifndef INCLUDE_diff_h__
#define INCLUDE_diff_h__ #define INCLUDE_diff_h__
#include "common.h"
#include "git2/diff.h" #include "git2/diff.h"
#include "git2/patch.h" #include "git2/patch.h"
#include "git2/sys/diff.h" #include "git2/sys/diff.h"
......
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "diff_driver.h"
#include "git2/attr.h" #include "git2/attr.h"
#include "diff.h" #include "diff.h"
#include "diff_driver.h"
#include "strmap.h" #include "strmap.h"
#include "map.h" #include "map.h"
#include "buf_text.h" #include "buf_text.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#define INCLUDE_diff_driver_h__ #define INCLUDE_diff_driver_h__
#include "common.h" #include "common.h"
#include "buffer.h" #include "buffer.h"
typedef struct git_diff_driver_registry git_diff_driver_registry; typedef struct git_diff_driver_registry git_diff_driver_registry;
......
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "diff_file.h"
#include "git2/blob.h" #include "git2/blob.h"
#include "git2/submodule.h" #include "git2/submodule.h"
#include "diff.h" #include "diff.h"
#include "diff_generate.h" #include "diff_generate.h"
#include "diff_file.h"
#include "odb.h" #include "odb.h"
#include "fileops.h" #include "fileops.h"
#include "filter.h" #include "filter.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#define INCLUDE_diff_file_h__ #define INCLUDE_diff_file_h__
#include "common.h" #include "common.h"
#include "diff.h" #include "diff.h"
#include "diff_driver.h" #include "diff_driver.h"
#include "map.h" #include "map.h"
......
...@@ -4,9 +4,10 @@ ...@@ -4,9 +4,10 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "diff.h"
#include "diff_generate.h" #include "diff_generate.h"
#include "diff.h"
#include "patch_generate.h" #include "patch_generate.h"
#include "fileops.h" #include "fileops.h"
#include "config.h" #include "config.h"
......
...@@ -7,6 +7,12 @@ ...@@ -7,6 +7,12 @@
#ifndef INCLUDE_diff_generate_h__ #ifndef INCLUDE_diff_generate_h__
#define INCLUDE_diff_generate_h__ #define INCLUDE_diff_generate_h__
#include "common.h"
#include "diff.h"
#include "pool.h"
#include "index.h"
enum { enum {
GIT_DIFFCAPS_HAS_SYMLINKS = (1 << 0), /* symlinks on platform? */ GIT_DIFFCAPS_HAS_SYMLINKS = (1 << 0), /* symlinks on platform? */
GIT_DIFFCAPS_IGNORE_STAT = (1 << 1), /* use stat? */ GIT_DIFFCAPS_IGNORE_STAT = (1 << 1), /* use stat? */
......
...@@ -4,9 +4,10 @@ ...@@ -4,9 +4,10 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "diff.h"
#include "diff_parse.h" #include "diff_parse.h"
#include "diff.h"
#include "patch.h" #include "patch.h"
#include "patch_parse.h" #include "patch_parse.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_diff_parse_h__ #ifndef INCLUDE_diff_parse_h__
#define INCLUDE_diff_parse_h__ #define INCLUDE_diff_parse_h__
#include "common.h"
#include "diff.h" #include "diff.h"
typedef struct { typedef struct {
......
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h" #include "common.h"
#include "diff.h" #include "diff.h"
#include "diff_file.h" #include "diff_file.h"
#include "patch_generate.h" #include "patch_generate.h"
......
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h" #include "common.h"
#include "vector.h" #include "vector.h"
#include "diff.h" #include "diff.h"
#include "patch_generate.h" #include "patch_generate.h"
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "diff_tform.h"
#include "git2/config.h" #include "git2/config.h"
#include "git2/blob.h" #include "git2/blob.h"
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
#ifndef INCLUDE_diff_tform_h__ #ifndef INCLUDE_diff_tform_h__
#define INCLUDE_diff_tform_h__ #define INCLUDE_diff_tform_h__
#include "common.h"
#include "diff_file.h"
extern int git_diff_find_similar__hashsig_for_file( extern int git_diff_find_similar__hashsig_for_file(
void **out, const git_diff_file *f, const char *path, void *p); void **out, const git_diff_file *f, const char *path, void *p);
......
...@@ -4,11 +4,12 @@ ...@@ -4,11 +4,12 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "diff_xdiff.h"
#include "git2/errors.h" #include "git2/errors.h"
#include "common.h"
#include "diff.h" #include "diff.h"
#include "diff_driver.h" #include "diff_driver.h"
#include "diff_xdiff.h"
#include "patch_generate.h" #include "patch_generate.h"
static int git_xdiff_scan_int(const char **str, int *value) static int git_xdiff_scan_int(const char **str, int *value)
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_diff_xdiff_h__ #ifndef INCLUDE_diff_xdiff_h__
#define INCLUDE_diff_xdiff_h__ #define INCLUDE_diff_xdiff_h__
#include "common.h"
#include "diff.h" #include "diff.h"
#include "xdiff/xdiff.h" #include "xdiff/xdiff.h"
#include "patch_generate.h" #include "patch_generate.h"
......
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h" #include "common.h"
#include "global.h" #include "global.h"
#include "posix.h" #include "posix.h"
#include "buffer.h" #include "buffer.h"
......
...@@ -5,16 +5,16 @@ ...@@ -5,16 +5,16 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "fetch.h"
#include "git2/oid.h" #include "git2/oid.h"
#include "git2/refs.h" #include "git2/refs.h"
#include "git2/revwalk.h" #include "git2/revwalk.h"
#include "git2/transport.h" #include "git2/transport.h"
#include "common.h"
#include "remote.h" #include "remote.h"
#include "refspec.h" #include "refspec.h"
#include "pack.h" #include "pack.h"
#include "fetch.h"
#include "netops.h" #include "netops.h"
#include "repository.h" #include "repository.h"
#include "refs.h" #include "refs.h"
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
#ifndef INCLUDE_fetch_h__ #ifndef INCLUDE_fetch_h__
#define INCLUDE_fetch_h__ #define INCLUDE_fetch_h__
#include "common.h"
#include "git2/remote.h"
#include "netops.h" #include "netops.h"
int git_fetch_negotiate(git_remote *remote, const git_fetch_options *opts); int git_fetch_negotiate(git_remote *remote, const git_fetch_options *opts);
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "fetchhead.h"
#include "git2/types.h" #include "git2/types.h"
#include "git2/oid.h" #include "git2/oid.h"
#include "fetchhead.h"
#include "common.h"
#include "buffer.h" #include "buffer.h"
#include "fileops.h" #include "fileops.h"
#include "filebuf.h" #include "filebuf.h"
......
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
#ifndef INCLUDE_fetchhead_h__ #ifndef INCLUDE_fetchhead_h__
#define INCLUDE_fetchhead_h__ #define INCLUDE_fetchhead_h__
#include "common.h"
#include "oid.h"
#include "vector.h" #include "vector.h"
typedef struct git_fetchhead_ref { typedef struct git_fetchhead_ref {
......
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "filebuf.h" #include "filebuf.h"
#include "fileops.h" #include "fileops.h"
static const size_t WRITE_BUFFER_SIZE = (4096 * 2); static const size_t WRITE_BUFFER_SIZE = (4096 * 2);
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_filebuf_h__ #ifndef INCLUDE_filebuf_h__
#define INCLUDE_filebuf_h__ #define INCLUDE_filebuf_h__
#include "common.h"
#include "fileops.h" #include "fileops.h"
#include "hash.h" #include "hash.h"
#include <zlib.h> #include <zlib.h>
......
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "fileops.h" #include "fileops.h"
#include "global.h" #include "global.h"
#include "strmap.h" #include "strmap.h"
#include <ctype.h> #include <ctype.h>
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#define INCLUDE_fileops_h__ #define INCLUDE_fileops_h__
#include "common.h" #include "common.h"
#include "map.h" #include "map.h"
#include "posix.h" #include "posix.h"
#include "path.h" #include "path.h"
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "filter.h"
#include "common.h" #include "common.h"
#include "fileops.h" #include "fileops.h"
#include "hash.h" #include "hash.h"
#include "filter.h"
#include "repository.h" #include "repository.h"
#include "global.h" #include "global.h"
#include "git2/sys/filter.h" #include "git2/sys/filter.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#define INCLUDE_filter_h__ #define INCLUDE_filter_h__
#include "common.h" #include "common.h"
#include "attr_file.h" #include "attr_file.h"
#include "git2/filter.h" #include "git2/filter.h"
......
...@@ -44,12 +44,12 @@ ...@@ -44,12 +44,12 @@
* Compares a filename or pathname to a pattern. * Compares a filename or pathname to a pattern.
*/ */
#include "fnmatch.h"
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "fnmatch.h"
#define EOS '\0' #define EOS '\0'
#define RANGE_MATCH 1 #define RANGE_MATCH 1
......
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "global.h" #include "global.h"
#include "hash.h" #include "hash.h"
#include "sysdir.h" #include "sysdir.h"
#include "filter.h" #include "filter.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#define INCLUDE_global_h__ #define INCLUDE_global_h__
#include "common.h" #include "common.h"
#include "mwindow.h" #include "mwindow.h"
#include "hash.h" #include "hash.h"
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "revwalk.h" #include "revwalk.h"
#include "merge.h" #include "merge.h"
#include "git2/graph.h" #include "git2/graph.h"
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "hash.h" #include "hash.h"
int git_hash_buf(git_oid *out, const void *data, size_t len) int git_hash_buf(git_oid *out, const void *data, size_t len)
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_hash_h__ #ifndef INCLUDE_hash_h__
#define INCLUDE_hash_h__ #define INCLUDE_hash_h__
#include "common.h"
#include "git2/oid.h" #include "git2/oid.h"
typedef struct git_hash_prov git_hash_prov; typedef struct git_hash_prov git_hash_prov;
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h" #include "hash_generic.h"
#include "hash.h" #include "hash.h"
#include "hash/hash_generic.h"
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
#ifndef INCLUDE_hash_generic_h__ #ifndef INCLUDE_hash_generic_h__
#define INCLUDE_hash_generic_h__ #define INCLUDE_hash_generic_h__
#include "common.h"
#include "hash.h" #include "hash.h"
struct git_hash_ctx { struct git_hash_ctx {
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h" #include "hash_win32.h"
#include "global.h" #include "global.h"
#include "hash.h" #include "hash.h"
#include "hash/hash_win32.h"
#include <wincrypt.h> #include <wincrypt.h>
#include <strsafe.h> #include <strsafe.h>
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#define INCLUDE_hash_win32_h__ #define INCLUDE_hash_win32_h__
#include "common.h" #include "common.h"
#include "hash.h" #include "hash.h"
#include <wincrypt.h> #include <wincrypt.h>
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "git2/sys/hashsig.h" #include "git2/sys/hashsig.h"
#include "fileops.h" #include "fileops.h"
#include "util.h" #include "util.h"
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "git2/sys/filter.h" #include "git2/sys/filter.h"
#include "filter.h" #include "filter.h"
#include "buffer.h" #include "buffer.h"
......
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
#ifndef INCLUDE_idxmap_h__ #ifndef INCLUDE_idxmap_h__
#define INCLUDE_idxmap_h__ #define INCLUDE_idxmap_h__
#include <ctype.h>
#include "common.h" #include "common.h"
#include <ctype.h>
#include "git2/index.h" #include "git2/index.h"
#define kmalloc git__malloc #define kmalloc git__malloc
......
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "ignore.h"
#include "git2/ignore.h" #include "git2/ignore.h"
#include "common.h" #include "common.h"
#include "ignore.h"
#include "attrcache.h" #include "attrcache.h"
#include "path.h" #include "path.h"
#include "config.h" #include "config.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_ignore_h__ #ifndef INCLUDE_ignore_h__
#define INCLUDE_ignore_h__ #define INCLUDE_ignore_h__
#include "common.h"
#include "repository.h" #include "repository.h"
#include "vector.h" #include "vector.h"
#include "attr_file.h" #include "attr_file.h"
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "index.h"
#include <stddef.h> #include <stddef.h>
#include "common.h"
#include "repository.h" #include "repository.h"
#include "index.h"
#include "tree.h" #include "tree.h"
#include "tree-cache.h" #include "tree-cache.h"
#include "hash.h" #include "hash.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_index_h__ #ifndef INCLUDE_index_h__
#define INCLUDE_index_h__ #define INCLUDE_index_h__
#include "common.h"
#include "fileops.h" #include "fileops.h"
#include "filebuf.h" #include "filebuf.h"
#include "vector.h" #include "vector.h"
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "indexer.h"
#include "git2/indexer.h" #include "git2/indexer.h"
#include "git2/object.h" #include "git2/object.h"
#include "common.h"
#include "pack.h" #include "pack.h"
#include "mwindow.h" #include "mwindow.h"
#include "posix.h" #include "posix.h"
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
#ifndef INCLUDE_indexer_h__ #ifndef INCLUDE_indexer_h__
#define INCLUDE_indexer_h__ #define INCLUDE_indexer_h__
extern int git_indexer__set_fsync(git_indexer *idx, int do_fsync); #include "common.h"
#include "git2/indexer.h"
extern void git_indexer__set_fsync(git_indexer *idx, int do_fsync);
#endif #endif
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include "iterator.h" #include "iterator.h"
#include "tree.h" #include "tree.h"
#include "index.h" #include "index.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#define INCLUDE_iterator_h__ #define INCLUDE_iterator_h__
#include "common.h" #include "common.h"
#include "git2/index.h" #include "git2/index.h"
#include "vector.h" #include "vector.h"
#include "buffer.h" #include "buffer.h"
......
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h" #include "merge.h"
#include "posix.h" #include "posix.h"
#include "buffer.h" #include "buffer.h"
#include "repository.h" #include "repository.h"
#include "revwalk.h" #include "revwalk.h"
#include "commit_list.h" #include "commit_list.h"
#include "merge.h"
#include "path.h" #include "path.h"
#include "refs.h" #include "refs.h"
#include "object.h" #include "object.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_merge_h__ #ifndef INCLUDE_merge_h__
#define INCLUDE_merge_h__ #define INCLUDE_merge_h__
#include "common.h"
#include "vector.h" #include "vector.h"
#include "commit_list.h" #include "commit_list.h"
#include "pool.h" #include "pool.h"
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h" #include "merge_driver.h"
#include "vector.h" #include "vector.h"
#include "global.h" #include "global.h"
#include "merge.h" #include "merge.h"
#include "merge_driver.h"
#include "git2/merge.h" #include "git2/merge.h"
#include "git2/sys/merge.h" #include "git2/sys/merge.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_merge_driver_h__ #ifndef INCLUDE_merge_driver_h__
#define INCLUDE_merge_driver_h__ #define INCLUDE_merge_driver_h__
#include "common.h"
#include "git2/merge.h" #include "git2/merge.h"
#include "git2/index.h" #include "git2/index.h"
#include "git2/sys/merge.h" #include "git2/sys/merge.h"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include "common.h" #include "common.h"
#include "repository.h" #include "repository.h"
#include "posix.h" #include "posix.h"
#include "fileops.h" #include "fileops.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_message_h__ #ifndef INCLUDE_message_h__
#define INCLUDE_message_h__ #define INCLUDE_message_h__
#include "common.h"
#include "git2/message.h" #include "git2/message.h"
#include "buffer.h" #include "buffer.h"
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "common.h"
#include "mwindow.h" #include "mwindow.h"
#include "vector.h" #include "vector.h"
#include "fileops.h" #include "fileops.h"
#include "map.h" #include "map.h"
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
#ifndef INCLUDE_mwindow__ #ifndef INCLUDE_mwindow__
#define INCLUDE_mwindow__ #define INCLUDE_mwindow__
#include "common.h"
#include "map.h" #include "map.h"
#include "vector.h" #include "vector.h"
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include "netops.h"
#include <ctype.h> #include <ctype.h>
#include "git2/errors.h" #include "git2/errors.h"
#include "common.h"
#include "netops.h"
#include "posix.h" #include "posix.h"
#include "buffer.h" #include "buffer.h"
#include "http_parser.h" #include "http_parser.h"
......
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
#ifndef INCLUDE_netops_h__ #ifndef INCLUDE_netops_h__
#define INCLUDE_netops_h__ #define INCLUDE_netops_h__
#include "posix.h"
#include "common.h" #include "common.h"
#include "posix.h"
#include "stream.h" #include "stream.h"
#ifdef GIT_OPENSSL #ifdef GIT_OPENSSL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment