path: root/
diff options
authorSteffen Prohaska <>2007-10-08 06:25:47 (GMT)
committerShawn O. Pearce <>2007-10-12 05:13:55 (GMT)
commit24f7c64b21bb26aab5b8525c0bac8452e7a7a4c8 (patch)
tree06eb5f184a23152c2b18fcfdde8f78fd68da8645 /
parent85f7a94b3c1e4289827f2529d2e8447f3678c619 (diff)
git-gui: offer a list of recent repositories on startup
If git-gui is started outside a work tree the repository chooser will offer a list of recently opened repositories. Clicking on any list entry directly opens the repository. The list of recently opened repositories is stored in the config as the multi-valued option gui.recentrepo. If the list grows beyond 10 entries it will be truncated by removing one of the older entries. Only repositories that are opened through the repository chooser will get added to the recent list. Repositories opened from the shell will not yet be added to the recent list, as users are likely to have a way to easily return to the same directory via their shell. [sp: This is actually a combined work from both Steffen and myself. Most of the ideas are Steffen's, as is the basic outline of the code, but any outstanding bugs are entirely my fault.] Signed-off-by: Steffen Prohaska <> Signed-off-by: Shawn O. Pearce <>
Diffstat (limited to '')
1 files changed, 1 insertions, 0 deletions
diff --git a/ b/
index a6e2d57..dd320fb 100755
--- a/
+++ b/
@@ -205,6 +205,7 @@ proc disable_option {option} {
proc is_many_config {name} {
switch -glob -- $name {
+ gui.recentrepo -
remote.*.fetch -
{return 1}