On Sun, Jan 13, 2008 at 11:27:08AM -0500, Mark Levedahl wrote:I'm not sure I see the use case that this helps. Presumably you are doing one of (assuming your core.origin is 'foo'): - delete 'foo', and then proceed with usual git commands. In this case, your core.origin has reverted to 'origin', but what is the chance that you actually have such a remote (since you presumably cloned with -o foo)? - delete 'foo', then re-add 'foo'. I would expect this to be equivalent to editing the config, but as a side effect, your core.origin has mysteriously changed. - delete 'foo', then re-add 'bar' with the intent of making it your new origin. This doesn't help at all, since there's nothing automatically setting core.origin to 'bar', so you might as well leave it as the bogus 'foo' rather than the bogus 'origin'. And to help this use case, something like a "-d" flag to git-remote to set the new origin as the default might make sense. I.e., git remote rm foo git remote add -d bar git://bar/project.git Alternatively, when adding a remote, if it is the _only_ remote (or perhaps if the current core.origin doesn't exist), we could set core.origin which would automagically cover the latter two cases. Although it feels a little too DWIM. -Peff - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Linus Torvalds | Re: Long delay in resume from RAM (Was Re: [patch 00/69] -stablereview) |
| Parag Warudkar | BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0] |
git: | |
| Andi Kleen | [PATCH RFC] [4/9] modpost: Fix format string warnings |
| Rick Jones | Re: Network latency regressions from 2.6.22 to 2.6.29 |
| Antonio Almeida | HTB accuracy for high speed |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
