merge(third_party/git): Merge squashed git subtree at v2.23.0

Merge commit '1b593e1ea4' as 'third_party/git'
This commit is contained in:
Vincent Ambo 2020-01-11 23:36:56 +00:00
commit 7ef0d62730
3629 changed files with 1139935 additions and 0 deletions

18
third_party/git/t/t4018/README vendored Normal file
View file

@ -0,0 +1,18 @@
How to write RIGHT test cases
=============================
Insert the word "ChangeMe" (exactly this form) at a distance of
at least two lines from the line that must appear in the hunk header.
The text that must appear in the hunk header must contain the word
"right", but in all upper-case, like in the title above.
To mark a test case that highlights a malfunction, insert the word
BROKEN in all lower-case somewhere in the file.
This text is a bit twisted and out of order, but it is itself a
test case for the default hunk header pattern. Know what you are doing
if you change it.
BTW, this tests that the head line goes to the hunk header, not the line
of equal signs.

View file

@ -0,0 +1,4 @@
Item RIGHT::DoSomething( Args with_spaces )
{
ChangeMe;
}

View file

@ -0,0 +1,4 @@
Item::Item(int RIGHT)
{
ChangeMe;
}

View file

@ -0,0 +1,5 @@
Item::Item(int RIGHT) :
member(0)
{
ChangeMe;
}

View file

@ -0,0 +1,4 @@
class RIGHT
{
int ChangeMe;
};

View file

@ -0,0 +1,5 @@
class RIGHT :
public Baseclass
{
int ChangeMe;
};

View file

@ -0,0 +1,4 @@
RIGHT::~RIGHT()
{
ChangeMe;
}

View file

@ -0,0 +1,4 @@
::Item get::it::RIGHT()
{
ChangeMe;
}

View file

@ -0,0 +1,5 @@
get::Item get::it::RIGHT()
{
ChangeMe;
}

View file

@ -0,0 +1,4 @@
const char *get_it_RIGHT(char *ptr)
{
ChangeMe;
}

View file

@ -0,0 +1,4 @@
string& get::it::RIGHT(char *ptr)
{
ChangeMe;
}

View file

@ -0,0 +1,5 @@
const char *
RIGHT(int arg)
{
ChangeMe;
}

View file

@ -0,0 +1,4 @@
namespace RIGHT
{
ChangeMe;
}

View file

@ -0,0 +1,4 @@
Value operator+(Value LEFT, Value RIGHT)
{
ChangeMe;
}

View file

@ -0,0 +1,8 @@
class RIGHT : public Baseclass
{
public:
protected:
private:
void DoSomething();
int ChangeMe;
};

View file

@ -0,0 +1,9 @@
struct item RIGHT(int i)
// Do not
// pick up
/* these
** comments.
*/
{
ChangeMe;
}

View file

@ -0,0 +1,8 @@
void RIGHT (void)
{
repeat: // C++ comment
next: /* C comment */
do_something();
ChangeMe;
}

View file

@ -0,0 +1,9 @@
struct RIGHT {
unsigned
/* this bit field looks like a label and should not be picked up */
decoy_bitfield: 2,
more : 1;
int filler;
int ChangeMe;
};

View file

@ -0,0 +1,7 @@
void wrong()
{
}
struct RIGHT_iterator_tag {};
int ChangeMe;

View file

@ -0,0 +1,4 @@
template<class T> int RIGHT(T arg)
{
ChangeMe;
}

View file

@ -0,0 +1,4 @@
union RIGHT {
double v;
int ChangeMe;
};

View file

@ -0,0 +1,4 @@
void RIGHT (void)
{
ChangeMe;
}

View file

@ -0,0 +1,5 @@
RIGHT label.control-label
{
margin-top: 10px!important;
border : 10px ChangeMe #C6C6C6;
}

4
third_party/git/t/t4018/css-colon-eol vendored Normal file
View file

@ -0,0 +1,4 @@
RIGHT h1 {
color:
ChangeMe;
}

View file

@ -0,0 +1,5 @@
RIGHT a:hover {
margin-top:
10px!important;
border : 10px ChangeMe #C6C6C6;
}

4
third_party/git/t/t4018/css-common vendored Normal file
View file

@ -0,0 +1,4 @@
RIGHT label.control-label {
margin-top: 10px!important;
border : 10px ChangeMe #C6C6C6;
}

View file

@ -0,0 +1,6 @@
p.header,
label.control-label,
div ul#RIGHT {
margin-top: 10px!important;
border : 10px ChangeMe #C6C6C6;
}

View file

@ -0,0 +1,5 @@
RIGHT, label.control-label {
margin-top: 10px!important;
padding: 0;
border : 10px ChangeMe #C6C6C6;
}

View file

@ -0,0 +1,4 @@
label.control, div ul#RIGHT {
margin-top: 10px!important;
border : 10px ChangeMe #C6C6C6;
}

View file

@ -0,0 +1,5 @@
RIGHT label.control-label {
margin:10px;
padding:10px;
border : 10px ChangeMe #C6C6C6;
}

17
third_party/git/t/t4018/custom1-pattern vendored Normal file
View file

@ -0,0 +1,17 @@
public class Beer
{
int special, RIGHT;
public static void main(String args[])
{
String s=" ";
for(int x = 99; x > 0; x--)
{
System.out.print(x + " bottles of beer on the wall "
+ x + " bottles of beer\n" // ChangeMe
+ "Take one down, pass it around, " + (x - 1)
+ " bottles of beer on the wall.\n");
}
System.out.print("Go to the store, buy some more,\n"
+ "99 bottles of beer on the wall.\n");
}
}

View file

