git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GSoC] Microproject :- Teaching git pull --rebase the --no-autostash flag
@ 2016-02-26 11:23 Mehul Jain
  2016-02-26 11:23 ` [PATCH] Add --no-autostash flag to git pull --rebase Mehul Jain
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Mehul Jain @ 2016-02-26 11:23 UTC (permalink / raw)
  To: git; +Cc: me, pyokagan, Mehul Jain

With this patch, git pull --rebase will understand --no-autostash command line flag.
This flag will override "rebase.autostash" configuration(if set) and leads to a
failure if current working directory is dirty. If "rebase.autostash" is not configured
and no flag is passed then by default command will die if directory is to be dirty, before
even calling rebase.

I am also thinking of adding a "--autostash" flag for git pull --rebase, which will
override "rebase.autostash" configuration(if set false) and will pass --autostash to
git rebase. I would like to know your opinion on this option. 

Thanks! 

Mehul Jain (1):
  Add --no-autostash flag to git pull --rebase

 builtin/pull.c          | 12 ++++++++----
 t/t5520-pull.sh         |  8 ++++++++
 t/t5521-pull-options.sh | 24 ++++++++++++++++++++++++
 3 files changed, 40 insertions(+), 4 deletions(-)

-- 
2.7.1.340.g69eb491.dirty

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-02-26 19:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-26 11:23 [GSoC] Microproject :- Teaching git pull --rebase the --no-autostash flag Mehul Jain
2016-02-26 11:23 ` [PATCH] Add --no-autostash flag to git pull --rebase Mehul Jain
2016-02-26 12:47   ` Paul Tan
2016-02-26 17:09     ` Mehul Jain
2016-02-26 11:51 ` [GSoC] Microproject :- Teaching git pull --rebase the --no-autostash flag Paul Tan
2016-02-26 12:05   ` Mehul Jain
2016-02-26 13:16 ` Matthieu Moy
2016-02-26 19:17   ` Philip Oakley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).