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
d4a3a4b5
Unverified
Commit
d4a3a4b5
authored
Jan 17, 2018
by
Brian Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename find_trailer to extract_trailer_block
parent
3e5239e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/trailer.c
+2
-2
No files found.
src/trailer.c
View file @
d4a3a4b5
...
...
@@ -249,7 +249,7 @@ static int find_trailer_end(const char *buf, size_t len)
return
len
-
ignore_non_trailer
(
buf
,
len
);
}
static
char
*
find_trailer
(
const
char
*
message
,
size_t
*
len
)
static
char
*
extract_trailer_block
(
const
char
*
message
,
size_t
*
len
)
{
size_t
patch_start
=
find_patch_start
(
message
);
size_t
trailer_end
=
find_trailer_end
(
message
,
patch_start
);
...
...
@@ -292,7 +292,7 @@ int git_message_trailers(git_message_trailer_array *trailer_arr, const char *mes
git_array_trailer_t
arr
=
GIT_ARRAY_INIT
;
size_t
trailer_len
;
char
*
trailer
=
find_trailer
(
message
,
&
trailer_len
);
char
*
trailer
=
extract_trailer_block
(
message
,
&
trailer_len
);
for
(
ptr
=
trailer
;;)
{
switch
(
state
)
{
...
...
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