@ -0,0 +1,8 @@
public class RIGHT_Beer
{
int special;
public static void main(String args[])
{
System.out.print("ChangeMe");
}
}

View file

@ -0,0 +1,17 @@
public class Beer
{
int special;
public static void main(String RIGHT[])
{
String s=" ";
for(int x = 99; x > 0; x--)
{
System.out.print(x + " bottles of beer on the wall "
+ x + " bottles of beer\n" // ChangeMe
+ "Take one down, pass it around, " + (x - 1)
+ " bottles of beer on the wall.\n");
}
System.out.print("Go to the store, buy some more,\n"
+ "99 bottles of beer on the wall.\n");
}
}

View file

@ -0,0 +1,4 @@
EXT. STREET RIGHT OUTSIDE - DAY
CHARACTER
You didn't say the magic phrase, "ChangeMe".

View file

@ -0,0 +1,8 @@
type Test struct {
a Type
}
func (t *Test) RIGHT(a Type) (Type, error) {
t.a = a
return ChangeMe, nil
}

4
third_party/git/t/t4018/golang-func vendored Normal file
View file

@ -0,0 +1,4 @@
func RIGHT() {
a := 5
b := ChangeMe
}

View file

@ -0,0 +1,4 @@
type RIGHT interface {
a() Type
b() ChangeMe
}

View file

@ -0,0 +1,5 @@
func RIGHT(aVeryVeryVeryLongVariableName AVeryVeryVeryLongType,
anotherLongVariableName AnotherLongType) {
a := 5
b := ChangeMe
}

4
third_party/git/t/t4018/golang-struct vendored Normal file
View file

@ -0,0 +1,4 @@
type RIGHT struct {
a Type
b ChangeMe
}

View file

@ -0,0 +1,8 @@
public class Beer
{
int special;
public static void main(String RIGHT[])
{
System.out.print("ChangeMe");
}
}

View file

@ -0,0 +1,5 @@
classdef RIGHT
properties
ChangeMe
end
end

View file

@ -0,0 +1,4 @@
function y = RIGHT()
x = 5;
y = ChangeMe + x;
end

View file

@ -0,0 +1,3 @@
%%% RIGHT section
# this is octave script
ChangeMe = 1;

View file

@ -0,0 +1,3 @@
## RIGHT section
# this is octave script
ChangeMe = 1;

View file

@ -0,0 +1,3 @@
%% RIGHT section
% this is understood by both matlab and octave
ChangeMe = 1;

View file

@ -0,0 +1,8 @@
sub RIGHTwithheredocument {
print <<"EOF"
decoy here-doc
EOF
# some lines of context
# to pad it out
print "ChangeMe\n";
}

View file

@ -0,0 +1,10 @@
package RIGHT;
use strict;
use warnings;
use parent qw(Exporter);
our @EXPORT_OK = qw(round finalround);
sub other; # forward declaration
# ChangeMe

View file

@ -0,0 +1,18 @@
=head1 NAME
Beer - subroutine to output fragment of a drinking song
=head1 SYNOPSIS_RIGHT
use Beer qw(round finalround);
sub song {
for (my $i = 99; $i > 0; $i--) {
round $i;
}
finalround;
}
ChangeMe;
=cut

View file

@ -0,0 +1,4 @@
sub RIGHT {
my ($n) = @_;
print "ChangeMe";
}

View file

@ -0,0 +1,4 @@
sub RIGHT
{
print "ChangeMe\n";
}

View file

@ -0,0 +1,4 @@
abstract class RIGHT
{
const FOO = 'ChangeMe';
}

4
third_party/git/t/t4018/php-class vendored Normal file
View file

@ -0,0 +1,4 @@
class RIGHT
{
const FOO = 'ChangeMe';
}

View file

@ -0,0 +1,4 @@
final class RIGHT
{
const FOO = 'ChangeMe';
}

4
third_party/git/t/t4018/php-function vendored Normal file
View file

@ -0,0 +1,4 @@
function RIGHT()
{
return 'ChangeMe';
}

4
third_party/git/t/t4018/php-interface vendored Normal file
View file

@ -0,0 +1,4 @@
interface RIGHT
{
public function foo($ChangeMe);
}

7
third_party/git/t/t4018/php-method vendored Normal file
View file

@ -0,0 +1,7 @@
class Klass
{
public static function RIGHT()
{
return 'ChangeMe';
}
}

7
third_party/git/t/t4018/php-trait vendored Normal file
View file

@ -0,0 +1,7 @@
trait RIGHT
{
public function foo($ChangeMe)
{
return 'foo';
}
}

5
third_party/git/t/t4018/rust-fn vendored Normal file
View file

@ -0,0 +1,5 @@
pub(self) fn RIGHT<T>(x: &[T]) where T: Debug {
let _ = x;
// a comment
let a = ChangeMe;
}

5
third_party/git/t/t4018/rust-impl vendored Normal file
View file

@ -0,0 +1,5 @@
impl<'a, T: AsRef<[u8]>> std::RIGHT for Git<'a> {
pub fn ChangeMe(&self) -> () {
}
}

5
third_party/git/t/t4018/rust-struct vendored Normal file
View file

@ -0,0 +1,5 @@
#[derive(Debug)]
pub(super) struct RIGHT<'a> {
name: &'a str,
age: ChangeMe,
}

5
third_party/git/t/t4018/rust-trait vendored Normal file
View file

@ -0,0 +1,5 @@
unsafe trait RIGHT<T> {
fn len(&self) -> u32;
fn ChangeMe(&self, n: u32) -> T;
fn iter<F>(&self, f: F) where F: Fn(T);
}