Commit 0c7f49dd by Patrick Steinhardt

Make sure to always include "common.h" first

Next to including several files, our "common.h" header also declares
various macros which are then used throughout the project. As such, we
have to make sure to always include this file first in all
implementation files. Otherwise, we might encounter problems or even
silent behavioural differences due to macros or defines not being
defined as they should be. So in fact, our header and implementation
files should make sure to always include "common.h" first.

This commit does so by establishing a common include pattern. Header
files inside of "src" will now always include "common.h" as its first
other file, separated by a newline from all the other includes to make
it stand out as special. There are two cases for the implementation
files. If they do have a matching header file, they will always include
this one first, leading to "common.h" being transitively included as
first file. If they do not have a matching header file, they instead
include "common.h" as first file themselves.

This fixes the outlined problems and will become our standard practice
for header and source files inside of the "src/" from now on.
parent 2480d0eb
......@@ -5,8 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "annotated_commit.h"
#include "refs.h"
#include "cache.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_annotated_commit_h__
#define INCLUDE_annotated_commit_h__
#include "common.h"
#include "oidarray.h"
#include "git2/oid.h"
......
......@@ -5,6 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "apply.h"
#include <assert.h>
#include "git2/patch.h"
......@@ -12,7 +14,6 @@
#include "array.h"
#include "patch.h"
#include "fileops.h"
#include "apply.h"
#include "delta.h"
#include "zstream.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_apply_h__
#define INCLUDE_apply_h__
#include "common.h"
#include "git2/patch.h"
#include "buffer.h"
......
......@@ -5,7 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "attr.h"
#include "repository.h"
#include "sysdir.h"
#include "config.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_attr_h__
#define INCLUDE_attr_h__
#include "common.h"
#include "attr_file.h"
#include "attrcache.h"
......
......@@ -5,10 +5,10 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "attr_file.h"
#include "repository.h"
#include "filebuf.h"
#include "attr_file.h"
#include "attrcache.h"
#include "git2/blob.h"
#include "git2/tree.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_attr_file_h__
#define INCLUDE_attr_file_h__
#include "common.h"
#include "git2/oid.h"
#include "git2/attr.h"
#include "vector.h"
......
......@@ -5,7 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "attrcache.h"
#include "repository.h"
#include "attr_file.h"
#include "config.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_attrcache_h__
#define INCLUDE_attrcache_h__
#include "common.h"
#include "attr_file.h"
#include "strmap.h"
......
......@@ -6,6 +6,7 @@
*/
#include "blame.h"
#include "git2/commit.h"
#include "git2/revparse.h"
#include "git2/revwalk.h"
......
#ifndef INCLUDE_blame_h__
#define INCLUDE_blame_h__
#include "git2/blame.h"
#include "common.h"
#include "git2/blame.h"
#include "vector.h"
#include "diff.h"
#include "array.h"
......
......@@ -6,6 +6,7 @@
*/
#include "blame_git.h"
#include "commit.h"
#include "blob.h"
#include "xdiff/xinclude.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_blame_git__
#define INCLUDE_blame_git__
#include "common.h"
#include "blame.h"
int git_blame__get_origin(
......
......@@ -5,14 +5,14 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "blob.h"
#include "git2/common.h"
#include "git2/object.h"
#include "git2/repository.h"
#include "git2/odb_backend.h"
#include "common.h"
#include "filebuf.h"
#include "blob.h"
#include "filter.h"
#include "buf_text.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_blob_h__
#define INCLUDE_blob_h__
#include "common.h"
#include "git2/blob.h"
#include "repository.h"
#include "odb.h"
......
......@@ -5,7 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "branch.h"
#include "commit.h"
#include "tag.h"
#include "config.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_branch_h__
#define INCLUDE_branch_h__
#include "common.h"
#include "buffer.h"
int git_branch_upstream__name(
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_buf_text_h__
#define INCLUDE_buf_text_h__
#include "common.h"
#include "buffer.h"
typedef enum {
......
......@@ -5,12 +5,12 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "cache.h"
#include "repository.h"
#include "commit.h"
#include "thread-utils.h"
#include "util.h"
#include "cache.h"
#include "odb.h"
#include "object.h"
#include "git2/oid.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_cache_h__
#define INCLUDE_cache_h__
#include "common.h"
#include "git2/common.h"
#include "git2/oid.h"
#include "git2/odb.h"
......
......@@ -5,10 +5,10 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include <assert.h>
#include "checkout.h"
#include <assert.h>
#include "git2/repository.h"
#include "git2/refs.h"
#include "git2/tree.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_checkout_h__
#define INCLUDE_checkout_h__
#include "common.h"
#include "git2/checkout.h"
#include "iterator.h"
......
......@@ -6,6 +6,7 @@
*/
#include "common.h"
#include "repository.h"
#include "filebuf.h"
#include "merge.h"
......
......@@ -5,6 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "clone.h"
#include <assert.h>
#include "git2/clone.h"
......@@ -16,7 +18,6 @@
#include "git2/commit.h"
#include "git2/tree.h"
#include "common.h"
#include "remote.h"
#include "fileops.h"
#include "refs.h"
......
......@@ -7,6 +7,8 @@
#ifndef 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);
......
......@@ -5,13 +5,14 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "commit.h"
#include "git2/common.h"
#include "git2/object.h"
#include "git2/repository.h"
#include "git2/signature.h"
#include "git2/sys/commit.h"
#include "common.h"
#include "odb.h"
#include "commit.h"
#include "signature.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_commit_h__
#define INCLUDE_commit_h__
#include "common.h"
#include "git2/commit.h"
#include "tree.h"
#include "repository.h"
......
......@@ -6,7 +6,7 @@
*/
#include "commit_list.h"
#include "common.h"
#include "revwalk.h"
#include "pool.h"
#include "odb.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_commit_list_h__
#define INCLUDE_commit_list_h__
#include "common.h"
#include "git2/oid.h"
#define PARENT1 (1 << 0)
......
......@@ -5,9 +5,9 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "sysdir.h"
#include "config.h"
#include "sysdir.h"
#include "git2/config.h"
#include "git2/sys/config.h"
#include "vector.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_config_h__
#define INCLUDE_config_h__
#include "common.h"
#include "git2.h"
#include "git2/config.h"
#include "vector.h"
......
......@@ -6,6 +6,7 @@
*/
#include "common.h"
#include "fileops.h"
#include "repository.h"
#include "config.h"
......
......@@ -5,7 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "config_file.h"
#include "config.h"
#include "filebuf.h"
#include "sysdir.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_config_file_h__
#define INCLUDE_config_file_h__
#include "common.h"
#include "git2/sys/config.h"
#include "git2/config.h"
......
......@@ -5,12 +5,13 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "git2/attr.h"
#include "git2/blob.h"
#include "git2/index.h"
#include "git2/sys/filter.h"
#include "common.h"
#include "fileops.h"
#include "hash.h"
#include "filter.h"
......
......@@ -5,6 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "curl_stream.h"
#ifdef GIT_CURL
#include <curl/curl.h>
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_curl_stream_h__
#define INCLUDE_curl_stream_h__
#include "common.h"
#include "git2/sys/stream.h"
extern int git_curl_stream_new(git_stream **out, const char *host, const char *port);
......
......@@ -6,6 +6,7 @@
#define INCLUDE_git_delta_h__
#include "common.h"
#include "pack.h"
typedef struct git_delta_index git_delta_index;
......
......@@ -4,12 +4,14 @@
* 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 "common.h"
#include "git2/describe.h"
#include "git2/strarray.h"
#include "git2/diff.h"
#include "git2/status.h"
#include "common.h"
#include "commit.h"
#include "commit_list.h"
#include "oidmap.h"
......
......@@ -4,9 +4,10 @@
* 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 "git2/version.h"
#include "common.h"
#include "diff.h"
#include "git2/version.h"
#include "diff_generate.h"
#include "patch.h"
#include "commit.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_diff_h__
#define INCLUDE_diff_h__
#include "common.h"
#include "git2/diff.h"
#include "git2/patch.h"
#include "git2/sys/diff.h"
......
......@@ -4,12 +4,12 @@
* 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 "common.h"
#include "diff_driver.h"
#include "git2/attr.h"
#include "diff.h"
#include "diff_driver.h"
#include "strmap.h"
#include "map.h"
#include "buf_text.h"
......
......@@ -8,6 +8,7 @@
#define INCLUDE_diff_driver_h__
#include "common.h"
#include "buffer.h"
typedef struct git_diff_driver_registry git_diff_driver_registry;
......
......@@ -4,12 +4,13 @@
* 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 "common.h"
#include "diff_file.h"
#include "git2/blob.h"
#include "git2/submodule.h"
#include "diff.h"
#include "diff_generate.h"
#include "diff_file.h"
#include "odb.h"
#include "fileops.h"
#include "filter.h"
......
......@@ -8,6 +8,7 @@
#define INCLUDE_diff_file_h__
#include "common.h"
#include "diff.h"
#include "diff_driver.h"
#include "map.h"
......
......@@ -4,9 +4,10 @@
* 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 "common.h"
#include "diff.h"
#include "diff_generate.h"
#include "diff.h"
#include "patch_generate.h"
#include "fileops.h"
#include "config.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_diff_generate_h__
#define INCLUDE_diff_generate_h__
#include "common.h"
#include "diff.h"
#include "pool.h"
#include "index.h"
......
......@@ -4,9 +4,10 @@
* 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 "common.h"
#include "diff.h"
#include "diff_parse.h"
#include "diff.h"
#include "patch.h"
#include "patch_parse.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_diff_parse_h__
#define INCLUDE_diff_parse_h__
#include "common.h"
#include "diff.h"
typedef struct {
......
......@@ -4,7 +4,9 @@
* 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 "common.h"
#include "diff.h"
#include "diff_file.h"
#include "patch_generate.h"
......
......@@ -4,7 +4,9 @@
* 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 "common.h"
#include "vector.h"
#include "diff.h"
#include "patch_generate.h"
......
......@@ -4,7 +4,8 @@
* 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 "common.h"
#include "diff_tform.h"
#include "git2/config.h"
#include "git2/blob.h"
......
......@@ -7,6 +7,8 @@
#ifndef 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(
......
......@@ -4,11 +4,12 @@
* 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 "diff_xdiff.h"
#include "git2/errors.h"
#include "common.h"
#include "diff.h"
#include "diff_driver.h"
#include "diff_xdiff.h"
#include "patch_generate.h"
static int git_xdiff_scan_int(const char **str, int *value)
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_diff_xdiff_h__
#define INCLUDE_diff_xdiff_h__
#include "common.h"
#include "diff.h"
#include "xdiff/xdiff.h"
#include "patch_generate.h"
......
......@@ -4,7 +4,9 @@
* 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 "common.h"
#include "global.h"
#include "posix.h"
#include "buffer.h"
......
......@@ -5,16 +5,16 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "fetch.h"
#include "git2/oid.h"
#include "git2/refs.h"
#include "git2/revwalk.h"
#include "git2/transport.h"
#include "common.h"
#include "remote.h"
#include "refspec.h"
#include "pack.h"
#include "fetch.h"
#include "netops.h"
#include "repository.h"
#include "refs.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_fetch_h__
#define INCLUDE_fetch_h__
#include "common.h"
#include "git2/remote.h"
#include "netops.h"
......
......@@ -5,11 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "fetchhead.h"
#include "git2/types.h"
#include "git2/oid.h"
#include "fetchhead.h"
#include "common.h"
#include "buffer.h"
#include "fileops.h"
#include "filebuf.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_fetchhead_h__
#define INCLUDE_fetchhead_h__
#include "common.h"
#include "oid.h"
#include "vector.h"
......
......@@ -4,8 +4,9 @@
* 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 "common.h"
#include "filebuf.h"
#include "fileops.h"
static const size_t WRITE_BUFFER_SIZE = (4096 * 2);
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_filebuf_h__
#define INCLUDE_filebuf_h__
#include "common.h"
#include "fileops.h"
#include "hash.h"
#include <zlib.h>
......
......@@ -4,8 +4,9 @@
* 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 "common.h"
#include "fileops.h"
#include "global.h"
#include "strmap.h"
#include <ctype.h>
......
......@@ -8,6 +8,7 @@
#define INCLUDE_fileops_h__
#include "common.h"
#include "map.h"
#include "posix.h"
#include "path.h"
......
......@@ -5,10 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "filter.h"
#include "common.h"
#include "fileops.h"
#include "hash.h"
#include "filter.h"
#include "repository.h"
#include "global.h"
#include "git2/sys/filter.h"
......
......@@ -8,6 +8,7 @@
#define INCLUDE_filter_h__
#include "common.h"
#include "attr_file.h"
#include "git2/filter.h"
......
......@@ -44,12 +44,12 @@
* Compares a filename or pathname to a pattern.
*/
#include "fnmatch.h"
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "fnmatch.h"
#define EOS '\0'
#define RANGE_MATCH 1
......
......@@ -4,8 +4,9 @@
* 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 "common.h"
#include "global.h"
#include "hash.h"
#include "sysdir.h"
#include "filter.h"
......
......@@ -8,6 +8,7 @@
#define INCLUDE_global_h__
#include "common.h"
#include "mwindow.h"
#include "hash.h"
......
......@@ -5,6 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "revwalk.h"
#include "merge.h"
#include "git2/graph.h"
......
......@@ -5,7 +5,6 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "hash.h"
int git_hash_buf(git_oid *out, const void *data, size_t len)
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_hash_h__
#define INCLUDE_hash_h__
#include "common.h"
#include "git2/oid.h"
typedef struct git_hash_prov git_hash_prov;
......
......@@ -5,9 +5,9 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "hash_generic.h"
#include "hash.h"
#include "hash/hash_generic.h"
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
......
......@@ -8,6 +8,8 @@
#ifndef INCLUDE_hash_generic_h__
#define INCLUDE_hash_generic_h__
#include "common.h"
#include "hash.h"
struct git_hash_ctx {
......
......@@ -5,10 +5,10 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "hash_win32.h"
#include "global.h"
#include "hash.h"
#include "hash/hash_win32.h"
#include <wincrypt.h>
#include <strsafe.h>
......
......@@ -9,6 +9,7 @@
#define INCLUDE_hash_win32_h__
#include "common.h"
#include "hash.h"
#include <wincrypt.h>
......
......@@ -4,6 +4,9 @@
* 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 "common.h"
#include "git2/sys/hashsig.h"
#include "fileops.h"
#include "util.h"
......
......@@ -5,6 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "git2/sys/filter.h"
#include "filter.h"
#include "buffer.h"
......
......@@ -7,8 +7,9 @@
#ifndef INCLUDE_idxmap_h__
#define INCLUDE_idxmap_h__
#include <ctype.h>
#include "common.h"
#include <ctype.h>
#include "git2/index.h"
#define kmalloc git__malloc
......
......@@ -5,9 +5,10 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "ignore.h"
#include "git2/ignore.h"
#include "common.h"
#include "ignore.h"
#include "attrcache.h"
#include "path.h"
#include "config.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_ignore_h__
#define INCLUDE_ignore_h__
#include "common.h"
#include "repository.h"
#include "vector.h"
#include "attr_file.h"
......
......@@ -5,11 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "index.h"
#include <stddef.h>
#include "common.h"
#include "repository.h"
#include "index.h"
#include "tree.h"
#include "tree-cache.h"
#include "hash.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_index_h__
#define INCLUDE_index_h__
#include "common.h"
#include "fileops.h"
#include "filebuf.h"
#include "vector.h"
......
......@@ -5,10 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "indexer.h"
#include "git2/indexer.h"
#include "git2/object.h"
#include "common.h"
#include "pack.h"
#include "mwindow.h"
#include "posix.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_indexer_h__
#define INCLUDE_indexer_h__
#include "common.h"
#include "git2/indexer.h"
extern void git_indexer__set_fsync(git_indexer *idx, int do_fsync);
......
......@@ -6,6 +6,7 @@
*/
#include "iterator.h"
#include "tree.h"
#include "index.h"
......
......@@ -8,6 +8,7 @@
#define INCLUDE_iterator_h__
#include "common.h"
#include "git2/index.h"
#include "vector.h"
#include "buffer.h"
......
......@@ -5,13 +5,13 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "merge.h"
#include "posix.h"
#include "buffer.h"
#include "repository.h"
#include "revwalk.h"
#include "commit_list.h"
#include "merge.h"
#include "path.h"
#include "refs.h"
#include "object.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_merge_h__
#define INCLUDE_merge_h__
#include "common.h"
#include "vector.h"
#include "commit_list.h"
#include "pool.h"
......
......@@ -5,11 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "merge_driver.h"
#include "vector.h"
#include "global.h"
#include "merge.h"
#include "merge_driver.h"
#include "git2/merge.h"
#include "git2/sys/merge.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_merge_driver_h__
#define INCLUDE_merge_driver_h__
#include "common.h"
#include "git2/merge.h"
#include "git2/index.h"
#include "git2/sys/merge.h"
......
......@@ -6,6 +6,7 @@
*/
#include "common.h"
#include "repository.h"
#include "posix.h"
#include "fileops.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_message_h__
#define INCLUDE_message_h__
#include "common.h"
#include "git2/message.h"
#include "buffer.h"
......
......@@ -5,8 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "mwindow.h"
#include "vector.h"
#include "fileops.h"
#include "map.h"
......
......@@ -8,6 +8,8 @@
#ifndef INCLUDE_mwindow__
#define INCLUDE_mwindow__
#include "common.h"
#include "map.h"
#include "vector.h"
......
......@@ -5,11 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "netops.h"
#include <ctype.h>
#include "git2/errors.h"
#include "common.h"
#include "netops.h"
#include "posix.h"
#include "buffer.h"
#include "http_parser.h"
......
......@@ -7,8 +7,9 @@
#ifndef INCLUDE_netops_h__
#define INCLUDE_netops_h__
#include "posix.h"
#include "common.h"
#include "posix.h"
#include "stream.h"
#ifdef GIT_OPENSSL
......
......@@ -4,9 +4,11 @@
* 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 "object.h"
#include "git2/object.h"
#include "common.h"
#include "repository.h"
#include "commit.h"
......
......@@ -7,6 +7,8 @@
#ifndef INCLUDE_object_h__
#define INCLUDE_object_h__
#include "common.h"
#include "repository.h"
extern bool git_object__strict_input_validation;
......
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