<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/annotate-tests.sh, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2011-05-05T16:24:21Z</updated>
<entry>
<title>t/annotate-tests: Use echo &amp; cat instead of sed</title>
<updated>2011-05-05T16:24:21Z</updated>
<author>
<name>Brian Gernhardt</name>
<email>brian@gernhardtsoftware.com</email>
</author>
<published>2011-05-05T04:43:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c01bd5a29f38e4e9fd5c03f3e1e84b88c392dd6f'/>
<id>urn:sha1:c01bd5a29f38e4e9fd5c03f3e1e84b88c392dd6f</id>
<content type='text'>
The use of the sed command "1i No robots allowed" caused the version
of sed in OS X to die with

   sed: 1: "1i "No robots allowed"\n": command i expects \ followed by
   text

Since this command was just trying to add a single line to the
beginning of the file, do the same with "echo" followed by "cat".

Unbreaks t8001 and t8002 on OS X 10.6.7

Signed-off-by: Brian Gernhardt &lt;brian@gernhardtsoftware.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>blame: tolerate bogus e-mail addresses a bit better</title>
<updated>2011-04-29T18:09:42Z</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2011-04-21T22:07:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9b01f0038b63ccdf697b2387f4fcd4b03bd249d5'/>
<id>urn:sha1:9b01f0038b63ccdf697b2387f4fcd4b03bd249d5</id>
<content type='text'>
The names and e-mails are sanitized by fmt_ident() when creating commits,
so that they do not contain "&lt;" nor "&gt;", and the "committer" and "author"
lines in the commit object will always be in the form:

    ("author" | "committer") name SP "&lt;" email "&gt;" SP timestamp SP zone

When parsing the email part out, the current code looks for SP starting
from the end of the email part, but the author could obfuscate the address
as "author at example dot com".

We should instead look for SP followed by "&lt;", to match the logic of the
side that formats these lines.

Signed-off-by: Josh Stone &lt;jistone@redhat.com&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'kb/blame-author-email'</title>
<updated>2010-11-30T01:52:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-11-30T01:52:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4ef927a995d9b54b37e4cff8ed7cd92764d4dacd'/>
<id>urn:sha1:4ef927a995d9b54b37e4cff8ed7cd92764d4dacd</id>
<content type='text'>
* kb/blame-author-email:
  blame: Add option to show author email instead of name

Conflicts:
	t/annotate-tests.sh
</content>
</entry>
<entry>
<title>Merge branch 'en/and-cascade-tests'</title>
<updated>2010-11-24T23:51:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-11-24T23:51:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b3ff808b714fd8fc5e4d2770720398e5dc7d27f9'/>
<id>urn:sha1:b3ff808b714fd8fc5e4d2770720398e5dc7d27f9</id>
<content type='text'>
* en/and-cascade-tests: (25 commits)
  t4124 (apply --whitespace): use test_might_fail
  t3404: do not use 'describe' to implement test_cmp_rev
  t3404 (rebase -i): introduce helper to check position of HEAD
  t3404 (rebase -i): move comment to description
  t3404 (rebase -i): unroll test_commit loops
  t3301 (notes): use test_expect_code for clarity
  t1400 (update-ref): use test_must_fail
  t1502 (rev-parse --parseopt): test exit code from "-h"
  t6022 (renaming merge): chain test commands with &amp;&amp;
  test-lib: introduce test_line_count to measure files
  tests: add missing &amp;&amp;, batch 2
  tests: add missing &amp;&amp;
  Introduce sane_unset and use it to ensure proper &amp;&amp; chaining
  t7800 (difftool): add missing &amp;&amp;
  t7601 (merge-pull-config): add missing &amp;&amp;
  t7001 (mv): add missing &amp;&amp;
  t6016 (rev-list-graph-simplify-history): add missing &amp;&amp;
  t5602 (clone-remote-exec): add missing &amp;&amp;
  t4026 (color): remove unneeded and unchained command
  t4019 (diff-wserror): add lots of missing &amp;&amp;
  ...

