<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4018-diff-funcname.sh, branch v2.0.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.0.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.0.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-03-21T22:03:28Z</updated>
<entry>
<title>t4018: reduce test files for pattern compilation tests</title>
<updated>2014-03-21T22:03:28Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2014-03-21T21:07:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ad5070fb363b1e7ee7e1df83a17f4e8e1eb607a0'/>
<id>urn:sha1:ad5070fb363b1e7ee7e1df83a17f4e8e1eb607a0</id>
<content type='text'>
All test cases that need a file with specific text patterns have been
converted to utilize texts in the t4018/ directory. The remaining tests
in the test script deal only with the validity of the regular
expressions. These tests do not depend on the contents of files that
'git diff' is invoked on. Remove the largish here-document and use only
tiny files.

While we are touching these tests, convert grep to test_i18ngrep as the
texts checked for may undergo translation in the future.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4018: convert custom pattern test to the new infrastructure</title>
<updated>2014-03-21T22:02:57Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2014-03-21T21:07:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f1b75fbaf1380e00668f775f27ba8dd52b78a081'/>
<id>urn:sha1:f1b75fbaf1380e00668f775f27ba8dd52b78a081</id>
<content type='text'>
For the test case "matches to end of line", extend the pattern by a few
wildcards so that the pattern captures the "RIGHT" token, which is needed
for verification, without mentioning it in the pattern.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4018: convert java pattern test to the new infrastructure</title>
<updated>2014-03-21T22:02:36Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2014-03-21T21:07:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dd4dc5c574c0849fef6855d9efdfae5dc9369f2d'/>
<id>urn:sha1:dd4dc5c574c0849fef6855d9efdfae5dc9369f2d</id>
<content type='text'>
Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4018: convert perl pattern tests to the new infrastructure</title>
<updated>2014-03-21T22:02:19Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2014-03-21T21:07:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2d08413ba1ce0a1940e97a5a8af5faf40ab8d178'/>
<id>urn:sha1:2d08413ba1ce0a1940e97a5a8af5faf40ab8d178</id>
<content type='text'>
There is one subtlety: The old test case 'perl pattern gets full line of
POD header' does not have its own new test case, but the feature is
tested nevertheless by placing the RIGHT tag at the end of the expected
hunk header in t4018/perl-skip-sub-in-pod.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4018: an infrastructure to test hunk headers</title>
<updated>2014-03-21T22:00:51Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2014-03-21T21:07:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bfa7d01413bd02b5b3675ef0e96f764064a13ce8'/>
<id>urn:sha1:bfa7d01413bd02b5b3675ef0e96f764064a13ce8</id>
<content type='text'>
Add an infrastructure that simplifies adding new tests of the hunk
header regular expressions.

To add new tests, a file with the syntax to test can be dropped in the
directory t4018. The README file explains how a test file must contain;
the README itself tests the default behavior.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rr/tests-dedup-test-config'</title>
<updated>2013-03-28T21:38:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-03-28T21:38:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4806c8c5cae6864f7a478be3b32b3aa354aaad66'/>
<id>urn:sha1:4806c8c5cae6864f7a478be3b32b3aa354aaad66</id>
<content type='text'>
* rr/tests-dedup-test-config:
  t4018,7810,7811: remove test_config() redefinition
</content>
</entry>
<entry>
<title>t4018,7810,7811: remove test_config() redefinition</title>
<updated>2013-03-19T16:10:15Z</updated>
<author>
<name>Ramkumar Ramachandra</name>
<email>artagnon@gmail.com</email>
</author>
<published>2013-03-19T10:43:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3f21fb99ab5335146617f21b885dc41afc7943d6'/>
<id>urn:sha1:3f21fb99ab5335146617f21b885dc41afc7943d6</id>
<content type='text'>
test_config() is already a well-defined function in
test-lib-functions.sh.  Don't duplicate it unnecessarily.

Signed-off-by: Ramkumar Ramachandra &lt;artagnon@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add userdiff patterns for Ada</title>
<updated>2012-09-17T04:54:47Z</updated>
<author>
<name>Adrian Johnson</name>
<email>ajohnson@redneon.com</email>
</author>
<published>2012-09-16T03:54:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e90d065e64702d09fbdfc7cfd1c97456c7faa74c'/>
<id>urn:sha1:e90d065e64702d09fbdfc7cfd1c97456c7faa74c</id>
<content type='text'>
Add Ada xfuncname and wordRegex patterns to the list of builtin
patterns.

Signed-off-by: Adrian Johnson &lt;ajohnson@redneon.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add built-in diff patterns for MATLAB code</title>
<updated>2011-11-16T00:11:52Z</updated>
<author>
<name>Gustaf Hendeby</name>
<email>hendeby@isy.liu.se</email>
</author>
<published>2011-11-15T20:15:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=53b10a140527253f61cfc209a4e85e132c0bc4ee'/>
<id>urn:sha1:53b10a140527253f61cfc209a4e85e132c0bc4ee</id>
<content type='text'>
MATLAB is often used in industry and academia for scientific
computations motivating it being included as a built-in pattern.

Signed-off-by: Gustaf Hendeby &lt;hendeby@isy.liu.se&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>userdiff/perl: tighten BEGIN/END block pattern to reject here-doc delimiters</title>
<updated>2011-05-23T18:39:13Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2011-05-22T17:29:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f143d9c695cd4c3e86069c536fa0dff04fc93e93'/>
<id>urn:sha1:f143d9c695cd4c3e86069c536fa0dff04fc93e93</id>
<content type='text'>
A naive method of treating BEGIN/END blocks with a brace on the second
line as diff/grep funcname context involves also matching unrelated
lines that consist of all-caps letters:

	sub foo {
		print &lt;&lt;'EOF'
	text goes here
	...
	EOF
		... rest of foo ...
	}

That's not so great, because it means that "git diff" and "git grep
--show-function" would write "=EOF" or "@@ EOF" as context instead of
a more useful reminder like "@@ sub foo {".

To avoid this, tighten the pattern to only match the special block
names that perl accepts (namely BEGIN, END, INIT, CHECK, UNITCHECK,
AUTOLOAD, and DESTROY).  The list is taken from perl's toke.c.

Suggested-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
