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
f984d97b
Commit
f984d97b
authored
Nov 27, 2012
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify git_message_prettify comments
parent
2bd5998c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
include/git2/message.h
+9
-7
No files found.
include/git2/message.h
View file @
f984d97b
...
@@ -23,25 +23,27 @@ GIT_BEGIN_DECL
...
@@ -23,25 +23,27 @@ GIT_BEGIN_DECL
*
*
* Optionally, can remove lines starting with a "#".
* Optionally, can remove lines starting with a "#".
*
*
* @param out The user-allocated buffer which will be filled with
* @param out The user-allocated buffer which will be filled with
the
*
the cleaned up message. Pass NULL if you just want to get the size of the
*
cleaned up message. Pass NULL if you just want to get the needed
* prettified message as the output value.
*
size of the
prettified message as the output value.
*
*
* @param
size The size of the allocated buffer message_out
.
* @param
out_size Size of the `out` buffer in bytes
.
*
*
* @param message The message to be prettified.
* @param message The message to be prettified.
*
*
* @param strip_comments 1 to remove lines starting with a "#", 0 otherwise.
* @param strip_comments Non-zero to remove lines starting with "#", 0 to
* leave them in.
*
*
* @return -1 on error, else number of characters in prettified message
* @return -1 on error, else number of characters in prettified message
* including the trailing NUL byte
*
including the trailing NUL byte
*/
*/
GIT_EXTERN
(
int
)
git_message_prettify
(
GIT_EXTERN
(
int
)
git_message_prettify
(
char
*
out
,
char
*
out
,
size_t
buffer
_size
,
size_t
out
_size
,
const
char
*
message
,
const
char
*
message
,
int
strip_comments
);
int
strip_comments
);
/** @} */
/** @} */
GIT_END_DECL
GIT_END_DECL
#endif
/* INCLUDE_git_message_h__ */
#endif
/* INCLUDE_git_message_h__ */
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