Conflicts:
	t/t7006-pager.sh
</content>
</entry>
<entry>
<title>tests: add missing &amp;&amp;</title>
<updated>2010-11-09T19:59:49Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2010-10-31T01:46:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a48fcd836971d065b9bf16b8cd046fd1aff9b279'/>
<id>urn:sha1:a48fcd836971d065b9bf16b8cd046fd1aff9b279</id>
<content type='text'>
Breaks in a test assertion's &amp;&amp; chain can potentially hide
failures from earlier commands in the chain.

Commands intended to fail should be marked with !, test_must_fail, or
test_might_fail.  The examples in this patch do not require that.

Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Update test script annotate-tests.sh to handle missing/extra authors</title>
<updated>2010-10-19T21:15:30Z</updated>
<author>
<name>Kevin Ballard</name>
<email>kevin@sb.org</email>
</author>
<published>2010-10-16T11:09:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=27eea66b28e15890ae587303c1c316388845169e'/>
<id>urn:sha1:27eea66b28e15890ae587303c1c316388845169e</id>
<content type='text'>
The current script used by annotate-tests.sh (used by t8001 and t8002) fails
to emit a warning if any of the expected authors never show up in the output
or if authors that show up in the output were never specified as expected.
Update the script to fail in both of these scenarios.

Helped-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Kevin Ballard &lt;kevin@sb.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>blame: Add option to show author email instead of name</title>
<updated>2010-10-19T19:00:28Z</updated>
<author>
<name>Kevin Ballard</name>
<email>kevin@sb.org</email>
</author>
<published>2010-10-16T06:57:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1b8cdce94f4fff2408f8ed26fe4fc2f187a46794'/>
<id>urn:sha1:1b8cdce94f4fff2408f8ed26fe4fc2f187a46794</id>
<content type='text'>
Add a new option -e (or --show-email) to git-blame that will display
the author's email instead of name on each line. This option works
for both git-blame and git-annotate.

Signed-off-by: Kevin Ballard &lt;kevin@sb.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/annotate-tests.sh: avoid passing a non-newline terminated file to sed</title>
<updated>2009-05-06T18:50:44Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2009-05-06T18:29:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d8b69ecb4c467c044c08e0435bb22ade16ea580f'/>
<id>urn:sha1:d8b69ecb4c467c044c08e0435bb22ade16ea580f</id>
<content type='text'>
Some versions of sed exit non-zero if the file they are supplied is not
newline terminated.  Solaris's /usr/xpg4/bin/sed is one such sed.  So
rework this test to avoid doing so.

This affects tests t8001-annotate.sh and t8002-blame.sh.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>make t8001 work on Mac OS X again</title>
<updated>2007-03-07T01:09:53Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-03-07T00:48:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=58db64f73c3dedb41467f915b45d305d52d04d2c'/>
<id>urn:sha1:58db64f73c3dedb41467f915b45d305d52d04d2c</id>
<content type='text'>
The test was recently broken to expect sed to leave the
incomplete line at the end without newline.

POSIX says that output of the pattern space is to be followed by
a newline, while GNU adds the newline back only when it was
stripped when input.  GNU behaviour is arguably more intuitive
and nicer, but we should not depend on it.

Signed-off-by: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;
Acked-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Avoid ActiveState Perl IO in t800[12]</title>
<updated>2007-02-07T08:35:15Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2007-02-05T13:04:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=563b43ee45b87cf1e4bba99d3d0216f396d5c873'/>
<id>urn:sha1:563b43ee45b87cf1e4bba99d3d0216f396d5c873</id>
<content type='text'>
Use sed instead, it comes with cygwin and there is almost no chance of
someone installing a sed with default CRLF lineendings by accident.

Signed-off-by: Alex Riesen &lt;raa.lkml@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
