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
5c6c8a9b
Commit
5c6c8a9b
authored
Mar 18, 2018
by
Emilio Cobos Álvarez
Committed by
Nika Layzell
Jun 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mailmap: Fix some other minor style nits
parent
4ff44be8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
include/git2/signature.h
+1
-2
tests/mailmap/basic.c
+7
-7
No files found.
include/git2/signature.h
View file @
5c6c8a9b
...
...
@@ -85,8 +85,7 @@ GIT_EXTERN(int) git_signature_from_buffer(git_signature **out, const char *buf);
* @param mailmap mailmap to resolve with
* @return 0 or an error code
*/
GIT_EXTERN
(
int
)
git_signature_with_mailmap
(
git_signature
**
out
,
const
git_signature
*
sig
,
const
git_mailmap
*
mailmap
);
GIT_EXTERN
(
int
)
git_signature_with_mailmap
(
git_signature
**
out
,
const
git_signature
*
sig
,
const
git_mailmap
*
mailmap
);
/**
* Create a copy of an existing signature. All internal strings are also
...
...
tests/mailmap/basic.c
View file @
5c6c8a9b
...
...
@@ -28,7 +28,7 @@ void test_mailmap_basic__cleanup(void)
void
test_mailmap_basic__entry
(
void
)
{
const
git_mailmap_entry
*
entry
;
const
git_mailmap_entry
*
entry
;
cl_assert
(
git_mailmap_entry_count
(
mailmap
)
==
4
);
...
...
@@ -43,7 +43,7 @@ void test_mailmap_basic__entry(void)
void
test_mailmap_basic__lookup_not_found
(
void
)
{
const
git_mailmap_entry
*
entry
=
git_mailmap_entry_lookup
(
const
git_mailmap_entry
*
entry
=
git_mailmap_entry_lookup
(
mailmap
,
"Whoever"
,
"doesnotexist@fo.com"
);
...
...
@@ -52,7 +52,7 @@ void test_mailmap_basic__lookup_not_found(void)
void
test_mailmap_basic__lookup
(
void
)
{
const
git_mailmap_entry
*
entry
=
git_mailmap_entry_lookup
(
const
git_mailmap_entry
*
entry
=
git_mailmap_entry_lookup
(
mailmap
,
"Typoed the name once"
,
"foo@baz.com"
);
...
...
@@ -62,8 +62,8 @@ void test_mailmap_basic__lookup(void)
void
test_mailmap_basic__empty_email_query
(
void
)
{
const
char
*
name
;
const
char
*
email
;
const
char
*
name
;
const
char
*
email
;
git_mailmap_resolve
(
&
name
,
&
email
,
...
...
@@ -76,8 +76,8 @@ void test_mailmap_basic__empty_email_query(void)
void
test_mailmap_basic__name_matching
(
void
)
{
const
char
*
name
;
const
char
*
email
;
const
char
*
name
;
const
char
*
email
;
git_mailmap_resolve
(
&
name
,
&
email
,
...
...
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