<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-bisect.sh, branch v1.7.0.5</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.7.0.5</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.7.0.5'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2009-11-25T19:45:07Z</updated>
<entry>
<title>Merge branch 'rs/work-around-grep-opt-insanity'</title>
<updated>2009-11-25T19:45:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-11-25T19:45:07Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ad7ace714d353ef49045bc37c1363e8fc904792d'/>
<id>urn:sha1:ad7ace714d353ef49045bc37c1363e8fc904792d</id>
<content type='text'>
* rs/work-around-grep-opt-insanity:
  Protect scripted Porcelains from GREP_OPTIONS insanity
  mergetool--lib: simplify guess_merge_tool()

Conflicts:
	git-instaweb.sh
</content>
</entry>
<entry>
<title>Protect scripted Porcelains from GREP_OPTIONS insanity</title>
<updated>2009-11-24T00:31:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-11-23T23:56:32Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e1622bfcbad680225ad5c337e4778df88389227e'/>
<id>urn:sha1:e1622bfcbad680225ad5c337e4778df88389227e</id>
<content type='text'>
If the user has exported the GREP_OPTIONS environment variable, the output
from "grep" and "egrep" in scripted Porcelains may be different from what
they expect.  For example, we may want to count number of matching lines,
by "grep" piped to "wc -l", and GREP_OPTIONS=-C3 will break such use.

The approach taken by this change to address this issue is to protect only
our own use of grep/egrep.  Because we do not unset it at the beginning of
our scripts, hook scripts run from the scripted Porcelains are exposed to
the same insanity this environment variable causes when grep/egrep is used
to implement logic (e.g. "grep | wc -l"), and it is entirely up to the
hook scripts to protect themselves.

On the other hand, applypatch-msg hook may want to show offending words in
the proposed commit log message using grep to the end user, and the user
might want to set GREP_OPTIONS=--color to paint the match more visibly.
The approach to protect only our own use without unsetting the environment
variable globally will allow this use case.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect: simplify calling visualizer using '--bisect' option</title>
<updated>2009-11-23T06:59:05Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2009-11-23T04:16:14Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=fc13aa3d09407998e5cb08a5c1da05d0000fe81d'/>
<id>urn:sha1:fc13aa3d09407998e5cb08a5c1da05d0000fe81d</id>
<content type='text'>
In commit ad3f9a7 (Add '--bisect' revision machinery argument) the
'--bisect' option was added to easily pass bisection refs to
commands using the revision machinery.

So it is now shorter and safer to use the new '--bisect' revision
machinery option, than to compute the refs that we must pass.

Signed-off-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect reset: Allow resetting to any commit, not just a branch</title>
<updated>2009-10-14T06:19:02Z</updated>
<author>
<name>Anders Kaseorg</name>
<email>andersk@MIT.EDU</email>
</author>
<published>2009-10-13T21:02:24Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=6b87ce231d14b3804974fba27576f1f2ba77cfb0'/>
<id>urn:sha1:6b87ce231d14b3804974fba27576f1f2ba77cfb0</id>
<content type='text'>
‘git bisect reset’ accepts an optional argument specifying a branch to
check out after cleaning up the bisection state.  This lets you
specify an arbitrary commit.

In particular, this provides a way to clean the bisection state
without moving HEAD: ‘git bisect reset HEAD’.  This may be useful if
you are not interested in the state before you began a bisect,
especially if checking out the old commit would be expensive and
invalidate most of your compiled tree.

Clarify the ‘git bisect reset’ documentation to explain this optional
argument, which was previously mentioned only in the usage message.

Signed-off-by: Anders Kaseorg &lt;andersk@mit.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-bisect: call the found commit "*the* first bad commit"</title>
<updated>2009-08-26T19:05:57Z</updated>
<author>
<name>Nanako Shiraishi</name>
<email>nanako3@lavabit.com</email>
</author>
<published>2009-08-26T08:38:50Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=21d0bc2f9a5bcbee2593e9f2ad05d64d3dcf3a0e'/>
<id>urn:sha1:21d0bc2f9a5bcbee2593e9f2ad05d64d3dcf3a0e</id>
<content type='text'>
Signed-off-by: Nanako Shiraishi &lt;nanako3@lavabit.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect: make "git bisect" use new "--next-all" bisect-helper function</title>
<updated>2009-05-10T21:30:33Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2009-05-09T15:55:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0871984d304c9201b85897743eae583cd165106d'/>
<id>urn:sha1:0871984d304c9201b85897743eae583cd165106d</id>
<content type='text'>
This patch replace the "--next-exit" option of "git bisect--helper"
with a "--next-all" option that does merge base checking using
the "check_good_are_ancestors_of_bad" function implemented in
"bisect.c" in a former patch.

