diff options
author | Steffen Prohaska <prohaska@zib.de> | 2007-10-08 08:25:47 +0200 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-10-12 01:13:55 -0400 |
commit | 24f7c64b21bb26aab5b8525c0bac8452e7a7a4c8 (patch) | |
tree | 06eb5f184a23152c2b18fcfdde8f78fd68da8645 /git-gui.sh | |
parent | 85f7a94b3c1e4289827f2529d2e8447f3678c619 (diff) | |
download | git-24f7c64b21bb26aab5b8525c0bac8452e7a7a4c8.tar.gz |
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 <prohaska@zib.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-x | git-gui.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh index a6e2d57a2f..dd320fb075 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -205,6 +205,7 @@ proc disable_option {option} { proc is_many_config {name} { switch -glob -- $name { + gui.recentrepo - remote.*.fetch - remote.*.push {return 1} |