<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-bisect.sh, branch v2.16.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.16.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.16.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-11-15T03:14:36Z</updated>
<entry>
<title>Merge branch 'sb/bisect-run-empty'</title>
<updated>2017-11-15T03:14:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-15T03:14:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5066a008bb6a810f908c020de02a646cf3c92f34'/>
<id>urn:sha1:5066a008bb6a810f908c020de02a646cf3c92f34</id>
<content type='text'>
"git bisect run" that did not specify any command to run used to go
ahead and treated all commits to be tested as 'good'.  This has
been corrected by making the command error out.

* sb/bisect-run-empty:
  bisect run: die if no command is given
</content>
</entry>
<entry>
<title>bisect run: die if no command is given</title>
<updated>2017-11-13T03:59:17Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2017-11-12T20:55:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fecd2dd36e6210c0211c812f1be2a07c71c6dcdc'/>
<id>urn:sha1:fecd2dd36e6210c0211c812f1be2a07c71c6dcdc</id>
<content type='text'>
It was possible to invoke "git bisect run" without any command.
This considers all commits as good commits since "$@"'s return
value for empty $@ is 0.

This is most probably not what a user wants (otherwise she would
invoke "git bisect run true"), so not providing a command now
results in an error.

Signed-off-by: Stephan Beyer &lt;s-beyer@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect: mention "view" as an alternative to "visualize"</title>
<updated>2017-11-13T01:51:14Z</updated>
<author>
<name>Robert P. J. Day</name>
<email>rpjday@crashcourse.ca</email>
</author>
<published>2017-11-12T09:30:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dbc349bba0ddf118b0ec8404ec01014d49cecfd3'/>
<id>urn:sha1:dbc349bba0ddf118b0ec8404ec01014d49cecfd3</id>
<content type='text'>
Tweak a small number of files to mention "view" as an alternative to
"visualize".

Signed-off-by: Robert P. J. Day &lt;rpjday@crashcourse.ca&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect--helper: `is_expected_rev` &amp; `check_expected_revs` shell function in C</title>
<updated>2017-10-06T05:12:37Z</updated>
<author>
<name>Pranit Bauva</name>
<email>pranit.bauva@gmail.com</email>
</author>
<published>2017-09-29T06:49:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b903674b354bf1538a89833dbee27fe3a7105e48'/>
<id>urn:sha1:b903674b354bf1538a89833dbee27fe3a7105e48</id>
<content type='text'>
Reimplement `is_expected_rev` &amp; `check_expected_revs` shell function in
C and add a `--check-expected-revs` subcommand to `git bisect--helper` to
call it from git-bisect.sh .

Using `--check-expected-revs` subcommand is a temporary measure to port
shell functions to C so as to use the existing test suite. As more
functions are ported, this subcommand would be retired but its
implementation will be called by some other method.

Helped-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Mentored-by: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Mentored-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Pranit Bauva &lt;pranit.bauva@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect--helper: `bisect_clean_state` shell function in C</title>
<updated>2017-10-06T05:12:33Z</updated>
<author>
<name>Pranit Bauva</name>
<email>pranit.bauva@gmail.com</email>
</author>
<published>2017-09-29T06:49:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fb71a329964da0892cc11cc94b5b379b0803ed92'/>
<id>urn:sha1:fb71a329964da0892cc11cc94b5b379b0803ed92</id>
<content type='text'>
Reimplement `bisect_clean_state` shell function in C and add a
`bisect-clean-state` subcommand to `git bisect--helper` to call it from
git-bisect.sh .

Using `--bisect-clean-state` subcommand is a measure to port shell
function to C so as to use the existing test suite. As more functions
are ported, this subcommand will be retired but its implementation  will
be called by bisect_reset() and bisect_start().

Also introduce a function `mark_for_removal` to store the refs which
need to be removed while iterating through the refs.

Mentored-by: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Mentored-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Pranit Bauva &lt;pranit.bauva@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect--helper: `write_terms` shell function in C</title>
<updated>2017-10-06T05:12:32Z</updated>
<author>
<name>Pranit Bauva</name>
<email>pranit.bauva@gmail.com</email>
</author>
<published>2017-09-29T06:49:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ecb3f3733cbeaf514508f97429863d33a6ac0d57'/>
<id>urn:sha1:ecb3f3733cbeaf514508f97429863d33a6ac0d57</id>
<content type='text'>
Reimplement the `write_terms` shell function in C and add a `write-terms`
subcommand to `git bisect--helper` to call it from git-bisect.sh . Also
remove the subcommand `--check-term-format` as it can now be called from
inside the function write_terms() C implementation.

