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
d1ea30c3
Commit
d1ea30c3
authored
Nov 01, 2008
by
Shawn O. Pearce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move include files to include/git/, drop git_ prefix from file names
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
parent
3e89665e
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
25 additions
and
25 deletions
+25
-25
CONVENTIONS
+5
-5
Makefile
+2
-2
api.doxygen
+1
-1
include/git/commit.h
+3
-3
include/git/common.h
+1
-1
include/git/odb.h
+3
-3
include/git/oid.h
+2
-2
include/git/revwalk.h
+4
-4
src/commit.c
+1
-1
src/odb.c
+1
-1
src/oid.c
+1
-1
src/revwalk.c
+1
-1
No files found.
CONVENTIONS
View file @
d1ea30c3
...
@@ -85,15 +85,15 @@ the following form, where ${filename} is the name of the file,
...
@@ -85,15 +85,15 @@ the following form, where ${filename} is the name of the file,
after replacing non-identifier characters with '_'.
after replacing non-identifier characters with '_'.
----
----
#ifndef INCLUDE_${filename}_h__
#ifndef INCLUDE_
git_
${filename}_h__
#define INCLUDE_${filename}_h__
#define INCLUDE_
git_
${filename}_h__
#include "git
_
common.h"
#include "git
/
common.h"
/**
/**
* @file ${filename}.h
* @file
git/
${filename}.h
* @brief Git some description
* @brief Git some description
* @defgroup ${filename} some description routines
* @defgroup
git_
${filename} some description routines
* @ingroup Git
* @ingroup Git
* @{
* @{
*/
*/
...
...
Makefile
View file @
d1ea30c3
...
@@ -4,12 +4,12 @@ DOXYGEN = doxygen
...
@@ -4,12 +4,12 @@ DOXYGEN = doxygen
CFLAGS
=
-g
-O2
CFLAGS
=
-g
-O2
BASIC_CFLAGS
:=
-I
src
BASIC_CFLAGS
:=
-I
include
BASIC_CFLAGS
+=
-DGIT__PRIVATE
BASIC_CFLAGS
+=
-DGIT__PRIVATE
BASIC_CFLAGS
+=
-fvisibility
=
hidden
BASIC_CFLAGS
+=
-fvisibility
=
hidden
OBJS
=
$
(
patsubst %.c,%.o,
$
(
wildcard src/
*
.c
))
OBJS
=
$
(
patsubst %.c,%.o,
$
(
wildcard src/
*
.c
))
HDRS
=
$
(
wildcard
src
/
*
.h
)
HDRS
=
$
(
wildcard
include/git
/
*
.h
)
all
::
libgit2.a
all
::
libgit2.a
...
...
api.doxygen
View file @
d1ea30c3
PROJECT_NAME = libgit2
PROJECT_NAME = libgit2
INPUT =
src
INPUT =
include
QUIET = YES
QUIET = YES
RECURSIVE = YES
RECURSIVE = YES
FILE_PATTERNS = *.h
FILE_PATTERNS = *.h
...
...
src/git_
commit.h
→
include/git/
commit.h
View file @
d1ea30c3
...
@@ -36,12 +36,12 @@
...
@@ -36,12 +36,12 @@
#ifndef INCLUDE_git_commit_h__
#ifndef INCLUDE_git_commit_h__
#define INCLUDE_git_commit_h__
#define INCLUDE_git_commit_h__
#include "git
_
common.h"
#include "git
/
common.h"
#include "git
_
oid.h"
#include "git
/
oid.h"
#include <time.h>
#include <time.h>
/**
/**
* @file git
_
commit.h
* @file git
/
commit.h
* @brief Git commit parsing, formatting routines
* @brief Git commit parsing, formatting routines
* @defgroup git_commit Git commit parsing, formatting routines
* @defgroup git_commit Git commit parsing, formatting routines
* @ingroup Git
* @ingroup Git
...
...
src/git_
common.h
→
include/git/
common.h
View file @
d1ea30c3
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
#endif
#endif
/**
/**
* @file git
_
common.h
* @file git
/
common.h
* @brief Git common platform definitions
* @brief Git common platform definitions
* @defgroup git_common Git common platform definitions
* @defgroup git_common Git common platform definitions
* @ingroup Git
* @ingroup Git
...
...
src/git_
odb.h
→
include/git/
odb.h
View file @
d1ea30c3
...
@@ -36,12 +36,12 @@
...
@@ -36,12 +36,12 @@
#ifndef INCLUDE_git_odb_h__
#ifndef INCLUDE_git_odb_h__
#define INCLUDE_git_odb_h__
#define INCLUDE_git_odb_h__
#include "git
_
common.h"
#include "git
/
common.h"
#include "git
_
oid.h"
#include "git
/
oid.h"
#include <unistd.h>
#include <unistd.h>
/**
/**
* @file git
_
odb.h
* @file git
/
odb.h
* @brief Git object database routines
* @brief Git object database routines
* @defgroup git_odb Git object database routines
* @defgroup git_odb Git object database routines
* @ingroup Git
* @ingroup Git
...
...
src/git_
oid.h
→
include/git/
oid.h
View file @
d1ea30c3
...
@@ -36,10 +36,10 @@
...
@@ -36,10 +36,10 @@
#ifndef INCLUDE_git_oid_h__
#ifndef INCLUDE_git_oid_h__
#define INCLUDE_git_oid_h__
#define INCLUDE_git_oid_h__
#include "git
_
common.h"
#include "git
/
common.h"
/**
/**
* @file git
_
oid.h
* @file git
/
oid.h
* @brief Git object id routines
* @brief Git object id routines
* @defgroup git_oid Git object id routines
* @defgroup git_oid Git object id routines
* @ingroup Git
* @ingroup Git
...
...
src/git_
revwalk.h
→
include/git/
revwalk.h
View file @
d1ea30c3
...
@@ -36,12 +36,12 @@
...
@@ -36,12 +36,12 @@
#ifndef INCLUDE_git_revwalk_h__
#ifndef INCLUDE_git_revwalk_h__
#define INCLUDE_git_revwalk_h__
#define INCLUDE_git_revwalk_h__
#include "git
_
common.h"
#include "git
/
common.h"
#include "git
_
odb.h"
#include "git
/
odb.h"
#include "git
_
commit.h"
#include "git
/
commit.h"
/**
/**
* @file git
_
revwalk.h
* @file git
/
revwalk.h
* @brief Git revision traversal routines
* @brief Git revision traversal routines
* @defgroup git_revwalk Git revision traversal routines
* @defgroup git_revwalk Git revision traversal routines
* @ingroup Git
* @ingroup Git
...
...
src/
git_
commit.c
→
src/commit.c
View file @
d1ea30c3
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "git
_
commit.h"
#include "git
/
commit.h"
const
git_oid
*
git_commit_id
(
git_commit
*
c
)
const
git_oid
*
git_commit_id
(
git_commit
*
c
)
{
{
...
...
src/
git_
odb.c
→
src/odb.c
View file @
d1ea30c3
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "git
_
odb.h"
#include "git
/
odb.h"
struct
git_odb
{
struct
git_odb
{
/** Path to the "objects" directory. */
/** Path to the "objects" directory. */
...
...
src/
git_
oid.c
→
src/oid.c
View file @
d1ea30c3
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "git
_
oid.h"
#include "git
/
oid.h"
#include <string.h>
#include <string.h>
static
signed
char
from_hex
[]
=
{
static
signed
char
from_hex
[]
=
{
...
...
src/
git_
revwalk.c
→
src/revwalk.c
View file @
d1ea30c3
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include "git
_
revwalk.h"
#include "git
/
revwalk.h"
#include <stdlib.h>
#include <stdlib.h>
struct
git_revp
{
struct
git_revp
{
...
...
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