mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
global: DRY includes of assert.h
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
#include <assert.h>
|
||||
|
||||
/**
|
||||
* The following example demonstrates how to add files with libgit2.
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
#include <assert.h>
|
||||
|
||||
/* Define the printf format specifer to use for size_t output */
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
* <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
@@ -25,7 +27,6 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "common.h"
|
||||
|
||||
void check_lg2(int error, const char *message, const char *extra)
|
||||
{
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#ifndef INCLUDE_examples_common_h__
|
||||
#define INCLUDE_examples_common_h__
|
||||
|
||||
#include <assert.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
#include <assert.h>
|
||||
|
||||
/**
|
||||
* The following example partially reimplements the `git describe` command
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
#include <assert.h>
|
||||
|
||||
/** The following example demonstrates how to do merges with libgit2.
|
||||
*
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
|
||||
#include "apply.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "git2/apply.h"
|
||||
#include "git2/patch.h"
|
||||
#include "git2/filter.h"
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
|
||||
#include "checkout.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "git2/repository.h"
|
||||
#include "git2/refs.h"
|
||||
#include "git2/tree.h"
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
|
||||
#include "clone.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "git2/clone.h"
|
||||
#include "git2/remote.h"
|
||||
#include "git2/revparse.h"
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "buffer.h"
|
||||
#include "tree.h"
|
||||
#include "refdb.h"
|
||||
|
||||
Reference in New Issue
Block a user