merge(third_party/git): Merge squashed git subtree at v2.23.0
Merge commit '1b593e1ea4' as 'third_party/git'
This commit is contained in:
commit
7ef0d62730
3629 changed files with 1139935 additions and 0 deletions
18
third_party/git/t/t4018/README
vendored
Normal file
18
third_party/git/t/t4018/README
vendored
Normal 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.
|
||||
4
third_party/git/t/t4018/cpp-c++-function
vendored
Normal file
4
third_party/git/t/t4018/cpp-c++-function
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Item RIGHT::DoSomething( Args with_spaces )
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
4
third_party/git/t/t4018/cpp-class-constructor
vendored
Normal file
4
third_party/git/t/t4018/cpp-class-constructor
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Item::Item(int RIGHT)
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
5
third_party/git/t/t4018/cpp-class-constructor-mem-init
vendored
Normal file
5
third_party/git/t/t4018/cpp-class-constructor-mem-init
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Item::Item(int RIGHT) :
|
||||
member(0)
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
4
third_party/git/t/t4018/cpp-class-definition
vendored
Normal file
4
third_party/git/t/t4018/cpp-class-definition
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
class RIGHT
|
||||
{
|
||||
int ChangeMe;
|
||||
};
|
||||
5
third_party/git/t/t4018/cpp-class-definition-derived
vendored
Normal file
5
third_party/git/t/t4018/cpp-class-definition-derived
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class RIGHT :
|
||||
public Baseclass
|
||||
{
|
||||
int ChangeMe;
|
||||
};
|
||||
4
third_party/git/t/t4018/cpp-class-destructor
vendored
Normal file
4
third_party/git/t/t4018/cpp-class-destructor
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
RIGHT::~RIGHT()
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
4
third_party/git/t/t4018/cpp-function-returning-global-type
vendored
Normal file
4
third_party/git/t/t4018/cpp-function-returning-global-type
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
::Item get::it::RIGHT()
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
5
third_party/git/t/t4018/cpp-function-returning-nested
vendored
Normal file
5
third_party/git/t/t4018/cpp-function-returning-nested
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
get::Item get::it::RIGHT()
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
|
||||
4
third_party/git/t/t4018/cpp-function-returning-pointer
vendored
Normal file
4
third_party/git/t/t4018/cpp-function-returning-pointer
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
const char *get_it_RIGHT(char *ptr)
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
4
third_party/git/t/t4018/cpp-function-returning-reference
vendored
Normal file
4
third_party/git/t/t4018/cpp-function-returning-reference
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
string& get::it::RIGHT(char *ptr)
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
5
third_party/git/t/t4018/cpp-gnu-style-function
vendored
Normal file
5
third_party/git/t/t4018/cpp-gnu-style-function
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
const char *
|
||||
RIGHT(int arg)
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
4
third_party/git/t/t4018/cpp-namespace-definition
vendored
Normal file
4
third_party/git/t/t4018/cpp-namespace-definition
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
namespace RIGHT
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
4
third_party/git/t/t4018/cpp-operator-definition
vendored
Normal file
4
third_party/git/t/t4018/cpp-operator-definition
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Value operator+(Value LEFT, Value RIGHT)
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
8
third_party/git/t/t4018/cpp-skip-access-specifiers
vendored
Normal file
8
third_party/git/t/t4018/cpp-skip-access-specifiers
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class RIGHT : public Baseclass
|
||||
{
|
||||
public:
|
||||
protected:
|
||||
private:
|
||||
void DoSomething();
|
||||
int ChangeMe;
|
||||
};
|
||||
9
third_party/git/t/t4018/cpp-skip-comment-block
vendored
Normal file
9
third_party/git/t/t4018/cpp-skip-comment-block
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
struct item RIGHT(int i)
|
||||
// Do not
|
||||
// pick up
|
||||
/* these
|
||||
** comments.
|
||||
*/
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
8
third_party/git/t/t4018/cpp-skip-labels
vendored
Normal file
8
third_party/git/t/t4018/cpp-skip-labels
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
void RIGHT (void)
|
||||
{
|
||||
repeat: // C++ comment
|
||||
next: /* C comment */
|
||||
do_something();
|
||||
|
||||
ChangeMe;
|
||||
}
|
||||
9
third_party/git/t/t4018/cpp-struct-definition
vendored
Normal file
9
third_party/git/t/t4018/cpp-struct-definition
vendored
Normal 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;
|
||||
};
|
||||
7
third_party/git/t/t4018/cpp-struct-single-line
vendored
Normal file
7
third_party/git/t/t4018/cpp-struct-single-line
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
void wrong()
|
||||
{
|
||||
}
|
||||
|
||||
struct RIGHT_iterator_tag {};
|
||||
|
||||
int ChangeMe;
|
||||
4
third_party/git/t/t4018/cpp-template-function-definition
vendored
Normal file
4
third_party/git/t/t4018/cpp-template-function-definition
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
template<class T> int RIGHT(T arg)
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
4
third_party/git/t/t4018/cpp-union-definition
vendored
Normal file
4
third_party/git/t/t4018/cpp-union-definition
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
union RIGHT {
|
||||
double v;
|
||||
int ChangeMe;
|
||||
};
|
||||
4
third_party/git/t/t4018/cpp-void-c-function
vendored
Normal file
4
third_party/git/t/t4018/cpp-void-c-function
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
void RIGHT (void)
|
||||
{
|
||||
ChangeMe;
|
||||
}
|
||||
5
third_party/git/t/t4018/css-brace-in-col-1
vendored
Normal file
5
third_party/git/t/t4018/css-brace-in-col-1
vendored
Normal 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
4
third_party/git/t/t4018/css-colon-eol
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
RIGHT h1 {
|
||||
color:
|
||||
ChangeMe;
|
||||
}
|
||||
5
third_party/git/t/t4018/css-colon-selector
vendored
Normal file
5
third_party/git/t/t4018/css-colon-selector
vendored
Normal 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
4
third_party/git/t/t4018/css-common
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
RIGHT label.control-label {
|
||||
margin-top: 10px!important;
|
||||
border : 10px ChangeMe #C6C6C6;
|
||||
}
|
||||
6
third_party/git/t/t4018/css-long-selector-list
vendored
Normal file
6
third_party/git/t/t4018/css-long-selector-list
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
p.header,
|
||||
label.control-label,
|
||||
div ul#RIGHT {
|
||||
margin-top: 10px!important;
|
||||
border : 10px ChangeMe #C6C6C6;
|
||||
}
|
||||
5
third_party/git/t/t4018/css-prop-sans-indent
vendored
Normal file
5
third_party/git/t/t4018/css-prop-sans-indent
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
RIGHT, label.control-label {
|
||||
margin-top: 10px!important;
|
||||
padding: 0;
|
||||
border : 10px ChangeMe #C6C6C6;
|
||||
}
|
||||
4
third_party/git/t/t4018/css-short-selector-list
vendored
Normal file
4
third_party/git/t/t4018/css-short-selector-list
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
label.control, div ul#RIGHT {
|
||||
margin-top: 10px!important;
|
||||
border : 10px ChangeMe #C6C6C6;
|
||||
}
|
||||
5
third_party/git/t/t4018/css-trailing-space
vendored
Normal file
5
third_party/git/t/t4018/css-trailing-space
vendored
Normal 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
17
third_party/git/t/t4018/custom1-pattern
vendored
Normal 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");
|
||||
}
|
||||
}
|
||||
8
third_party/git/t/t4018/custom2-match-to-end-of-line
vendored
Normal file
8
third_party/git/t/t4018/custom2-match-to-end-of-line
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
public class RIGHT_Beer
|
||||
{
|
||||
int special;
|
||||
public static void main(String args[])
|
||||
{
|
||||
System.out.print("ChangeMe");
|
||||
}
|
||||
}
|
||||
17
third_party/git/t/t4018/custom3-alternation-in-pattern
vendored
Normal file
17
third_party/git/t/t4018/custom3-alternation-in-pattern
vendored
Normal 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");
|
||||
}
|
||||
}
|
||||
4
third_party/git/t/t4018/fountain-scene
vendored
Normal file
4
third_party/git/t/t4018/fountain-scene
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
EXT. STREET RIGHT OUTSIDE - DAY
|
||||
|
||||
CHARACTER
|
||||
You didn't say the magic phrase, "ChangeMe".
|
||||
8
third_party/git/t/t4018/golang-complex-function
vendored
Normal file
8
third_party/git/t/t4018/golang-complex-function
vendored
Normal 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
4
third_party/git/t/t4018/golang-func
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
func RIGHT() {
|
||||
a := 5
|
||||
b := ChangeMe
|
||||
}
|
||||
4
third_party/git/t/t4018/golang-interface
vendored
Normal file
4
third_party/git/t/t4018/golang-interface
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
type RIGHT interface {
|
||||
a() Type
|
||||
b() ChangeMe
|
||||
}
|
||||
5
third_party/git/t/t4018/golang-long-func
vendored
Normal file
5
third_party/git/t/t4018/golang-long-func
vendored
Normal 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
4
third_party/git/t/t4018/golang-struct
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
type RIGHT struct {
|
||||
a Type
|
||||
b ChangeMe
|
||||
}
|
||||
8
third_party/git/t/t4018/java-class-member-function
vendored
Normal file
8
third_party/git/t/t4018/java-class-member-function
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
public class Beer
|
||||
{
|
||||
int special;
|
||||
public static void main(String RIGHT[])
|
||||
{
|
||||
System.out.print("ChangeMe");
|
||||
}
|
||||
}
|
||||
5
third_party/git/t/t4018/matlab-class-definition
vendored
Normal file
5
third_party/git/t/t4018/matlab-class-definition
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
classdef RIGHT
|
||||
properties
|
||||
ChangeMe
|
||||
end
|
||||
end
|
||||
4
third_party/git/t/t4018/matlab-function
vendored
Normal file
4
third_party/git/t/t4018/matlab-function
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function y = RIGHT()
|
||||
x = 5;
|
||||
y = ChangeMe + x;
|
||||
end
|
||||
3
third_party/git/t/t4018/matlab-octave-section-1
vendored
Normal file
3
third_party/git/t/t4018/matlab-octave-section-1
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
%%% RIGHT section
|
||||
# this is octave script
|
||||
ChangeMe = 1;
|
||||
3
third_party/git/t/t4018/matlab-octave-section-2
vendored
Normal file
3
third_party/git/t/t4018/matlab-octave-section-2
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
## RIGHT section
|
||||
# this is octave script
|
||||
ChangeMe = 1;
|
||||
3
third_party/git/t/t4018/matlab-section
vendored
Normal file
3
third_party/git/t/t4018/matlab-section
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
%% RIGHT section
|
||||
% this is understood by both matlab and octave
|
||||
ChangeMe = 1;
|
||||
8
third_party/git/t/t4018/perl-skip-end-of-heredoc
vendored
Normal file
8
third_party/git/t/t4018/perl-skip-end-of-heredoc
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
sub RIGHTwithheredocument {
|
||||
print <<"EOF"
|
||||
decoy here-doc
|
||||
EOF
|
||||
# some lines of context
|
||||
# to pad it out
|
||||
print "ChangeMe\n";
|
||||
}
|
||||
10
third_party/git/t/t4018/perl-skip-forward-decl
vendored
Normal file
10
third_party/git/t/t4018/perl-skip-forward-decl
vendored
Normal 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
|
||||
18
third_party/git/t/t4018/perl-skip-sub-in-pod
vendored
Normal file
18
third_party/git/t/t4018/perl-skip-sub-in-pod
vendored
Normal 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
|
||||
4
third_party/git/t/t4018/perl-sub-definition
vendored
Normal file
4
third_party/git/t/t4018/perl-sub-definition
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
sub RIGHT {
|
||||
my ($n) = @_;
|
||||
print "ChangeMe";
|
||||
}
|
||||
4
third_party/git/t/t4018/perl-sub-definition-kr-brace
vendored
Normal file
4
third_party/git/t/t4018/perl-sub-definition-kr-brace
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
sub RIGHT
|
||||
{
|
||||
print "ChangeMe\n";
|
||||
}
|
||||
4
third_party/git/t/t4018/php-abstract-class
vendored
Normal file
4
third_party/git/t/t4018/php-abstract-class
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
abstract class RIGHT
|
||||
{
|
||||
const FOO = 'ChangeMe';
|
||||
}
|
||||
4
third_party/git/t/t4018/php-class
vendored
Normal file
4
third_party/git/t/t4018/php-class
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
class RIGHT
|
||||
{
|
||||
const FOO = 'ChangeMe';
|
||||
}
|
||||
4
third_party/git/t/t4018/php-final-class
vendored
Normal file
4
third_party/git/t/t4018/php-final-class
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
final class RIGHT
|
||||
{
|
||||
const FOO = 'ChangeMe';
|
||||
}
|
||||
4
third_party/git/t/t4018/php-function
vendored
Normal file
4
third_party/git/t/t4018/php-function
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function RIGHT()
|
||||
{
|
||||
return 'ChangeMe';
|
||||
}
|
||||
4
third_party/git/t/t4018/php-interface
vendored
Normal file
4
third_party/git/t/t4018/php-interface
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
interface RIGHT
|
||||
{
|
||||
public function foo($ChangeMe);
|
||||
}
|
||||
7
third_party/git/t/t4018/php-method
vendored
Normal file
7
third_party/git/t/t4018/php-method
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class Klass
|
||||
{
|
||||
public static function RIGHT()
|
||||
{
|
||||
return 'ChangeMe';
|
||||
}
|
||||
}
|
||||
7
third_party/git/t/t4018/php-trait
vendored
Normal file
7
third_party/git/t/t4018/php-trait
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
trait RIGHT
|
||||
{
|
||||
public function foo($ChangeMe)
|
||||
{
|
||||
return 'foo';
|
||||
}
|
||||
}
|
||||
5
third_party/git/t/t4018/rust-fn
vendored
Normal file
5
third_party/git/t/t4018/rust-fn
vendored
Normal 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
5
third_party/git/t/t4018/rust-impl
vendored
Normal 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
5
third_party/git/t/t4018/rust-struct
vendored
Normal 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
5
third_party/git/t/t4018/rust-trait
vendored
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue