1
0
mirror of https://github.com/git/git.git synced 2024-09-29 20:13:27 +02:00
git/lib
Shawn O. Pearce d41b43eb4c git-gui: Refactor branch switch to support detached head
This is a major rewrite of the way we perform switching between
branches and the subsequent update of the working directory.  Like
core Git we now use a single code path to perform all changes: our
new checkout_op class.  We also use it for branch creation/update
as it integrates the tracking branch fetch process along with a
very basic merge (fast-forward and reset only currently).

Because some users have literally hundreds of local branches we
use the standard revision picker (with its branch filtering tool)
to select the local branch, rather than keeping all of the local
branches in the Branch menu.  The branch menu listing out all of
the available branches is simply not sane for those types of huge
repositories.

Users can now checkout a detached head by ticking off the option
in the checkout dialog.  This option is off by default for the
obvious reason, but it can be easily enabled for any local branch
by simply checking it.  We also detach the head if any non local
branch was selected, or if a revision expression was entered.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2007-07-08 22:34:46 -04:00
..
blame.tcl Merge branch 'maint' 2007-07-08 21:10:03 -04:00
branch_checkout.tcl git-gui: Refactor branch switch to support detached head 2007-07-08 22:34:46 -04:00
branch_create.tcl git-gui: Refactor branch switch to support detached head 2007-07-08 22:34:46 -04:00
branch_delete.tcl git-gui: Refactor branch switch to support detached head 2007-07-08 22:34:46 -04:00
branch_rename.tcl git-gui: Refactor branch switch to support detached head 2007-07-08 22:34:46 -04:00
branch.tcl git-gui: Refactor branch switch to support detached head 2007-07-08 22:34:46 -04:00
browser.tcl git-gui: Save geometry before the window layout is damaged 2007-06-11 23:52:43 -04:00
checkout_op.tcl git-gui: Refactor branch switch to support detached head 2007-07-08 22:34:46 -04:00
choose_rev.tcl git-gui: Refactor branch switch to support detached head 2007-07-08 22:34:46 -04:00
class.tcl git-gui: Teach class system to support [$this cmd] syntax 2007-07-08 21:12:45 -04:00
commit.tcl git-gui: Refactor branch switch to support detached head 2007-07-08 22:34:46 -04:00
console.tcl git-gui: Refactor branch switch to support detached head 2007-07-08 22:34:46 -04:00
database.tcl git-gui: Convert browser, console to "class" format 2007-05-08 21:38:54 -04:00
diff.tcl git-gui: Refactor our ui_status_value update technique 2007-07-08 21:12:57 -04:00
error.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
index.tcl git-gui: Refactor our ui_status_value update technique 2007-07-08 21:12:57 -04:00
merge.tcl git-gui: Refactor our ui_status_value update technique 2007-07-08 21:12:57 -04:00
option.tcl git-gui: Option to default new branches to match tracking branches 2007-07-08 21:12:54 -04:00
remote_branch_delete.tcl git-gui: Correct resizing of remote branch delete dialog 2007-07-04 23:16:20 -04:00
remote.tcl git-gui: Maintain remote and source ref for tracking branches 2007-07-08 21:12:49 -04:00
shortcut.tcl git-gui: Ensure windows shortcuts always have .bat extension 2007-07-06 04:02:18 -04:00
transport.tcl git-gui: Refactor branch switch to support detached head 2007-07-08 22:34:46 -04:00