Also `|| exit` is added when calling write-terms subcommand from
git-bisect.sh so as to exit whenever there is an error.

Using `--write-terms` subcommand is a temporary measure to port shell
function to C so as to use the existing test suite. As more functions
are ported, this subcommand will be retired and its implementation will
be called by some other method.

Mentored-by: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Mentored-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Pranit Bauva &lt;pranit.bauva@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect--helper: rewrite `check_term_format` shell function in C</title>
<updated>2017-10-06T05:12:30Z</updated>
<author>
<name>Pranit Bauva</name>
<email>pranit.bauva@gmail.com</email>
</author>
<published>2017-09-29T06:49:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4ba1e5c4144bd268dafb252fd652dd37d9e4a1ed'/>
<id>urn:sha1:4ba1e5c4144bd268dafb252fd652dd37d9e4a1ed</id>
<content type='text'>
Reimplement the `check_term_format` shell function in C and add
a `--check-term-format` subcommand to `git bisect--helper` to call it
from git-bisect.sh

Using `--check-term-format` subcommand is a temporary measure to port
shell function to C so as to use the existing test suite. As more
functions are ported, this subcommand will be retired and its
implementation will be called by some other method/subcommand. For
eg. In conversion of write_terms() of git-bisect.sh, the subcommand will
be removed and instead check_term_format() will be called in its C
implementation while a new subcommand will be introduced for write_terms().

Helped-by: Johannes Schindelein &lt;Johannes.Schindelein@gmx.de&gt;
Mentored-by: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Mentored-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Pranit Bauva &lt;pranit.bauva@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>i18n: unmark die messages for translation</title>
<updated>2016-06-17T22:46:10Z</updated>
<author>
<name>Vasco Almeida</name>
<email>vascomalmeida@sapo.pt</email>
</author>
<published>2016-06-17T21:54:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f813fb41fcf90683afa5c4eb28807d3d3fca63be'/>
<id>urn:sha1:f813fb41fcf90683afa5c4eb28807d3d3fca63be</id>
<content type='text'>
These messages are relevant for the programmer only, not for the end
user.  Thus, they can be unmarked for translation, saving translator
some work.

Signed-off-by: Vasco Almeida &lt;vascomalmeida@sapo.pt&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>i18n: git-sh-setup.sh: mark strings for translation</title>
<updated>2016-06-17T22:45:48Z</updated>
<author>
<name>Vasco Almeida</name>
<email>vascomalmeida@sapo.pt</email>
</author>
<published>2016-06-17T20:21:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d323c6b6410dee0a8a2471b4dbf6d631cd3c3d4d'/>
<id>urn:sha1:d323c6b6410dee0a8a2471b4dbf6d631cd3c3d4d</id>
<content type='text'>
Positional arguments, such as $0, $1, etc, need to be stored on shell
variables for use in translatable strings, according to gettext manual
[1].

Add git-sh-setup.sh to LOCALIZED_SH variable in Makefile to enable
extraction of string marked for translation by xgettext.

Source git-sh-i18n in git-sh-setup.sh for gettext support.
git-sh-setup.sh is a shell library to be sourced by other shell scripts.
In order to avoid other scripts from sourcing git-sh-i18n twice, remove
line that sources it from them.  Not sourcing git-sh-i18n in any script
that uses gettext would lead to failure due to, for instance, gettextln
not being found.

[1] http://www.gnu.org/software/gettext/manual/html_node/Preparing-Shell-Scripts.html

Signed-off-by: Vasco Almeida &lt;vascomalmeida@sapo.pt&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>i18n: bisect: simplify error message for i18n</title>
<updated>2016-06-17T22:45:48Z</updated>
<author>
<name>Vasco Almeida</name>
<email>vascomalmeida@sapo.pt</email>
</author>
<published>2016-06-17T20:21:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=57984dd9fc1d3c78826e41c7e7100af331758161'/>
<id>urn:sha1:57984dd9fc1d3c78826e41c7e7100af331758161</id>
<content type='text'>
The message was not being extracted by xgettext, although it was marked
for translation, seemingly because it contained a command substitution.
Moreover, eval_gettext should be used instead of gettext for strings
with substitution.

See step 4. of section 15.5.2.1 Preparing Shell Scripts for
Internationalization from gettext manual [1]:
"Simplify translatable strings so that they don't contain command
substitution ("`...`" or "$(...)") [...]"

[1] http://www.gnu.org/software/gettext/manual/html_node/Preparing-Shell-Scripts.html

Signed-off-by: Vasco Almeida &lt;vascomalmeida@sapo.pt&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
