<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-bisect.sh, branch v1.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.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2006-02-14T05:55:27Z</updated>
<entry>
<title>bisect: remove BISECT_NAMES after done.</title>
<updated>2006-02-14T05:55:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-02-14T05:25:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4631c0035dc26ffab3a3832a5d9e9f55245f00f7'/>
<id>urn:sha1:4631c0035dc26ffab3a3832a5d9e9f55245f00f7</id>
<content type='text'>
I noticed that we forgot to clean this file and kept it that
way, while trying to help with Andrew's bisect problem.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Usage message clean-up, take #2</title>
<updated>2005-12-14T10:53:43Z</updated>
<author>
<name>Fredrik Kuivinen</name>
<email>freku045@student.liu.se</email>
</author>
<published>2005-12-11T09:55:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d025524d9d85b057c3caae68a8398eaf7ba3be1a'/>
<id>urn:sha1:d025524d9d85b057c3caae68a8398eaf7ba3be1a</id>
<content type='text'>
There were some problems with the usage message clean-up patch
series. I hadn't realised that subdirectory aware scripts can't source
git-sh-setup. I propose that we change this and let the scripts which
are subdirectory aware set a variable, SUBDIRECTORY_OK, before they
source git-sh-setup.

The scripts will also set USAGE and possibly LONG_USAGE before they
source git-sh-setup. If LONG_USAGE isn't set it defaults to USAGE.

If we go this way it's easy to catch --help in git-sh-setup, print the
(long) usage message to stdout and exit cleanly. git-sh-setup can
define a 'usage' shell function which can be called by the scripts to
print the short usage string to stderr and exit non-cleanly. It will
also be easy to change $0 to basename $0 or something else, if would
like to do that sometime in the future.

What follows is a patch to convert a couple of the commands to this
style. If it's ok with everyone to do it this way I will convert the
rest of the scripts too.

[jc: thrown in to proposed updates queue for comments.]

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Use printf rather than echo -n.</title>
<updated>2005-12-07T02:09:12Z</updated>
<author>
<name>Jason Riedy</name>
<email>ejr@EECS.Berkeley.EDU</email>
</author>
<published>2005-12-06T22:21:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9754563ca9a99bc0fe233f43202af15704fbed4d'/>
<id>urn:sha1:9754563ca9a99bc0fe233f43202af15704fbed4d</id>
<content type='text'>
On AIX, there is no -n option to the system's echo.  Instead,
it needs the '\c' control character.  We could replace
  echo -n "foo"
with
  echo -e "foo\c"
but printf is recommended by most man pages.  Tested on AIX
5.3, Solaris 8, and Debian.

[jc: futureproofed two instances that uses variable with '%s'
 so later feeding different messages would not break things too
 easily; others are emitting literal so whoever changes the
 literal ought to notice more easily so they are safe.]

Signed-off-by: E. Jason Riedy &lt;ejr@cs.berkeley.edu&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>bisect: quote pathnames for eval safety.</title>
<updated>2005-11-29T07:11:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-28T01:42:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e9a45d75b5eccfc288c4533b5e34af1f77dd32c9'/>
<id>urn:sha1:e9a45d75b5eccfc288c4533b5e34af1f77dd32c9</id>
<content type='text'>
... and make sure they are on the same line.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>bisect: limit the searchspace by pathspecs</title>
<updated>2005-11-29T07:11:38Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-11-27T19:32:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b3cfd939c330211c9812f814094aa1dbe9531bdc'/>
<id>urn:sha1:b3cfd939c330211c9812f814094aa1dbe9531bdc</id>
<content type='text'>
It was surprisingly easy to do.

	git bisect start &lt;pathspec&gt;

followed by all the normal "git bisect good/bad" stuff.

Almost totally untested, and I guarantee that if your pathnames have
spaces in them (or your GIT_DIR has spaces in it) this won't work. I don't
know how to fix that, my shell programming isn't good enough.

This involves small changes to make "git-rev-list --bisect" work in the
presense of a pathspec limiter, and then truly trivial (and that's the
broken part) changes to make "git bisect" save away and use the pathspec.

I tried one bisection, and a "git bisect visualize", and it all looked
correct. But hey, don't be surprised if it has problems.

		Linus

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-sh-setup: die if outside git repository.</title>
<updated>2005-11-25T21:49:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-24T08:12:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ae2b0f15180d4b044828c836bcab6a990efa5c8e'/>
<id>urn:sha1:ae2b0f15180d4b044828c836bcab6a990efa5c8e</id>
<content type='text'>
Now all the users of this script detect its exit status and die,
complaining that it is outside git repository.  So move the code
that dies from all callers to git-sh-setup script.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Add git-symbolic-ref</title>
<updated>2005-10-02T06:19:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junio@twinsun.com</email>
</author>
<published>2005-09-30T21:26:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8098a178b26dc7a158d129a092a5b78da6d12b72'/>
<id>urn:sha1:8098a178b26dc7a158d129a092a5b78da6d12b72</id>
<content type='text'>
This adds the counterpart of git-update-ref that lets you read
and create "symbolic refs".  By default it uses a symbolic link
to represent ".git/HEAD -&gt; refs/heads/master", but it can be compiled
to use the textfile symbolic ref.

The places that did 'readlink .git/HEAD' and 'ln -s refs/heads/blah
.git/HEAD' have been converted to use new git-symbolic-ref command, so
that they can deal with either implementation.

Signed-off-by: Junio C Hamano &lt;junio@twinsun.com&gt;
</content>
</entry>
<entry>
<title>Do not fail after calling bisect_auto_next()</title>
<updated>2005-09-17T20:51:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-09-17T20:51:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=434d036fe4b8f1b7571eb912957590a483944b26'/>
<id>urn:sha1:434d036fe4b8f1b7571eb912957590a483944b26</id>
<content type='text'>
As a convenience measure, 'bisect bad' or 'bisect good' automatically
does 'bisect next' when it knows it can, but the result of that test
to see if it can was leaking through as the exit code from the whole
thing, which was bad.  Noticed by Anton Blanchard.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Keep bisection log so that it can be replayed later.</title>
<updated>2005-09-10T22:18:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-09-10T22:18:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e204de28e69617265e88c73dd13c416ffa15f355'/>
<id>urn:sha1:e204de28e69617265e88c73dd13c416ffa15f355</id>
<content type='text'>
The 'git bisect' command was very unforgiving in that once you made a
mistake telling it good/bad it was very hard to take it back.  Keep a
log of what you told it in an earlier session, so that it can be
replayed after removing everything after what you botched last time.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Big tool rename.</title>
<updated>2005-09-08T00:45:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-09-08T00:26:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=215a7ad1ef790467a4cd3f0dcffbd6e5f04c38f7'/>
<id>urn:sha1:215a7ad1ef790467a4cd3f0dcffbd6e5f04c38f7</id>
<content type='text'>
As promised, this is the "big tool rename" patch.  The primary differences
since 0.99.6 are:

  (1) git-*-script are no more.  The commands installed do not
      have any such suffix so users do not have to remember if
      something is implemented as a shell script or not.

  (2) Many command names with 'cache' in them are renamed with
      'index' if that is what they mean.

There are backward compatibility symblic links so that you and
Porcelains can keep using the old names, but the backward
compatibility support  is expected to be removed in the near
future.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
