@noldova/checkpoints.git.linux-arm64 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/README.md +11 -2
- package/git/bin/git +0 -0
- package/git/bin/scalar +0 -0
- package/git/etc/gitconfig +13 -0
- package/git/libexec/git-core/git +0 -0
- package/git/libexec/git-core/git-archimport +1136 -0
- package/git/libexec/git-core/git-cvsexportcommit +469 -0
- package/git/libexec/git-core/git-cvsimport +1185 -0
- package/git/libexec/git-core/git-cvsserver +5109 -0
- package/git/libexec/git-core/git-daemon +0 -0
- package/git/libexec/git-core/git-difftool--helper +125 -0
- package/git/libexec/git-core/git-filter-branch +665 -0
- package/git/libexec/git-core/git-http-backend +0 -0
- package/git/libexec/git-core/git-http-fetch +0 -0
- package/git/libexec/git-core/git-imap-send +0 -0
- package/git/libexec/git-core/git-instaweb +786 -0
- package/git/libexec/git-core/git-merge-octopus +112 -0
- package/git/libexec/git-core/git-merge-one-file +167 -0
- package/git/libexec/git-core/git-merge-resolve +64 -0
- package/git/libexec/git-core/git-mergetool +579 -0
- package/git/libexec/git-core/git-mergetool--lib +549 -0
- package/git/libexec/git-core/git-quiltimport +155 -0
- package/git/libexec/git-core/git-receive-pack +0 -0
- package/git/libexec/git-core/git-remote-ftp +0 -0
- package/git/libexec/git-core/git-remote-ftps +0 -0
- package/git/libexec/git-core/git-remote-http +0 -0
- package/git/libexec/git-core/git-remote-https +0 -0
- package/git/libexec/git-core/git-request-pull +178 -0
- package/git/libexec/git-core/git-send-email +2474 -0
- package/git/libexec/git-core/git-sh-i18n +79 -0
- package/git/libexec/git-core/git-sh-i18n--envsubst +0 -0
- package/git/libexec/git-core/git-sh-setup +357 -0
- package/git/libexec/git-core/git-shell +0 -0
- package/git/libexec/git-core/git-submodule +671 -0
- package/git/libexec/git-core/git-upload-archive +0 -0
- package/git/libexec/git-core/git-upload-pack +0 -0
- package/git/libexec/git-core/git-web--browse +196 -0
- package/git/libexec/git-core/mergetools/araxis +26 -0
- package/git/libexec/git-core/mergetools/bc +37 -0
- package/git/libexec/git-core/mergetools/codecompare +31 -0
- package/git/libexec/git-core/mergetools/deltawalker +33 -0
- package/git/libexec/git-core/mergetools/diffmerge +26 -0
- package/git/libexec/git-core/mergetools/diffuse +23 -0
- package/git/libexec/git-core/mergetools/ecmerge +22 -0
- package/git/libexec/git-core/mergetools/emerge +34 -0
- package/git/libexec/git-core/mergetools/examdiff +24 -0
- package/git/libexec/git-core/mergetools/guiffy +26 -0
- package/git/libexec/git-core/mergetools/gvimdiff +1 -0
- package/git/libexec/git-core/mergetools/kdiff3 +44 -0
- package/git/libexec/git-core/mergetools/kompare +19 -0
- package/git/libexec/git-core/mergetools/meld +97 -0
- package/git/libexec/git-core/mergetools/nvimdiff +1 -0
- package/git/libexec/git-core/mergetools/opendiff +22 -0
- package/git/libexec/git-core/mergetools/p4merge +44 -0
- package/git/libexec/git-core/mergetools/smerge +20 -0
- package/git/libexec/git-core/mergetools/tkdiff +24 -0
- package/git/libexec/git-core/mergetools/tortoisemerge +40 -0
- package/git/libexec/git-core/mergetools/vimdiff +657 -0
- package/git/libexec/git-core/mergetools/vscode +19 -0
- package/git/libexec/git-core/mergetools/winmerge +23 -0
- package/git/libexec/git-core/mergetools/xxdiff +38 -0
- package/git/libexec/git-core/scalar +0 -0
- package/git/share/bash-completion/completions/git +4115 -0
- package/git/share/git-core/templates/description +1 -0
- package/git/share/git-core/templates/hooks/applypatch-msg.sample +15 -0
- package/git/share/git-core/templates/hooks/commit-msg.sample +74 -0
- package/git/share/git-core/templates/hooks/fsmonitor-watchman.sample +168 -0
- package/git/share/git-core/templates/hooks/post-update.sample +8 -0
- package/git/share/git-core/templates/hooks/pre-applypatch.sample +14 -0
- package/git/share/git-core/templates/hooks/pre-commit.sample +49 -0
- package/git/share/git-core/templates/hooks/pre-merge-commit.sample +13 -0
- package/git/share/git-core/templates/hooks/pre-push.sample +53 -0
- package/git/share/git-core/templates/hooks/pre-rebase.sample +169 -0
- package/git/share/git-core/templates/hooks/pre-receive.sample +24 -0
- package/git/share/git-core/templates/hooks/prepare-commit-msg.sample +42 -0
- package/git/share/git-core/templates/hooks/push-to-checkout.sample +78 -0
- package/git/share/git-core/templates/hooks/sendemail-validate.sample +77 -0
- package/git/share/git-core/templates/hooks/update.sample +128 -0
- package/git/share/git-core/templates/info/exclude +6 -0
- package/git/share/gitweb/gitweb.cgi +8499 -0
- package/git/share/gitweb/static/git-favicon.png +0 -0
- package/git/share/gitweb/static/git-logo.png +0 -0
- package/git/share/gitweb/static/gitweb.css +756 -0
- package/git/share/gitweb/static/gitweb.js +1579 -0
- package/git/share/locale/af/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/bg/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/ca/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/de/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/el/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/es/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/fr/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/ga/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/id/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/is/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/it/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/ko/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/pl/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/pt_BR/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/pt_PT/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/ru/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/sv/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/tr/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/uk/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/vi/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/zh_CN/LC_MESSAGES/git.mo +0 -0
- package/git/share/locale/zh_TW/LC_MESSAGES/git.mo +0 -0
- package/git/share/perl5/FromCPAN/Error.pm +1040 -0
- package/git/share/perl5/FromCPAN/Mail/Address.pm +280 -0
- package/git/share/perl5/Git/I18N.pm +125 -0
- package/git/share/perl5/Git/IndexInfo.pm +35 -0
- package/git/share/perl5/Git/LoadCPAN/Error.pm +10 -0
- package/git/share/perl5/Git/LoadCPAN/Mail/Address.pm +10 -0
- package/git/share/perl5/Git/LoadCPAN.pm +104 -0
- package/git/share/perl5/Git/Packet.pm +173 -0
- package/git/share/perl5/Git/SVN/Editor.pm +605 -0
- package/git/share/perl5/Git/SVN/Fetcher.pm +622 -0
- package/git/share/perl5/Git/SVN/GlobSpec.pm +65 -0
- package/git/share/perl5/Git/SVN/Log.pm +400 -0
- package/git/share/perl5/Git/SVN/Memoize/YAML.pm +93 -0
- package/git/share/perl5/Git/SVN/Migration.pm +265 -0
- package/git/share/perl5/Git/SVN/Prompt.pm +184 -0
- package/git/share/perl5/Git/SVN/Ra.pm +708 -0
- package/git/share/perl5/Git/SVN/Utils.pm +232 -0
- package/git/share/perl5/Git/SVN.pm +2573 -0
- package/git/share/perl5/Git.pm +1780 -0
- package/licenses/git/COPYING +360 -0
- package/licenses/git/LGPL-2.1 +511 -0
- package/licenses/perl-modules-from-cpan/Artistic +131 -0
- package/licenses/perl-modules-from-cpan/Copying +250 -0
- package/package.json +167 -4
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
package Git::Packet;
|
|
2
|
+
require v5.26;
|
|
3
|
+
use strict;
|
|
4
|
+
use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
|
|
5
|
+
BEGIN {
|
|
6
|
+
require Exporter;
|
|
7
|
+
if ($] < 5.008003) {
|
|
8
|
+
*import = \&Exporter::import;
|
|
9
|
+
} else {
|
|
10
|
+
# Exporter 5.57 which supports this invocation was
|
|
11
|
+
# released with perl 5.8.3
|
|
12
|
+
Exporter->import('import');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
our @EXPORT = qw(
|
|
17
|
+
packet_compare_lists
|
|
18
|
+
packet_bin_read
|
|
19
|
+
packet_txt_read
|
|
20
|
+
packet_key_val_read
|
|
21
|
+
packet_bin_write
|
|
22
|
+
packet_txt_write
|
|
23
|
+
packet_flush
|
|
24
|
+
packet_initialize
|
|
25
|
+
packet_read_capabilities
|
|
26
|
+
packet_read_and_check_capabilities
|
|
27
|
+
packet_check_and_write_capabilities
|
|
28
|
+
);
|
|
29
|
+
our @EXPORT_OK = @EXPORT;
|
|
30
|
+
|
|
31
|
+
sub packet_compare_lists {
|
|
32
|
+
my ($expect, @result) = @_;
|
|
33
|
+
my $ix;
|
|
34
|
+
if (scalar @$expect != scalar @result) {
|
|
35
|
+
return undef;
|
|
36
|
+
}
|
|
37
|
+
for ($ix = 0; $ix < $#result; $ix++) {
|
|
38
|
+
if ($expect->[$ix] ne $result[$ix]) {
|
|
39
|
+
return undef;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
sub packet_bin_read {
|
|
46
|
+
my $buffer;
|
|
47
|
+
my $bytes_read = read STDIN, $buffer, 4;
|
|
48
|
+
if ( $bytes_read == 0 ) {
|
|
49
|
+
# EOF - Git stopped talking to us!
|
|
50
|
+
return ( -1, "" );
|
|
51
|
+
} elsif ( $bytes_read != 4 ) {
|
|
52
|
+
die "invalid packet: '$buffer'";
|
|
53
|
+
}
|
|
54
|
+
my $pkt_size = hex($buffer);
|
|
55
|
+
if ( $pkt_size == 0 ) {
|
|
56
|
+
return ( 1, "" );
|
|
57
|
+
} elsif ( $pkt_size > 4 ) {
|
|
58
|
+
my $content_size = $pkt_size - 4;
|
|
59
|
+
$bytes_read = read STDIN, $buffer, $content_size;
|
|
60
|
+
if ( $bytes_read != $content_size ) {
|
|
61
|
+
die "invalid packet ($content_size bytes expected; $bytes_read bytes read)";
|
|
62
|
+
}
|
|
63
|
+
return ( 0, $buffer );
|
|
64
|
+
} else {
|
|
65
|
+
die "invalid packet size: $pkt_size";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
sub remove_final_lf_or_die {
|
|
70
|
+
my $buf = shift;
|
|
71
|
+
if ( $buf =~ s/\n$// ) {
|
|
72
|
+
return $buf;
|
|
73
|
+
}
|
|
74
|
+
die "A non-binary line MUST be terminated by an LF.\n"
|
|
75
|
+
. "Received: '$buf'";
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
sub packet_txt_read {
|
|
79
|
+
my ( $res, $buf ) = packet_bin_read();
|
|
80
|
+
if ( $res != -1 and $buf ne '' ) {
|
|
81
|
+
$buf = remove_final_lf_or_die($buf);
|
|
82
|
+
}
|
|
83
|
+
return ( $res, $buf );
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
# Read a text packet, expecting that it is in the form "key=value" for
|
|
87
|
+
# the given $key. An EOF does not trigger any error and is reported
|
|
88
|
+
# back to the caller (like packet_txt_read() does). Die if the "key"
|
|
89
|
+
# part of "key=value" does not match the given $key, or the value part
|
|
90
|
+
# is empty.
|
|
91
|
+
sub packet_key_val_read {
|
|
92
|
+
my ( $key ) = @_;
|
|
93
|
+
my ( $res, $buf ) = packet_txt_read();
|
|
94
|
+
if ( $res == -1 or ( $buf =~ s/^$key=// and $buf ne '' ) ) {
|
|
95
|
+
return ( $res, $buf );
|
|
96
|
+
}
|
|
97
|
+
die "bad $key: '$buf'";
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
sub packet_bin_write {
|
|
101
|
+
my $buf = shift;
|
|
102
|
+
print STDOUT sprintf( "%04x", length($buf) + 4 );
|
|
103
|
+
print STDOUT $buf;
|
|
104
|
+
STDOUT->flush();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
sub packet_txt_write {
|
|
108
|
+
packet_bin_write( $_[0] . "\n" );
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
sub packet_flush {
|
|
112
|
+
print STDOUT sprintf( "%04x", 0 );
|
|
113
|
+
STDOUT->flush();
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
sub packet_initialize {
|
|
117
|
+
my ($name, $version) = @_;
|
|
118
|
+
|
|
119
|
+
packet_compare_lists([0, $name . "-client"], packet_txt_read()) ||
|
|
120
|
+
die "bad initialize";
|
|
121
|
+
packet_compare_lists([0, "version=" . $version], packet_txt_read()) ||
|
|
122
|
+
die "bad version";
|
|
123
|
+
packet_compare_lists([1, ""], packet_bin_read()) ||
|
|
124
|
+
die "bad version end";
|
|
125
|
+
|
|
126
|
+
packet_txt_write( $name . "-server" );
|
|
127
|
+
packet_txt_write( "version=" . $version );
|
|
128
|
+
packet_flush();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
sub packet_read_capabilities {
|
|
132
|
+
my @cap;
|
|
133
|
+
while (1) {
|
|
134
|
+
my ( $res, $buf ) = packet_bin_read();
|
|
135
|
+
if ( $res == -1 ) {
|
|
136
|
+
die "unexpected EOF when reading capabilities";
|
|
137
|
+
}
|
|
138
|
+
return ( $res, @cap ) if ( $res != 0 );
|
|
139
|
+
$buf = remove_final_lf_or_die($buf);
|
|
140
|
+
unless ( $buf =~ s/capability=// ) {
|
|
141
|
+
die "bad capability buf: '$buf'";
|
|
142
|
+
}
|
|
143
|
+
push @cap, $buf;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
# Read remote capabilities and check them against capabilities we require
|
|
148
|
+
sub packet_read_and_check_capabilities {
|
|
149
|
+
my @required_caps = @_;
|
|
150
|
+
my ($res, @remote_caps) = packet_read_capabilities();
|
|
151
|
+
my %remote_caps = map { $_ => 1 } @remote_caps;
|
|
152
|
+
foreach (@required_caps) {
|
|
153
|
+
unless (exists($remote_caps{$_})) {
|
|
154
|
+
die "required '$_' capability not available from remote" ;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return %remote_caps;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
# Check our capabilities we want to advertise against the remote ones
|
|
161
|
+
# and then advertise our capabilities
|
|
162
|
+
sub packet_check_and_write_capabilities {
|
|
163
|
+
my ($remote_caps, @our_caps) = @_;
|
|
164
|
+
foreach (@our_caps) {
|
|
165
|
+
unless (exists($remote_caps->{$_})) {
|
|
166
|
+
die "our capability '$_' is not available from remote"
|
|
167
|
+
}
|
|
168
|
+
packet_txt_write( "capability=" . $_ );
|
|
169
|
+
}
|
|
170
|
+
packet_flush();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
1;
|