Commit Graph

13 Commits

Author SHA1 Message Date
Edward Thomson
d525e063ba buf: remove internal git_buf_text namespace
The `git_buf_text` namespace is unnecessary and strange.  Remove it,
just keep the functions prefixed with `git_buf`.
2021-05-11 01:29:22 +01:00
Patrick Steinhardt
2521e11ce2 tests: mailmap: avoid definition of unused static variables
The mailmap testdata header contains a set of static variable
definitions. As these variables aren't used in all places where they are
used, they trigger the unused-const-variable warnings. As we have
currently disabled those warnings explicitly, they are never triggered,
but we intend to enable them.

Avoid the issue by only keeping variable definitions that are actually
used in all locations. Move the others to where they are used.
2018-11-28 15:22:27 +01:00
Etienne Samson
17bd3b964f tests: mailmap/parsing: add a missing cl_git_pass
Reported by Coverity, CID 1393483
2018-07-06 22:13:09 +02:00
Nika Layzell
f98131be91 Require the length argument to git_mailmap_from_buffer and make mailmap_add_buffer internal 2018-06-17 00:40:25 -04:00
Nika Layzell
9faf36a6e8 mailmap: git_buf_free => git_buf_dispose 2018-06-14 22:49:01 -07:00
Nika Layzell
56303e1ade mailmap: API and style cleanup 2018-06-14 22:43:28 -07:00
Nika Layzell
a140c13875 mailmap: Updates tests for new API and features 2018-06-14 22:43:28 -07:00
Nika Layzell
18ff9babd7 mailmap: API and style cleanup 2018-06-14 22:43:28 -07:00
Nika Layzell
57cfeab9fe mailmap: Switch mailmap parsing to use the git_parse module 2018-06-14 22:43:27 -07:00
Emilio Cobos Álvarez
5c6c8a9b50 mailmap: Fix some other minor style nits 2018-06-14 22:43:27 -07:00
Nika Layzell
4ff44be8ce mailmap: Fix more bugs which snuck in when I rebased 2018-06-14 22:43:27 -07:00
Nika Layzell
983b8c2df8 mailmap: Add a bunch of tests for the new mailmap functionality 2018-06-14 22:43:27 -07:00
Emilio Cobos Álvarez
b88cbf8c28 mailmap: Add some super-basic tests 2018-06-14 22:43:27 -07:00