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
ac2351fd
Commit
ac2351fd
authored
Jul 25, 2011
by
Lambert CLARA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify struct definition to enable forward declare with C++ compiler,
thus avoid including C library's header in C++ header.
parent
f630366f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
include/git2/oid.h
+3
-2
No files found.
include/git2/oid.h
View file @
ac2351fd
...
...
@@ -48,10 +48,11 @@ GIT_BEGIN_DECL
#define GIT_OID_MINPREFIXLEN 4
/** Unique identity of any object (commit, tree, blob, tag). */
typedef
struct
{
typedef
struct
_git_oid
git_oid
;
struct
_git_oid
{
/** raw binary formatted id */
unsigned
char
id
[
GIT_OID_RAWSZ
];
}
git_oid
;
};
/**
* Parse a hex formatted object id into a git_oid.
...
...
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