summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorNika Layzell <nika@thelayzells.com>2018-06-17 00:40:25 -0400
committerNika Layzell <nika@thelayzells.com>2018-06-17 00:40:25 -0400
commitf98131be911df5e4c47e51ac92e6e7de79e30219 (patch)
tree17f7717e6ff56fb82e236a7296a4bb4c1295043b /include/git2
parent9faf36a6e89d1cc161bb6bf3afff7a3552b8a349 (diff)
downloadlibgit2-f98131be911df5e4c47e51ac92e6e7de79e30219.tar.gz
Require the length argument to git_mailmap_from_buffer and make mailmap_add_buffer internal
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/mailmap.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/include/git2/mailmap.h b/include/git2/mailmap.h
index c6ed4811f..7c3f60fcc 100644
--- a/include/git2/mailmap.h
+++ b/include/git2/mailmap.h
@@ -54,27 +54,11 @@ GIT_EXTERN(int) git_mailmap_add_entry(
const char *replace_name, const char *replace_email);
/**
- * Parse mailmap entries from a buffer.
- *
- * @param mm mailmap to add the entries to
- * @param buf the buffer to read the mailmap file from
- * @param len the length of the input buffer [optional: 0 defaults to 'strlen']
- * @return 0 on success, or an error code
- */
-GIT_EXTERN(int) git_mailmap_add_buffer(
- git_mailmap *mm, const char *buf, size_t len);
-
-/**
* Create a new mailmap instance containing a single mailmap file
*
- * This method is a simple utility wrapper for the following sequence
- * of calls:
- * - git_mailmap_new
- * - git_mailmap_add_buffer
- *
* @param out pointer to store the new mailmap
* @param buf buffer to parse the mailmap from
- * @param len the length of the input buffer [optional: 0 defaults to 'strlen']
+ * @param len the length of the input buffer
* @return 0 on success, or an error code
*/
GIT_EXTERN(int) git_mailmap_from_buffer(