The new "--next-all" option is then used in "git-bisect.sh" instead
of the "--next-exit" option, and all the shell functions in
"git-bisect.sh" that are now unused are removed.

Signed-off-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect: use "git rev-parse --sq-quote" instead of a custom "sq" function</title>
<updated>2009-05-10T07:30:28Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2009-04-24T06:29:00Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=de52f5a806f58c6b73b2e24768530213fab5a635'/>
<id>urn:sha1:de52f5a806f58c6b73b2e24768530213fab5a635</id>
<content type='text'>
As the "sq" function was the only place using Perl in "git-bisect.sh",
this removes the Perl dependency in this script.

While at it, we also remove the sed instruction in the Makefile that
substituted @@PERL@@ with the Perl path in shell scripts, as this is
not needed anymore. (It is now only needed in "git-instaweb.sh" but
this command is dealt with separately in the Makefile.)

Signed-off-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect: use "git bisect--helper --next-exit" in "git-bisect.sh"</title>
<updated>2009-05-10T07:30:28Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2009-04-19T09:56:16Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=5a1d31c7e43a54c3a5275266745488de7208d871'/>
<id>urn:sha1:5a1d31c7e43a54c3a5275266745488de7208d871</id>
<content type='text'>
instead of "git bisect--helper --next-vars".

Signed-off-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cc/bisect-filter'</title>
<updated>2009-04-12T23:46:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-04-12T23:46:40Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=6e353a5e5de9da021c7c6c0bc2dc5f95a39900a1'/>
<id>urn:sha1:6e353a5e5de9da021c7c6c0bc2dc5f95a39900a1</id>
<content type='text'>
* cc/bisect-filter: (21 commits)
  rev-list: add "int bisect_show_flags" in "struct rev_list_info"
  rev-list: remove last static vars used in "show_commit"
  list-objects: add "void *data" parameter to show functions
  bisect--helper: string output variables together with "&amp;&amp;"
  rev-list: pass "int flags" as last argument of "show_bisect_vars"
  t6030: test bisecting with paths
  bisect: use "bisect--helper" and remove "filter_skipped" function
  bisect: implement "read_bisect_paths" to read paths in "$GIT_DIR/BISECT_NAMES"
  bisect--helper: implement "git bisect--helper"
  bisect: use the new generic "sha1_pos" function to lookup sha1
  rev-list: call new "filter_skip" function
  patch-ids: use the new generic "sha1_pos" function to lookup sha1
  sha1-lookup: add new "sha1_pos" function to efficiently lookup sha1
  rev-list: pass "revs" to "show_bisect_vars"
  rev-list: make "show_bisect_vars" non static
  rev-list: move code to show bisect vars into its own function
  rev-list: move bisect related code into its own file
  rev-list: make "bisect_list" variable local to "cmd_rev_list"
  refs: add "for_each_ref_in" function to refactor "for_each_*_ref" functions
  quote: add "sq_dequote_to_argv" to put unwrapped args in an argv array
  ...
</content>
</entry>
<entry>
<title>bisect--helper: string output variables together with "&amp;&amp;"</title>
<updated>2009-04-05T08:29:45Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2009-03-30T04:59:59Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e89aa6d2f546b2d4f2d88c15ce7e343751d6922f'/>
<id>urn:sha1:e89aa6d2f546b2d4f2d88c15ce7e343751d6922f</id>
<content type='text'>
When doing:

eval "git bisect--helper --next-vars" | {
        while read line
        do
                echo "$line &amp;&amp;"
        done
        echo ':'
}

the result code comes from the last "echo ':'", not from running
"git bisect--helper --next-vars".

This patch gets rid of the need to string together the line from
the output of "git bisect--helper" with "&amp;&amp;" in the calling script
by making "git bisect--helper --next-vars" return output variables
already in that format.

Signed-off-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
