<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-checkout-script, 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-08T17:57:21Z</updated>
<entry>
<title>Add "git-sh-setup-script" for common git shell script setup</title>
<updated>2005-07-08T17:57:21Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2005-07-08T17:57:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b33e9666082ce692e64ccfd688dc2a5075566f75'/>
<id>urn:sha1:b33e9666082ce692e64ccfd688dc2a5075566f75</id>
<content type='text'>
It sets up the normal git environment variables and a few helper
functions (currently just "die()"), and returns ok if it all looks like
a git archive.  So use it something like

	. git-sh-setup-script || die "Not a git archive"

to make the rest of the git scripts more careful and readable.
</content>
</entry>
<entry>
<title>git-checkout-script: use "--verify --revs-only" to parse revs</title>
<updated>2005-06-27T19:12:18Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-27T19:12:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e2efb676ef0e70364f130c4097b7b9d67804753f'/>
<id>urn:sha1:e2efb676ef0e70364f130c4097b7b9d67804753f</id>
<content type='text'>
Sven Verdoolaege points out that I added the --verify option to
git-rev-parse exactly for things like this, but didn't update the
users.
</content>
</entry>
<entry>
<title>Fix typo in git-checkout-script.</title>
<updated>2005-06-22T00:12:38Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-22T00:12:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9661c256400d1a17a27e014592f887359f74707e'/>
<id>urn:sha1:9661c256400d1a17a27e014592f887359f74707e</id>
<content type='text'>
The confusion between "revs" vs "refs" caused us to not find the branch
name, which in turn meant that we never switched the HEAD over to it.
</content>
</entry>
<entry>
<title>Remove MERGE_HEAD in "git checkout/reset"</title>
<updated>2005-06-21T22:40:00Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-21T22:40:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ef0bfa25e99627b809c0902d21072821955db3fe'/>
<id>urn:sha1:ef0bfa25e99627b809c0902d21072821955db3fe</id>
<content type='text'>
Both of these scripts will end up resetting the index to some specific
head, and any unresolved merge will be forgotten.
</content>
</entry>
<entry>
<title>git checkout: fix default head case</title>
<updated>2005-06-21T18:14:47Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-21T18:14:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dc14841102bb364c2be200e8456146fc8df970b9'/>
<id>urn:sha1:dc14841102bb364c2be200e8456146fc8df970b9</id>
<content type='text'>
The "${new=$old}" syntax only works for an undefined 'new', not for an
empty one. I knew that. Really. I'm not stupid.
</content>
</entry>
<entry>
<title>Make "git checkout" know about different branches</title>
<updated>2005-06-21T18:03:11Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-21T18:03:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e8b11749f031428f743c1e01a6934f6ff34cec16'/>
<id>urn:sha1:e8b11749f031428f743c1e01a6934f6ff34cec16</id>
<content type='text'>
Now "git checkout xyzzy" will check out branch "xyzzy" and
switch the HEAD to it.
</content>
</entry>
<entry>
<title>"git checkout": add "-u" flag to update HEAD conditionally</title>
<updated>2005-06-21T16:59:26Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-21T16:59:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a79944d76cf4098e42d13e5743a3dccb61ebaca6'/>
<id>urn:sha1:a79944d76cf4098e42d13e5743a3dccb61ebaca6</id>
<content type='text'>
And fix braino on testing "-f".
</content>
</entry>
<entry>
<title>Add "git checkout" that does what the name suggests</title>
<updated>2005-06-21T16:47:37Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-21T16:47:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=303e5f4c325d008c68e5e70e901ab68b289ade2e'/>
<id>urn:sha1:303e5f4c325d008c68e5e70e901ab68b289ade2e</id>
<content type='text'>
It is careful by default and refuses to overwrite old info, but if you
want to force everything to be re-read, use the "-f" flag.

Some day I'll make it take individual filenames too. Right now
it's all-or-nothing.
</content>
</entry>
</feed>
