aboutsummaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-08-06 07:54:16 +0200
committerJunio C Hamano <gitster@pobox.com>2025-08-06 07:36:30 -0700
commit9fdbba862dfa53cf347fd9f05e99bd1f13c5eb0c (patch)
treebf2ed2179c6d5d123d1d30c3fd9feb37e6efea6e /commit.c
parentbuiltin/reflog: implement subcommand to write new entries (diff)
downloadgit-9fdbba862dfa53cf347fd9f05e99bd1f13c5eb0c.tar.gz
git-9fdbba862dfa53cf347fd9f05e99bd1f13c5eb0c.zip
ident: fix type of string length parameter
The last parameter in `split_ident_line()` is the length of the line passed in by the caller. As such, most callers pass in either the result of `strlen()`, `struct strbuf::len` or a pointer diff, all of which are expected to be positive numbers. Regardless of that, the function accepts a signed integer, which is somewhat confusing. Fix the function signature to instead accept a `size_t`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions