Re: [PATCH 6/9] notes: do not use strbuf_split*()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 31, 2025 at 3:42 AM Junio C Hamano <gitster@xxxxxxxxx> wrote:
> When reading the copy instruction from the standard input, the
> program reads a line, splits it into tokens at whitespace, and trims
> each of the tokens before using.  We no longer need to use strbuf
> just to be able to trimming, as string_list_split*() family now can
> trim while splitting a string.

s/trimming/trim/

> Retire the use of strbuf_split().
>
> Note that this loop is a bit sloppy in that it ensures at least
> there are two tokens on each line, but ignores if there are extra
> tokens on the line.  Tightening it is outside the scope of this
> series.
>
> Signed-off-by: Junio C Hamano <gitster@xxxxxxxxx>





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux