<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/rev-parse.c, branch v0.99</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v0.99</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v0.99'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2005-07-06T17:08:08Z</updated>
<entry>
<title>Add "--flags" and "--no-flags" arguments to git-rev-parse</title>
<updated>2005-07-06T17:08:08Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2005-07-06T17:08:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f79b65aa65b7697a1cae0f895061ce822f410c5d'/>
<id>urn:sha1:f79b65aa65b7697a1cae0f895061ce822f410c5d</id>
<content type='text'>
The scripts that use this (notably "git diff") will want to split up
flags and file arguments.
</content>
</entry>
<entry>
<title>git-rev-parse: support show sha1 names for pack entries</title>
<updated>2005-07-04T04:01:11Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2005-07-04T04:01:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=671fe4bb20cf36b0f9de763b863425f5bea30c06'/>
<id>urn:sha1:671fe4bb20cf36b0f9de763b863425f5bea30c06</id>
<content type='text'>
This is actually subtly wrong.  If a short match is found in the object
directory, but would _also_ match another SHA1 ID in a pack (or it shows
in one pack but not another), we'll never have done the pack lookup, and
we think it's unique.

I can't find it in myself to care.  You really want to use enough of a
SHA1 that there is never any ambiguity.
</content>
</entry>
<entry>
<title>Make git-rev-parse support cogito-style "short hex names"</title>
<updated>2005-07-04T03:27:06Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2005-07-04T03:27:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5736bef18c37e811f39bafb9895fee349fa7bbe6'/>
<id>urn:sha1:5736bef18c37e811f39bafb9895fee349fa7bbe6</id>
<content type='text'>
Currently only for unpacked objects, but the infrastructure
is there to do it for packed objects too.
</content>
</entry>
<entry>
<title>Add "--all" flag to rev-parse that shows all refs</title>
<updated>2005-07-03T20:07:52Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2005-07-03T20:07:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=960bba0d8c14c9eb76bbb42eebc39eff58fc452b'/>
<id>urn:sha1:960bba0d8c14c9eb76bbb42eebc39eff58fc452b</id>
<content type='text'>
And make git-rev-list just silently ignore non-commit refs if we're not
asking for all objects.
</content>
</entry>
<entry>
<title>git-rev-parse: add "--not" flag to mark subsequent heads negative</title>
<updated>2005-06-26T18:34:30Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-26T18:34:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=042a4ed7c51f909fa53a8fa2f1024a1938812f27'/>
<id>urn:sha1:042a4ed7c51f909fa53a8fa2f1024a1938812f27</id>
<content type='text'>
If you have two lists of heads, and you want to see ones reachable from
list $a but not from list $b, just do

	git-rev-list $(git-rev-parse $a --not $b)

which is useful for both bisecting (where "b" would be the list of known
good revisions, and "a" would be the latest found bad head) and for just
seeing what the difference between two sets of heads are if you want to
generate a pack-file for the difference.
</content>
</entry>
<entry>
<title>git-rev-parse: re-organize and be more careful</title>
<updated>2005-06-24T17:12:55Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-24T17:12:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=023d66ed7b397c811a0693f34851d8590b69247b'/>
<id>urn:sha1:023d66ed7b397c811a0693f34851d8590b69247b</id>
<content type='text'>
Output default revisions as their hex SHA1 names to be consistent.

Add "--verify" flag that verifies that we output a single ref and not
more (and disables ref arguments).
</content>
</entry>
<entry>
<title>Change parent syntax to "xyz^" instead of "xyz.p"</title>
<updated>2005-06-21T04:06:47Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-21T04:06:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=218e441daf24b9c3be0f5ec423ace5185389ca61'/>
<id>urn:sha1:218e441daf24b9c3be0f5ec423ace5185389ca61</id>
<content type='text'>
The ".pN" thing might be a common ending of a tag, and in
contrast, ^ already is a special character for revisions
so use that instead.
</content>
</entry>
<entry>
<title>Make rev-parse understand "extended sha1" syntax</title>
<updated>2005-06-21T03:28:09Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-21T03:28:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a8be83fe00eded0bd6cb0001879ddf211a2cf2f2'/>
<id>urn:sha1:a8be83fe00eded0bd6cb0001879ddf211a2cf2f2</id>
<content type='text'>
You can say "HEAD.p" for the "parent of HEAD". It nests, so

	HEAD.p2.p

means parent of second parent of HEAD (which obviously depends
on HEAD being a merge).
</content>
</entry>
<entry>
<title>git-rev-parse: flush "default" head when encountering something unexpected</title>
<updated>2005-06-20T23:14:13Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-20T23:14:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9d73fad4ca15bc0fffe34ee66aea5b9691ab3d2f'/>
<id>urn:sha1:9d73fad4ca15bc0fffe34ee66aea5b9691ab3d2f</id>
<content type='text'>
The unexpected thing is likely a pathname, we need the default for that
too.
</content>
</entry>
<entry>
<title>git-rev-parse: parse ".." before simple SHA1's</title>
<updated>2005-06-20T15:29:13Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-20T15:29:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=800644c5cb3aad99a229a09112f42fa88b63c1c4'/>
<id>urn:sha1:800644c5cb3aad99a229a09112f42fa88b63c1c4</id>
<content type='text'>
This fixes "&lt;hexsha1&gt;..*", since get_sha1() will happily ignore any
garbage at the end and thus we never got to the ".." check before.
</content>
</entry>
</feed>
