]> git.ipfire.org Git - thirdparty/git.git/commitdiff
sideband.c: remove redundant 'NEEDSWORK' tag
authorChandra Pratap <chandrapratap3519@gmail.com>
Thu, 28 Dec 2023 08:01:00 +0000 (08:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Dec 2023 15:59:12 +0000 (07:59 -0800)
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sideband.c

index 85bddfdcd4f57a37be390d424d3628d1f34877a7..cdbe0789f0b44376b8ac85a85e2f32b6d0703a13 100644 (file)
@@ -66,7 +66,10 @@ void list_config_color_sideband_slots(struct string_list *list, const char *pref
  * of the line. This should be called for a single line only, which is
  * passed as the first N characters of the SRC array.
  *
- * NEEDSWORK: use "size_t n" instead for clarity.
+ * It is fine to use "int n" here instead of "size_t n" as all calls to this
+ * function pass an 'int' parameter. Additionally, the buffer involved in
+ * storing these 'int' values takes input from a packet via the pkt-line
+ * interface, which is capable of transferring only 64kB at a time.
  */
 static void maybe_colorize_sideband(struct strbuf *dest, const char *src, int n)
 {