summaryrefslogtreecommitdiff
path: root/lib/branch_delete.tcl
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-07-04 00:15:41 -0400
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-07-08 21:12:48 -0400
commit6f2a3fc812623bc82fb4997adb5a9a547b5dae1a (patch)
tree48981aae7f8cae86f60669425e5744029d778b56 /lib/branch_delete.tcl
parentgit-gui: Refactor the delete branch dialog to use class system (diff)
downloadtgif-6f2a3fc812623bc82fb4997adb5a9a547b5dae1a.tar.xz
git-gui: Optimize for newstyle refs/remotes layout
Most people using Git 1.5.x and later are using the newer style of remotes layout where all of their tracking branches are in refs/remotes and refs/heads contains only the user's own local branches. In such a situation we can avoid calling is_tracking_branch for each head we are considering because we know that all of the heads must be local branches if no fetch option or Pull: line maps a branch into that namespace. If however any remote maps a remote branch into a local tracking branch that resides in refs/heads we do exactly what we did before, which requires scanning through all fetch lines in case any patterns are matched. I also switched some regexp/regsub calls to string match as this can be a faster operation for prefix matching. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib/branch_delete.tcl')
0 files changed, 0 insertions, 0 deletions