1 package Git
::IndexInfo
;
4 use Git qw
/command_input_pipe command_close_pipe/;
8 my ($gui, $ctx) = command_input_pipe
(qw
/update-index -z --index-info/);
9 bless { gui
=> $gui, ctx
=> $ctx, nr
=> 0}, $class;
13 my ($self, $path) = @_;
14 if (print { $self->{gui
} } '0 ', 0 x
40, "\t", $path, "\0") {
21 my ($self, $mode, $hash, $path) = @_;
22 if (print { $self->{gui
} } $mode, ' ', $hash, "\t", $path, "\0") {
30 command_close_pipe
($self->{gui
}, $self->{ctx
});