@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.
Files changed (131) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +11 -2
  3. package/git/bin/git +0 -0
  4. package/git/bin/scalar +0 -0
  5. package/git/etc/gitconfig +13 -0
  6. package/git/libexec/git-core/git +0 -0
  7. package/git/libexec/git-core/git-archimport +1136 -0
  8. package/git/libexec/git-core/git-cvsexportcommit +469 -0
  9. package/git/libexec/git-core/git-cvsimport +1185 -0
  10. package/git/libexec/git-core/git-cvsserver +5109 -0
  11. package/git/libexec/git-core/git-daemon +0 -0
  12. package/git/libexec/git-core/git-difftool--helper +125 -0
  13. package/git/libexec/git-core/git-filter-branch +665 -0
  14. package/git/libexec/git-core/git-http-backend +0 -0
  15. package/git/libexec/git-core/git-http-fetch +0 -0
  16. package/git/libexec/git-core/git-imap-send +0 -0
  17. package/git/libexec/git-core/git-instaweb +786 -0
  18. package/git/libexec/git-core/git-merge-octopus +112 -0
  19. package/git/libexec/git-core/git-merge-one-file +167 -0
  20. package/git/libexec/git-core/git-merge-resolve +64 -0
  21. package/git/libexec/git-core/git-mergetool +579 -0
  22. package/git/libexec/git-core/git-mergetool--lib +549 -0
  23. package/git/libexec/git-core/git-quiltimport +155 -0
  24. package/git/libexec/git-core/git-receive-pack +0 -0
  25. package/git/libexec/git-core/git-remote-ftp +0 -0
  26. package/git/libexec/git-core/git-remote-ftps +0 -0
  27. package/git/libexec/git-core/git-remote-http +0 -0
  28. package/git/libexec/git-core/git-remote-https +0 -0
  29. package/git/libexec/git-core/git-request-pull +178 -0
  30. package/git/libexec/git-core/git-send-email +2474 -0
  31. package/git/libexec/git-core/git-sh-i18n +79 -0
  32. package/git/libexec/git-core/git-sh-i18n--envsubst +0 -0
  33. package/git/libexec/git-core/git-sh-setup +357 -0
  34. package/git/libexec/git-core/git-shell +0 -0
  35. package/git/libexec/git-core/git-submodule +671 -0
  36. package/git/libexec/git-core/git-upload-archive +0 -0
  37. package/git/libexec/git-core/git-upload-pack +0 -0
  38. package/git/libexec/git-core/git-web--browse +196 -0
  39. package/git/libexec/git-core/mergetools/araxis +26 -0
  40. package/git/libexec/git-core/mergetools/bc +37 -0
  41. package/git/libexec/git-core/mergetools/codecompare +31 -0
  42. package/git/libexec/git-core/mergetools/deltawalker +33 -0
  43. package/git/libexec/git-core/mergetools/diffmerge +26 -0
  44. package/git/libexec/git-core/mergetools/diffuse +23 -0
  45. package/git/libexec/git-core/mergetools/ecmerge +22 -0
  46. package/git/libexec/git-core/mergetools/emerge +34 -0
  47. package/git/libexec/git-core/mergetools/examdiff +24 -0
  48. package/git/libexec/git-core/mergetools/guiffy +26 -0
  49. package/git/libexec/git-core/mergetools/gvimdiff +1 -0
  50. package/git/libexec/git-core/mergetools/kdiff3 +44 -0
  51. package/git/libexec/git-core/mergetools/kompare +19 -0
  52. package/git/libexec/git-core/mergetools/meld +97 -0
  53. package/git/libexec/git-core/mergetools/nvimdiff +1 -0
  54. package/git/libexec/git-core/mergetools/opendiff +22 -0
  55. package/git/libexec/git-core/mergetools/p4merge +44 -0
  56. package/git/libexec/git-core/mergetools/smerge +20 -0
  57. package/git/libexec/git-core/mergetools/tkdiff +24 -0
  58. package/git/libexec/git-core/mergetools/tortoisemerge +40 -0
  59. package/git/libexec/git-core/mergetools/vimdiff +657 -0
  60. package/git/libexec/git-core/mergetools/vscode +19 -0
  61. package/git/libexec/git-core/mergetools/winmerge +23 -0
  62. package/git/libexec/git-core/mergetools/xxdiff +38 -0
  63. package/git/libexec/git-core/scalar +0 -0
  64. package/git/share/bash-completion/completions/git +4115 -0
  65. package/git/share/git-core/templates/description +1 -0
  66. package/git/share/git-core/templates/hooks/applypatch-msg.sample +15 -0
  67. package/git/share/git-core/templates/hooks/commit-msg.sample +74 -0
  68. package/git/share/git-core/templates/hooks/fsmonitor-watchman.sample +168 -0
  69. package/git/share/git-core/templates/hooks/post-update.sample +8 -0
  70. package/git/share/git-core/templates/hooks/pre-applypatch.sample +14 -0
  71. package/git/share/git-core/templates/hooks/pre-commit.sample +49 -0
  72. package/git/share/git-core/templates/hooks/pre-merge-commit.sample +13 -0
  73. package/git/share/git-core/templates/hooks/pre-push.sample +53 -0
  74. package/git/share/git-core/templates/hooks/pre-rebase.sample +169 -0
  75. package/git/share/git-core/templates/hooks/pre-receive.sample +24 -0
  76. package/git/share/git-core/templates/hooks/prepare-commit-msg.sample +42 -0
  77. package/git/share/git-core/templates/hooks/push-to-checkout.sample +78 -0
  78. package/git/share/git-core/templates/hooks/sendemail-validate.sample +77 -0
  79. package/git/share/git-core/templates/hooks/update.sample +128 -0
  80. package/git/share/git-core/templates/info/exclude +6 -0
  81. package/git/share/gitweb/gitweb.cgi +8499 -0
  82. package/git/share/gitweb/static/git-favicon.png +0 -0
  83. package/git/share/gitweb/static/git-logo.png +0 -0
  84. package/git/share/gitweb/static/gitweb.css +756 -0
  85. package/git/share/gitweb/static/gitweb.js +1579 -0
  86. package/git/share/locale/af/LC_MESSAGES/git.mo +0 -0
  87. package/git/share/locale/bg/LC_MESSAGES/git.mo +0 -0
  88. package/git/share/locale/ca/LC_MESSAGES/git.mo +0 -0
  89. package/git/share/locale/de/LC_MESSAGES/git.mo +0 -0
  90. package/git/share/locale/el/LC_MESSAGES/git.mo +0 -0
  91. package/git/share/locale/es/LC_MESSAGES/git.mo +0 -0
  92. package/git/share/locale/fr/LC_MESSAGES/git.mo +0 -0
  93. package/git/share/locale/ga/LC_MESSAGES/git.mo +0 -0
  94. package/git/share/locale/id/LC_MESSAGES/git.mo +0 -0
  95. package/git/share/locale/is/LC_MESSAGES/git.mo +0 -0
  96. package/git/share/locale/it/LC_MESSAGES/git.mo +0 -0
  97. package/git/share/locale/ko/LC_MESSAGES/git.mo +0 -0
  98. package/git/share/locale/pl/LC_MESSAGES/git.mo +0 -0
  99. package/git/share/locale/pt_BR/LC_MESSAGES/git.mo +0 -0
  100. package/git/share/locale/pt_PT/LC_MESSAGES/git.mo +0 -0
  101. package/git/share/locale/ru/LC_MESSAGES/git.mo +0 -0
  102. package/git/share/locale/sv/LC_MESSAGES/git.mo +0 -0
  103. package/git/share/locale/tr/LC_MESSAGES/git.mo +0 -0
  104. package/git/share/locale/uk/LC_MESSAGES/git.mo +0 -0
  105. package/git/share/locale/vi/LC_MESSAGES/git.mo +0 -0
  106. package/git/share/locale/zh_CN/LC_MESSAGES/git.mo +0 -0
  107. package/git/share/locale/zh_TW/LC_MESSAGES/git.mo +0 -0
  108. package/git/share/perl5/FromCPAN/Error.pm +1040 -0
  109. package/git/share/perl5/FromCPAN/Mail/Address.pm +280 -0
  110. package/git/share/perl5/Git/I18N.pm +125 -0
  111. package/git/share/perl5/Git/IndexInfo.pm +35 -0
  112. package/git/share/perl5/Git/LoadCPAN/Error.pm +10 -0
  113. package/git/share/perl5/Git/LoadCPAN/Mail/Address.pm +10 -0
  114. package/git/share/perl5/Git/LoadCPAN.pm +104 -0
  115. package/git/share/perl5/Git/Packet.pm +173 -0
  116. package/git/share/perl5/Git/SVN/Editor.pm +605 -0
  117. package/git/share/perl5/Git/SVN/Fetcher.pm +622 -0
  118. package/git/share/perl5/Git/SVN/GlobSpec.pm +65 -0
  119. package/git/share/perl5/Git/SVN/Log.pm +400 -0
  120. package/git/share/perl5/Git/SVN/Memoize/YAML.pm +93 -0
  121. package/git/share/perl5/Git/SVN/Migration.pm +265 -0
  122. package/git/share/perl5/Git/SVN/Prompt.pm +184 -0
  123. package/git/share/perl5/Git/SVN/Ra.pm +708 -0
  124. package/git/share/perl5/Git/SVN/Utils.pm +232 -0
  125. package/git/share/perl5/Git/SVN.pm +2573 -0
  126. package/git/share/perl5/Git.pm +1780 -0
  127. package/licenses/git/COPYING +360 -0
  128. package/licenses/git/LGPL-2.1 +511 -0
  129. package/licenses/perl-modules-from-cpan/Artistic +131 -0
  130. package/licenses/perl-modules-from-cpan/Copying +250 -0
  131. 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;