<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-checkout.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-16T03:14:04Z</updated>
<entry>
<title>More useful/hinting error messages in git-checkout</title>
<updated>2006-02-16T03:14:04Z</updated>
<author>
<name>Josef Weidendorfer</name>
<email>Josef.Weidendorfer@gmx.de</email>
</author>
<published>2006-02-15T19:22:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=babfaf8dee0baa09c56d1a2ec5623b60d900518b'/>
<id>urn:sha1:babfaf8dee0baa09c56d1a2ec5623b60d900518b</id>
<content type='text'>
Signed-off-by: Josef Weidendorfer &lt;Josef.Weidendorfer@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>checkout: fix dirty-file display.</title>
<updated>2006-02-15T00:05:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-02-15T00:05:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=504fe714fe642b375992bb913075bee0d0bc1bbd'/>
<id>urn:sha1:504fe714fe642b375992bb913075bee0d0bc1bbd</id>
<content type='text'>
When we refused to switch branches, we incorrectly showed
differences from the branch we would have switched to.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-commit: show dirtiness including index.</title>
<updated>2006-02-12T21:05:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-02-12T21:05:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c5e09c1fbec5dc1c15bcfe21e1a600f9e4b4e419'/>
<id>urn:sha1:c5e09c1fbec5dc1c15bcfe21e1a600f9e4b4e419</id>
<content type='text'>
Earlier, when we switched a branch we used diff-files to show
paths that are dirty in the working tree.  But we allow switching
branches with updated index ("read-tree -m -u $old $new" works that
way), and only showing paths that have differences in the working
tree but not paths that are different in index was confusing.

This shows both as modified from the top commit of the branch we
just have switched to.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] checkout: show dirty state upon switching branches.</title>
<updated>2006-01-14T21:18:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-01-14T20:31:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=980d8ce551784b76e05077946b8a4f2ac6c5305d'/>
<id>urn:sha1:980d8ce551784b76e05077946b8a4f2ac6c5305d</id>
<content type='text'>
This shows your working file state when you switch branches.  As
a side effect, "git checkout" without any branch name (i.e. stay
on the current branch) becomes a more concise shorthand for the
"git status" command.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>checkout: merge local modifications while switching branches.</title>
<updated>2006-01-14T00:52:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-01-12T22:04:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1be0659efca4a1f69c851f95563e930d70d8baf2'/>
<id>urn:sha1:1be0659efca4a1f69c851f95563e930d70d8baf2</id>
<content type='text'>
 * Instead of going interactive, introduce a command line switch
   '-m' to allow merging changes when normal two-way merge by
   read-tree prevents branch switching.

 * Leave the unmerged stages intact if automerge fails, but
   reset index entries of cleanly merged paths to that of the
   new branch, so that "git diff" (not "git diff HEAD") would
   show the local modifications.

 * Swap the order of trees in read-tree three-way merge used in
   the fallback, so that `git diff` to show the conflicts become
   more natural.

 * Describe the new option and give more examples in the documentation.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>checkout: automerge local changes while switching branches.</title>
<updated>2006-01-14T00:52:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-01-12T07:07:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=19205acfc29b6d39b5643a7f9a2448f89df14355'/>
<id>urn:sha1:19205acfc29b6d39b5643a7f9a2448f89df14355</id>
<content type='text'>
When switching branches, if the working tree has a local
modification at paths that are different between current and new
branches, we refused the operation saying "cannot merge."  This
attempts to do an automerge for such paths.

This is still experimental.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Adjust to ls-tree --full-name when run from a subdirectory.</title>
<updated>2005-12-23T22:10:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-23T22:10:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d0d14cf33d0e4446ed98b03ac5f81367d368e557'/>
<id>urn:sha1:d0d14cf33d0e4446ed98b03ac5f81367d368e557</id>
<content type='text'>
A proposed change to show cwd relative paths by default from
ls-tree when run from a subdirectory means we would need to
give --full-name option to it.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>checkout: sometimes work from a subdirectory.</title>
<updated>2005-12-23T07:16:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-23T06:37:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=104f3e03c03a83617bac9d120b5e536c5f29d9ef'/>
<id>urn:sha1:104f3e03c03a83617bac9d120b5e536c5f29d9ef</id>
<content type='text'>
git-checkout does two very different things, and what they
should do when run from subdirectory are quite different.

It does not make any sense to run the one that switches the
current head from anywhere other than the toplevel:

	git-checkout [-f] &lt;branch&gt;
        git-checkout [-b &lt;branch&gt;] &lt;committish&gt;

We could of course chdir to top and do the whole-tree checkout
in git-checkout, but the point is the operation does not make
sense on a partial tree.  The whole tree is checked out.

The other form is to update the index file and working tree file
selectively:

	git-checkout &lt;treeish&gt; &lt;file&gt;... ;# out of tree to index and file
        git-checkout -- &lt;file&gt;...	 ;# out of index to file

This form _does_ make sense to run from subdirectory; and I
myself often wish we supported this.

So here is a patch to do both.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Comment fixes.</title>
<updated>2005-12-17T07:32:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-17T07:12:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=01385e275828c1116ea9bfcf827f82f450ee8f5f'/>
<id>urn:sha1:01385e275828c1116ea9bfcf827f82f450ee8f5f</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Trivial usage string clean-up</title>
<updated>2005-12-14T10:53:43Z</updated>
<author>
<name>freku045@student.liu.se</name>
<email>freku045@student.liu.se</email>
</author>
<published>2005-12-13T22:30:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=806f36d4d7caf75b6d3e098cb0353d85d3477c7d'/>
<id>urn:sha1:806f36d4d7caf75b6d3e098cb0353d85d3477c7d</id>
<content type='text'>
Signed-off-by: Fredrik Kuivinen &lt;freku045@student.liu.se&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
