Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-01-16 21:11:57 +0300
committerJunio C Hamano <gitster@pobox.com>2024-01-16 21:11:57 +0300
commit6484eb9a97fe3cd81a2d5711183b93494e6ddefa (patch)
tree47b685da95e65634ad2a448c1ccc939e20fb22d1
parent32c6fc3e3036613d80f1217a833d9f3868717b41 (diff)
parent03bcc93769bd5e3b14094c36e3d466587f922274 (diff)
Merge branch 'cp/sideband-array-index-comment-fix'
In-code comment fix. * cp/sideband-array-index-comment-fix: sideband.c: remove redundant 'NEEDSWORK' tag
-rw-r--r--sideband.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sideband.c b/sideband.c
index 6cbfd391c4..266a67342b 100644
--- a/sideband.c
+++ b/sideband.c
@@ -69,7 +69,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)
{