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
ff6b5ac9
Commit
ff6b5ac9
authored
Nov 27, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API updates for signature.h
parent
44d9f2cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
include/git2/signature.h
+7
-6
No files found.
include/git2/signature.h
View file @
ff6b5ac9
...
...
@@ -26,31 +26,32 @@ GIT_BEGIN_DECL
* Note: angle brackets ('<' and '>') characters are not allowed
* to be used in either the `name` or the `email` parameter.
*
* @param
sig_
out new signature, in case of error NULL
* @param out new signature, in case of error NULL
* @param name name of the person
* @param email email of the person
* @param time time when the action happened
* @param offset timezone offset in minutes for the time
* @return 0 or an error code
*/
GIT_EXTERN
(
int
)
git_signature_new
(
git_signature
**
sig_
out
,
const
char
*
name
,
const
char
*
email
,
git_time_t
time
,
int
offset
);
GIT_EXTERN
(
int
)
git_signature_new
(
git_signature
**
out
,
const
char
*
name
,
const
char
*
email
,
git_time_t
time
,
int
offset
);
/**
* Create a new action signature with a timestamp of 'now'. The
* signature must be freed manually or using git_signature_free
*
* @param
sig_
out new signature, in case of error NULL
* @param out new signature, in case of error NULL
* @param name name of the person
* @param email email of the person
* @return 0 or an error code
*/
GIT_EXTERN
(
int
)
git_signature_now
(
git_signature
**
sig_
out
,
const
char
*
name
,
const
char
*
email
);
GIT_EXTERN
(
int
)
git_signature_now
(
git_signature
**
out
,
const
char
*
name
,
const
char
*
email
);
/**
* Create a copy of an existing signature.
* Create a copy of an existing signature. All internal strings are also duplicated.
* The caller is responsible for freeing this structure with
* git_signature_free.
*
* All internal strings are also duplicated.
* @param sig signature to duplicated
* @return a copy of sig, NULL on out of memory
*/
...
...
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