Hi, On Sun, 5 Aug 2007, Johan Herland wrote: > On Sunday 05 August 2007, Theodore Tso wrote: > > On Sun, Aug 05, 2007 at 02:11:24PM +0200, Johan Herland wrote: > > > Adding a git-addremove command should not be much work, and it would be > > > a lot friendlier to people whose workflow is more aligned with #2 than > > > #1. > > Not much work at all: > > > > # git config --system --add alias.addremove "git add . ; git add -u" Note that this will not work: you have to add an exclamation mark before "git add", because it has to execute two commands. Note also that I do _not_ suggest using --system. This option forces you to run git as root on sane systems, which I think is wrong. Rather use "--global" to make it globally available to _you_. > But I'm wondering whether we'd want to include it in git by default > (instead of having to tell confused users to add the alias). I recommend against that, too. All too often, I have some temporary files in the working tree, and I'll be dimmed if I'm the only one. So "addremove" adds too much possibility for pilot errors. My opinion here is not set in stone, though. Maybe you can convince me. Ciao, Dscho - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html