<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4018-diff-funcname.sh, branch gitk-resize-error</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=gitk-resize-error</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=gitk-resize-error'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2021-12-13T18:29:48Z</updated>
<entry>
<title>t4000-t4999: detect and signal failure within loop</title>
<updated>2021-12-13T18:29:48Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2021-12-09T05:11:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=cbe1d9d630e529d3dd240eacf3d1c9799fef702b'/>
<id>urn:sha1:cbe1d9d630e529d3dd240eacf3d1c9799fef702b</id>
<content type='text'>
Failures within `for` and `while` loops can go unnoticed if not detected
and signaled manually since the loop itself does not abort when a
contained command fails, nor will a failure necessarily be detected when
the loop finishes since the loop returns the exit code of the last
command it ran on the final iteration, which may not be the command
which failed. Therefore, detect and signal failures manually within
loops using the idiom `|| return 1` (or `|| exit 1` within subshells).

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Reviewed-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>userdiff: remove support for "broken" tests</title>
<updated>2021-04-08T19:19:10Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-04-08T15:04:22Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=6cb77966ec8e335fc21ac555a851b81598971ebf'/>
<id>urn:sha1:6cb77966ec8e335fc21ac555a851b81598971ebf</id>
<content type='text'>
There have been no "broken" tests since 75c3b6b2e8 (userdiff: improve
Fortran xfuncname regex, 2020-08-12). Let's remove the test support
for them.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>userdiff tests: list builtin drivers via test-tool</title>
<updated>2021-04-08T19:19:10Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-04-08T15:04:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=28e8f0d5e5a6db005fdb22c65ee0d43cf15c4b17'/>
<id>urn:sha1:28e8f0d5e5a6db005fdb22c65ee0d43cf15c4b17</id>
<content type='text'>
Change the userdiff test to list the builtin drivers via the
test-tool, using the new for_each_userdiff_driver() API function.

This gets rid of the need to modify this part of the test every time a
new pattern is added, see 2ff6c34612 (userdiff: support Bash,
2020-10-22) and 09dad9256a (userdiff: support Markdown, 2020-05-02)
for two recent examples.

I only need the "list-builtin-drivers "argument here, but let's add
"list-custom-drivers" and "list-drivers" too, just because it's easy.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>userdiff tests: explicitly test "default" pattern</title>
<updated>2021-04-08T19:19:10Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-04-08T15:04:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=132bf259890c1f5b29befcc68e9ed225187ca9f6'/>
<id>urn:sha1:132bf259890c1f5b29befcc68e9ed225187ca9f6</id>
<content type='text'>
Since 122aa6f9c0 (diff: introduce diff.&lt;driver&gt;.binary, 2008-10-05)
the internals of the userdiff.c code have understood a "default" name,
which is invoked as userdiff_find_by_name("default") and present in
the "builtin_drivers" struct. Let's test for this special case.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>userdiff: support Bash</title>
<updated>2020-10-22T17:29:30Z</updated>
<author>
<name>Victor Engmark</name>
<email>victor@engmark.name</email>
</author>
<published>2020-10-21T23:45:08Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=2ff6c34612057baccbd841524106c5a05f6be6d6'/>
<id>urn:sha1:2ff6c34612057baccbd841524106c5a05f6be6d6</id>
<content type='text'>
Support POSIX, bashism and mixed function declarations, all four
compound command types, trailing comments and mixed whitespace.

Even though Bash allows locale-dependent characters in function names
&lt;https://unix.stackexchange.com/a/245336/3645&gt;, only detect function
names with characters allowed by POSIX.1-2017
&lt;https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_235&gt;
for simplicity. This should cover the vast majority of use cases, and
produces system-agnostic results.

Since a word pattern has to be specified, but there is no easy way to
know the default word pattern, use the default `IFS` characters for a
starter. A later patch can improve this.

