Re: Cleaning up git user-interface warts
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Nov 17, 2006, 16:58 UTC
- Message-ID
- <20061117165849.GC32597@spearce.org>
- In-Reply-To
- <Pine.LNX.4.63.0611171103150.13772@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 7 quoted lines
> I introduced the remote.<nick>.{url,fetch,push} entries into the config
> with the goal to enhance -fetch to remember the current command line with
> a setting. I was the only one to find that useful.
>
> BTW I still would argue that it is better to write the remote information
> into the config, because you have a saner way to manipulate that from
> scripts than .git/remotes/<nick>.I'm *fully* in favor of the remote.<nick>.{url,fetch,push} entries in the config file. I've pretty much switched every repository to that format at this point.
In writing git-gui I'm finding it much, much easier to manage things through repo-config than to do any mucking around in the .git/remotes directory. Yes, the remote files have simple format, but I can get everything in one "git repo-config --list" pull it all into a Tcl array and work with it; using .git/remotes means I have to open the file and read each line too. :-(