Skip to content

Commit 8c00325

Browse files
author
Chandra Pratap
committed
sideband.c: remove redundant 'NEEDSWORK' tag
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
1 parent 1a87c84 commit 8c00325

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sideband.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ void list_config_color_sideband_slots(struct string_list *list, const char *pref
6969
* of the line. This should be called for a single line only, which is
7070
* passed as the first N characters of the SRC array.
7171
*
72-
* NEEDSWORK: use "size_t n" instead for clarity.
72+
* It is fine to use "int n" here instead of "size_t n" as all calls to this
73+
* function pass an 'int' parameter. Additionally, the buffer involved in
74+
* storing these 'int' values takes input from a packet via the pkt-line
75+
* interface, which is capable of transferring only 64kB at a time.
7376
*/
7477
static void maybe_colorize_sideband(struct strbuf *dest, const char *src, int n)
7578
{

0 commit comments

Comments
 (0)