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
5ea2966d
Unverified
Commit
5ea2966d
authored
Sep 21, 2021
by
Edward Thomson
Committed by
GitHub
Sep 21, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6066 from libgit2/ethomson/deprecation
Fixes for deprecated APIs
parents
ba01547d
470acc71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
src/email.c
+0
-1
tests/rebase/sign.c
+7
-7
No files found.
src/email.c
View file @
5ea2966d
...
...
@@ -217,7 +217,6 @@ int git_email__append_from_diff(
memcpy
(
&
opts
,
given_opts
,
sizeof
(
git_email_create_options
));
git_buf_sanitize
(
out
);
git_buf_clear
(
out
);
if
((
error
=
append_header
(
out
,
patch_idx
,
patch_count
,
commit_id
,
summary
,
author
,
&
opts
))
==
0
&&
(
error
=
append_body
(
out
,
body
))
==
0
&&
...
...
tests/rebase/sign.c
View file @
5ea2966d
...
...
@@ -249,13 +249,7 @@ void test_rebase_sign__create_propagates_error(void)
}
#ifndef GIT_DEPRECATE_HARD
int
signing_cb_passthrough
(
git_buf
*
signature
,
git_buf
*
signature_field
,
const
char
*
commit_content
,
void
*
payload
)
{
static
const
char
*
expected_commit_content
=
"\
static
const
char
*
expected_commit_content
=
"\
tree cd99b26250099fc38d30bfaed7797a7275ed3366
\n
\
parent f87d14a4a236582a0278a916340a793714256864
\n
\
author Edward Thomson <ethomson@edwardthomson.com> 1405625055 -0400
\n
\
...
...
@@ -263,6 +257,12 @@ committer Rebaser <rebaser@rebaser.rb> 1405694510 +0000\n\
\n
\
Modification 3 to gravy
\n
"
;
int
signing_cb_passthrough
(
git_buf
*
signature
,
git_buf
*
signature_field
,
const
char
*
commit_content
,
void
*
payload
)
{
cl_assert_equal_b
(
false
,
git_buf_is_allocated
(
signature
));
cl_assert_equal_b
(
false
,
git_buf_is_allocated
(
signature_field
));
cl_assert_equal_s
(
expected_commit_content
,
commit_content
);
...
...
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