On Tue, Aug 20, 2013 at 08:59:18PM -0700, Sam Roberts wrote: > On Mon, Aug 19, 2013 at 2:58 AM, Magnus Therning <mag...@therning.org> wrote: > > On Wed, Aug 14, 2013 at 03:29:10PM -0700, Sam Roberts wrote: > >> I don't see anything in the docs (other than a gui.pruneduringfetch). > >> I'd be OK with a global default, I think I want this always, but a > >> per/remote option for .git/config would be nice to. > >> > >> Have I missed this somewhere? > > > > I have the following in my ~/.gitconfig, which I think works the way > > you want ;) > > > > [alias] > > fetch = fetch -p > > Have you tried? It doesn't work for me: > > block:~/p/sam-github/subhelp % grep fetch ~/.gitconfig > fetch = fetch --prune > block:~/p/sam-github/subhelp % git fetch > block:~/p/sam-github/subhelp % git fetch --prune > x [deleted] (none) -> origin/fu > > I'll do an alias to "f", that will help, but still won't make it > happen after a git pull. I could look into a git post pull hook... > except it doesn't exist, and there are no global hooks.
You are correct, according to the git-config man page: To avoid confusion and troubles with script usage, aliases that hide existing Git commands are ignored. So I can remove that part of my config and I ought to learn to read better :) /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: mag...@therning.org jabber: mag...@therning.org twitter: magthe http://therning.org/magnus I invented the term Object-Oriented, and I can tell you I did not have C++ in mind. -- Alan Kay
Description: PGP signature