Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
cd5e33fb
Unverified
Commit
cd5e33fb
authored
Nov 06, 2019
by
Etienne Samson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
global: DRY includes of assert.h
parent
882220bf
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
4 additions
and
14 deletions
+4
-14
examples/add.c
+0
-1
examples/checkout.c
+0
-1
examples/common.c
+3
-2
examples/common.h
+1
-0
examples/describe.c
+0
-1
examples/merge.c
+0
-1
src/apply.c
+0
-2
src/checkout.c
+0
-2
src/clone.c
+0
-2
src/revparse.c
+0
-2
No files found.
examples/add.c
View file @
cd5e33fb
...
...
@@ -13,7 +13,6 @@
*/
#include "common.h"
#include <assert.h>
/**
* The following example demonstrates how to add files with libgit2.
...
...
examples/checkout.c
View file @
cd5e33fb
...
...
@@ -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__)
...
...
examples/common.c
View file @
cd5e33fb
...
...
@@ -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
)
{
...
...
examples/common.h
View file @
cd5e33fb
...
...
@@ -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>
...
...
examples/describe.c
View file @
cd5e33fb
...
...
@@ -13,7 +13,6 @@
*/
#include "common.h"
#include <assert.h>
/**
* The following example partially reimplements the `git describe` command
...
...
examples/merge.c
View file @
cd5e33fb
...
...
@@ -13,7 +13,6 @@
*/
#include "common.h"
#include <assert.h>
/** The following example demonstrates how to do merges with libgit2.
*
...
...
src/apply.c
View file @
cd5e33fb
...
...
@@ -7,8 +7,6 @@
#include "apply.h"
#include <assert.h>
#include "git2/apply.h"
#include "git2/patch.h"
#include "git2/filter.h"
...
...
src/checkout.c
View file @
cd5e33fb
...
...
@@ -7,8 +7,6 @@
#include "checkout.h"
#include <assert.h>
#include "git2/repository.h"
#include "git2/refs.h"
#include "git2/tree.h"
...
...
src/clone.c
View file @
cd5e33fb
...
...
@@ -7,8 +7,6 @@
#include "clone.h"
#include <assert.h>
#include "git2/clone.h"
#include "git2/remote.h"
#include "git2/revparse.h"
...
...
src/revparse.c
View file @
cd5e33fb
...
...
@@ -7,8 +7,6 @@
#include "common.h"
#include <assert.h>
#include "buffer.h"
#include "tree.h"
#include "refdb.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment