Skip to content

Commit dcb668b

Browse files
committed
message: update docs for git_message_prettify
We used to hard-code the octothorpe as the comment character and the documentation still mentions this even though we accept the comment character as a parameter. Update the line to indicate this and clean up the first paragraph a bit.
1 parent 4893a9c commit dcb668b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/git2/message.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
GIT_BEGIN_DECL
2020

2121
/**
22-
* Clean up message from excess whitespace and make sure that the last line
23-
* ends with a '\n'.
22+
* Clean up excess whitespace and make sure there is a trailing newline in the message.
2423
*
25-
* Optionally, can remove lines starting with a "#".
24+
* Optionally, it can remove lines which start with the comment character.
2625
*
2726
* @param out The user-allocated git_buf which will be filled with the
2827
* cleaned up message.

0 commit comments

Comments
 (0)