git/lib
Shawn O. Pearce 7bd197c7ba git-gui: Fix unnecessary fast-forward during checkout
If we are trying to checkout a local branch which is matched to a
remote tracking branch, but the local branch is newer than the remote
tracking branch we actually just want to switch to the local branch.
The local branch is "Already up to date".

Unfortunately we tossed away the local branch's commit SHA-1 and kept
the remote tracking branch's SHA-1, which meant that the user lost the
local changes when we updated the working directory.  At least we did
not update the local branch ref, so the user's data was still intact.

We now toss the tracking branch's SHA-1 and replace with the local
branch's SHA-1 before the checkout, ensuring that we pass of the right
tree to git-read-tree when we update the working directory.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2007-07-22 04:09:53 -04:00
..
blame.tcl git-gui: Don't show blame tooltips that we have no data for 2007-07-19 01:45:42 -04:00
branch.tcl
branch_checkout.tcl
branch_create.tcl
branch_delete.tcl
branch_rename.tcl
browser.tcl git-gui: Allow users to browse any branch, not just the current one 2007-07-18 01:39:27 -04:00
checkout_op.tcl git-gui: Fix unnecessary fast-forward during checkout 2007-07-22 04:09:53 -04:00
choose_rev.tcl git-gui: Increase the default height of the revision picker 2007-07-18 02:27:39 -04:00
class.tcl
commit.tcl git-gui: Automatically backup the user's commit buffer 2007-07-21 04:57:57 -04:00
console.tcl
database.tcl git-gui: Delay the GC hint until after we are running 2007-07-17 23:20:56 -04:00
diff.tcl git-gui: Always disable the Tcl EOF character when reading 2007-07-17 01:50:10 -04:00
encoding.tcl git-gui: Translate standard encoding names to Tcl ones 2007-07-19 01:27:17 -04:00
error.tcl git-gui: Don't crash in ask_popup if we haven't mapped main window yet 2007-07-17 22:45:53 -04:00
index.tcl
merge.tcl git-gui: Completely remove support for creating octopus merges 2007-07-19 02:24:25 -04:00
option.tcl
remote.tcl
remote_branch_delete.tcl
shortcut.tcl git-gui: Include a space in Cygwin shortcut command lines 2007-07-09 21:19:22 -04:00
status_bar.tcl
transport.tcl