diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-05-28 11:04:59 -0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-05-28 17:50:40 -0400 |
commit | 5b6ffff644237682c5a20e8ec0a16164bdeb3bfb (patch) | |
tree | 92f7b4ef0b1d753ddc5974f56265751f0ebc4a0f /lib/option.tcl | |
parent | 994a794288d73ee9151481805c2ea98f448cf3e0 (diff) | |
download | git-5b6ffff644237682c5a20e8ec0a16164bdeb3bfb.tar.gz git-5b6ffff644237682c5a20e8ec0a16164bdeb3bfb.tar.xz |
git-gui: GUI support for running 'git remote prune <name>'
In some workflows it is common for a large number of temporary
branches to be created in a remote repository, get fetched to
clients that typically only use git-gui, and then later have
those branches deleted from the remote repository once they have
been fully merged into all destination branches. Users of git-gui
would obviously like to have their local tracking branches cleaned
up for them, otherwise their local tracking branch namespace would
grow out of control.
The best known way to remove these tracking branches is to run
"git remote prune <remotename>". Even though it is more of a
Porcelain command than plumbing I'm invoking it through the UI,
because frankly I don't see a reason to reimplement its ls-remote
output filtering and config file parsing.
A new configuration option (gui.pruneduringfetch) can be used to
automatically enable running "git remote prune <remotename>" after
the fetch of that remote also completes successfully. This is off
by default as it require an additional network connection and is
not very fast on Cygwin if a large number of tracking branches have
been removed (due to the 2 fork+exec calls per branch).
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib/option.tcl')
-rw-r--r-- | lib/option.tcl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/option.tcl b/lib/option.tcl index 17fcc65f7..e06aca59f 100644 --- a/lib/option.tcl +++ b/lib/option.tcl @@ -173,6 +173,7 @@ proc do_options {} { {i-1..5 merge.verbosity {Merge Verbosity}} {b gui.trustmtime {Trust File Modification Timestamps}} + {b gui.pruneduringfetch {Prune Tracking Branches During Fetch}} {i-1..99 gui.diffcontext {Number of Diff Context Lines}} {t gui.newbranchtemplate {New Branch Name Template}} } { |