Signed-off-by: Victor Engmark &lt;victor@engmark.name&gt;
Acked-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>userdiff: support Markdown</title>
<updated>2020-05-03T01:04:12Z</updated>
<author>
<name>Ash Holland</name>
<email>ash@sorrel.sh</email>
</author>
<published>2020-05-02T13:15:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=09dad9256a32affc4a3bc0cf1fa45d5fa6f51231'/>
<id>urn:sha1:09dad9256a32affc4a3bc0cf1fa45d5fa6f51231</id>
<content type='text'>
It's typical to find Markdown documentation alongside source code, and
having better context for documentation changes is useful; see also
commit 69f9c87d4 (userdiff: add support for Fountain documents,
2015-07-21).

The pattern is based on the CommonMark specification 0.29, section 4.2
&lt;https://spec.commonmark.org/&gt; but doesn't match empty headings, as
seeing them in a hunk header is unlikely to be useful.

Only ATX headings are supported, as detecting setext headings would
require printing the line before a pattern matches, or matching a
multiline pattern. The word-diff pattern is the same as the pattern for
HTML, because many Markdown parsers accept inline HTML.

Signed-off-by: Ash Holland &lt;ash@sorrel.sh&gt;
Acked-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 'jk/test-fixes'</title>
<updated>2020-01-30T22:17:09Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-01-30T22:17:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=0afeb3fdf4be28189a26df1d9158bc182da637cd'/>
<id>urn:sha1:0afeb3fdf4be28189a26df1d9158bc182da637cd</id>
<content type='text'>
Test fixes.

* jk/test-fixes:
  t7800: don't rely on reuse_worktree_file()
  t4018: drop "debugging" cat from hunk-header tests
</content>
</entry>
<entry>
<title>t4018: drop "debugging" cat from hunk-header tests</title>
<updated>2020-01-16T22:46:28Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2020-01-16T18:34:23Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=fbce03d3291e80b76a75d37a44ecf4ab238e6837'/>
<id>urn:sha1:fbce03d3291e80b76a75d37a44ecf4ab238e6837</id>
<content type='text'>
We run a series of hunk-header tests in a loop, and each one does this:

  test_when_finished 'cat actual' &amp;&amp;      # for debugging only

This is pretty pointless. When the test succeeds, we waste time running
a useless cat process. If you're debugging a failure with "-i", then we
won't run the when-finished part at all. So it helps only if you're
running with something like "--verbose-log".

Since we expect the tests to succeed most of the time, a better way to
do this would be a helper that checks the output and dumps "actual" only
when it fails. But it's probably not even worth the effort, as anyone
debugging a failure could just run with "-i" and investigate the
"actual" file themselves.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>userdiff: add Elixir to supported userdiff languages</title>
<updated>2019-11-10T06:26:26Z</updated>
<author>
<name>Łukasz Niemier</name>
<email>lukasz@niemier.pl</email>
</author>
<published>2019-11-08T21:38:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=a807200f67588f6e30a7b6ac4a3ad97ad176ccc7'/>
<id>urn:sha1:a807200f67588f6e30a7b6ac4a3ad97ad176ccc7</id>
<content type='text'>
Adds support for xfuncref in Elixir[1] language which is Ruby-like
language that runs on Erlang[3] Virtual Machine (BEAM).

[1]: https://elixir-lang.org
[2]: https://www.erlang.org

Signed-off-by: Łukasz Niemier &lt;lukasz@niemier.pl&gt;
Acked-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>userdiff: add a builtin pattern for dts files</title>
<updated>2019-08-21T22:09:34Z</updated>
<author>
<name>Stephen Boyd</name>
<email>sboyd@kernel.org</email>
</author>
<published>2019-08-19T21:22:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=3c81760bc66376c3ac69c39475cbe3b13e97e798'/>
<id>urn:sha1:3c81760bc66376c3ac69c39475cbe3b13e97e798</id>
<content type='text'>
The Linux kernel receives many patches to the devicetree files each
release. The hunk header for those patches typically show nothing,
making it difficult to figure out what node is being modified without
applying the patch or opening the file and seeking to the context. Let's
add a builtin 'dts' pattern to git so that users can get better diff
output on dts files when they use the diff=dts driver.

The regex has been constructed based on the spec at devicetree.org[1]
and with some help from Johannes Sixt.

[1] https://github.com/devicetree-org/devicetree-specification/releases/latest

Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: Frank Rowand &lt;frowand.list@gmail.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
