Shawn,
I attached two patches. They should eventually be both squashed into
one.
You can also cherry pick them from work/setup-preview in 4msysgit.
I'm not yet fully convinced of the performance of the second patch.
It is far from optimal, although it might be sufficient.
If you're satisfied with the current implementation you can squash them
into a single commit; or ask me to do that.
More comments below, after the summary.
commit a483fdd562d6c44d68a998224e0bbb17933b624a
Author: Steffen Prohaska <prohaska@zib.de>
Date: Mon Oct 8 08:25:47 2007 +0200
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 opend repositories.
Clicking on an entry directly opens the repository.
The list of recently opened repositories is stored in the
config as gui.recentrepos. If the list grows beyond 10
entries it will be truncated.
Note, 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.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
commit a9f083e83717eef91ba8842ece4a3ec0824126af
Author: Steffen Prohaska <prohaska@zib.de>
Date: Mon Oct 8 08:14:34 2007 +0200
git-gui: handle list of recent repos as multi config gui.recentrepo
Instead of encoding the list of recently opened repositories
in a single config line, this commit uses multiple lines of
gui.recentrepo.
An advantage is that the solution makes the list explicit
on the git config level. This may be easier to understand
if the user wants to look at the configuration.
A disadvantage (of the current implementation) is that it
requires more git config calls to manage the list. This could
be optimized. But maybe not required because the list is only
updated on opening a new repository, which is already a quite
expensive operation.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
On Oct 8, 2007, at 1:30 AM, Shawn O. Pearce wrote:
changed in first patch.
changed in first patch.
I don't think " is allowed. I wasn't able to create a file containing
" in its path. Neither from the explorer nor on the command line.
The second patch actually runs git config several times to first
remote all multi-value entries and then create them one by one. This
is worse performance than before.
This could be avoided by selectively removing only a single entry.
'git config' could be asked to only remove the entry that was removed
from the tcl list. But 'git config' only accepts regular expression
to do so.
I don't know how to escape a simple string to a corresponding
regular expression that matches only the string but nothing else.
For my problem it would be much easier if 'git config' accepted just
a plain string that must be matched exactly and not a regular
expression.
I see two solutions:
1) Someone explains me how to convert a string to a regular expression
matching only the input string.
2) "git config" is modified to accept a simple string as its second
argument.
Maybe we can use implementation in the second patch for now and wait
until "git config" is modified. Note, I'll not start to work on this
right
away because I want to stay focused on the basic functionality on
Windows and,
for now, do not care about performance too much.
Steffen
| Jesper Krogh | Re: Linux 2.6.26-rc4 |
| Borislav Petkov | 2.6.23-rc1: no setup signature found... |
| Dmitry Torokhov | 2.6.27-rc8+ - first impressions |
| Andi Kleen | Re: 2.6.27-rc1: critical thermal shutdown on thinkpad x60 |
git: | |
| Ken Pratt | pack operation is thrashing my server |
| Martin Langhoff | parsecvs repository moved... |
| Johan Herland | [PATCH 3/6] git-fsck: Do thorough verification of tag objects. |
| Nigel Magnay | crlf with git-svn driving me nuts... |
| Joaquin Herrero | ssh hangs from Ubunty Feisty 7.04 to OpenBSD |
| Marco Peereboom | Re: Real men don't attack straw men |
| Pieter Verberne | Remove escape characters from file |
| L. V. Lammert | Re: About Xen: maybe a reiterative question but .. |
| Krzysztof Oledzki | Error: an inet prefix is expected rather than "0/0". |
| Evgeniy Polyakov | [resend take 2 4/4] DST Makefile/Kconfig files. |
| Denys Fedoryshchenko | thousands of classes, e1000 TX unit hang |
| Bruce Allen | e1000 full-duplex TCP performance well below wire speed |
| Block Sub System query | 3 hours ago | Linux kernel |
| kernel module to intercept socket creation | 5 hours ago | Linux kernel |
| Image size changing during each build | 5 hours ago | Linux kernel |
| Soft lock bug | 10 hours ago | Linux kernel |
| sysctl - dynamic registration problem | 16 hours ago | Linux kernel |
| Question on swap as ramdisk partition | 18 hours ago | Linux kernel |
| serial driver xmit problem | 23 hours ago | Linux kernel |
| Generic Netlink subsytem | 1 day ago | Linux kernel |
| 'Report spam filter error' page broken | 1 day ago | KernelTrap Suggestions and Feedback |
| Netfilter kernel module | 1 day ago | Linux kernel |
