mirror of
https://github.com/git/git
synced 2024-10-02 14:45:21 +00:00
6073b3b5c3
The out parameter of `git_config_pathname()` is a `const char **` even though we transfer ownership of memory to the caller. This is quite misleading and has led to many memory leaks all over the place. Adapt the parameter to instead be `char **`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
16 lines
341 B
C
16 lines
341 B
C
#ifndef MAILMAP_H
|
|
#define MAILMAP_H
|
|
|
|
struct string_list;
|
|
|
|
extern char *git_mailmap_file;
|
|
extern const char *git_mailmap_blob;
|
|
|
|
int read_mailmap(struct string_list *map);
|
|
void clear_mailmap(struct string_list *map);
|
|
|
|
int map_user(struct string_list *map,
|
|
const char **email, size_t *emaillen, const char **name, size_t *namelen);
|
|
|
|
#endif
|