{"thread":{"id":"41153","subject":"git pull --rebase --autostash","startedAt":"2016-01-08T15:24:09Z","lastAt":"2016-01-11T21:03:34Z","messageCount":2,"participants":["Federico Bond","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"275552","messageId":"CABKJOiy1+QAgp=_3ofr4CqNH7ZPP_eR4P71yGSgeAYLBz92AZQ@mail.gmail.com","threadId":"41153","inReplyTo":null,"subject":"git pull --rebase --autostash","fromName":"Federico Bond","fromEmail":"federico.bond@gmail.com","sentAt":"2016-01-08T15:24:09Z","receivedAt":"2016-01-08T15:24:09Z","isPatch":false,"sender":{"key":"federico.bond@gmail.com","avatar":null},"body":"Hi,\n\nI was looking through the changes in 2.7 and learned about the very\nuseful autostash feature of git rebase which was present since git\n1.8.4.\n\nI was wondering if there has been discussion about adding the same\nflag(s) for use with git pull --rebase. It seems odd that git pull\n--rebase honors the rebase.autostash config setting but there is no\nway to override it with a flag.\n\nIf you are OK with this, I can work on a patch to add --[no-]autostash\nto git pull.\n\nThanks,\n\nFederico Bond\n"},{"id":"275707","messageId":"20160111210334.GB14535@sigill.intra.peff.net","threadId":"41153","inReplyTo":"CABKJOiy1+QAgp=_3ofr4CqNH7ZPP_eR4P71yGSgeAYLBz92AZQ@mail.gmail.com","subject":"Re: git pull --rebase --autostash","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2016-01-11T21:03:34Z","receivedAt":"2016-01-11T21:03:34Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Jan 08, 2016 at 12:24:09PM -0300, Federico Bond wrote:\n\n> I was looking through the changes in 2.7 and learned about the very\n> useful autostash feature of git rebase which was present since git\n> 1.8.4.\n> \n> I was wondering if there has been discussion about adding the same\n> flag(s) for use with git pull --rebase. It seems odd that git pull\n> --rebase honors the rebase.autostash config setting but there is no\n> way to override it with a flag.\n> \n> If you are OK with this, I can work on a patch to add --[no-]autostash\n> to git pull.\n\nI don't use either feature myself, but I agree that we generally like to\nhave matching command line flags to countermand config options.\n\nI seem to recall another thread recently where somebody wanted to pass\nan option to rebase via \"git pull\", but I can't seem to dig it up just\nnow. Having a generic way to pass such options seems like it could be\nuseful, though (e.g., \"--keep-empty\" might be useful).\n\n-Peff\n"}]}