Phillip Wood writes:
> On 26/07/18 20:36, Junio C Hamano wrote:
>> Phillip Wood writes:
>>
>>> +sub label_hunk_lines {
>>> + my $hunk = shift;
>>> + my $text = $hunk->{TEXT};
>>> + my (@line_flags, @lines);
>>> + my ($block, $label, $last_mode) = (0, 0, '');
>>> + for my $line
On 26/07/18 20:36, Junio C Hamano wrote:
> Phillip Wood writes:
>
>> +sub label_hunk_lines {
>> +my $hunk = shift;
>> +my $text = $hunk->{TEXT};
>> +my (@line_flags, @lines);
>> +my ($block, $label, $last_mode) = (0, 0, '');
>> +for my $line (1..$#{$text}) {
>
> $text is a
Phillip Wood writes:
> +sub label_hunk_lines {
> + my $hunk = shift;
> + my $text = $hunk->{TEXT};
> + my (@line_flags, @lines);
> + my ($block, $label, $last_mode) = (0, 0, '');
> + for my $line (1..$#{$text}) {
$text is a ref to an array so @$text is the whole thing,
From: Phillip Wood
When I end up editing hunks it is almost always because I want to
stage a subset of the lines in the hunk. Doing this by editing the
hunk is inconvenient and error prone (especially so if the patch is
going to be reversed before being applied). Instead offer an option
for add
4 matches
Mail list logo