[PATCH] Do not ignore merge options in interactive rebase

2013-07-02 Thread Arnaud Fontaine
Merge strategy and its options can be specified in `git rebase`, but with `--interactive`, they were completely ignored. Signed-off-by: Arnaud Fontaine --- git-rebase--interactive.sh| 21 - t/t3404-rebase-interactive.sh | 11 +++ 2 files changed, 27 insertions(+),

Re: [PATCH] Do not ignore merge options in interactive rebase

2013-07-02 Thread Arnaud Fontaine
Hello, Sorry for the late reply. Junio C Hamano writes: > Junio C Hamano writes: > >> You should use ${var:+if_set_to_nonempty_use_this} here. >> ... >> So munging it manually with sloppy "sed" script is simply wrong. > > Perhaps something like this on top of your patch squashed in? > > The e

Re: [PATCH] Do not ignore merge options in interactive rebase

2013-06-25 Thread Junio C Hamano
Junio C Hamano writes: > You should use ${var:+if_set_to_nonempty_use_this} here. > ... > So munging it manually with sloppy "sed" script is simply wrong. Perhaps something like this on top of your patch squashed in? The eval magic lets the shell to split $strategy_opts back into individual wor

Re: [PATCH] Do not ignore merge options in interactive rebase

2013-06-25 Thread Junio C Hamano
Arnaud Fontaine writes: > Fix inconsistency where `--strategy` and/or `--strategy-option` can be > specified in git rebase, but with `--interactive` argument only there > were completely ignored. > > Signed-off-by: Arnaud Fontaine > --- > git-rebase--interactive.sh| 13 ++--- > t/t3

Re: [PATCH] Do not ignore merge options in interactive rebase

2013-06-24 Thread Junio C Hamano
Arnaud Fontaine writes: >>> + $(echo $strategy_opts | sed "s/'--\([^']*\)'/-X\1/g") \ >> >> Is it guaranteed $startegy_opts do not have a space in it? > > strategy_opts may be something like (git-rebase.sh): "'--foo' '--bar'", > but I'm not sure what is wrong if there is a space

[PATCH] Do not ignore merge options in interactive rebase

2013-06-24 Thread Arnaud Fontaine
Fix inconsistency where `--strategy` and/or `--strategy-option` can be specified in git rebase, but with `--interactive` argument only there were completely ignored. Signed-off-by: Arnaud Fontaine --- git-rebase--interactive.sh| 13 ++--- t/t3404-rebase-interactive.sh | 11 ++

Re: [PATCH] Do not ignore merge options in interactive rebase

2013-06-24 Thread Arnaud Fontaine
Junio C Hamano writes: > Arnaud Fontaine writes: > >> Merge strategy and its options can be specified in `git rebase`, but >> with `--interactive`, they were completely ignored. > > And why is it a bad thing? If you meant s/--interactive/-m/ in the > above, then I can sort of understand the

Re: [PATCH] Do not ignore merge options in interactive rebase

2013-06-21 Thread Junio C Hamano
Arnaud Fontaine writes: > Merge strategy and its options can be specified in `git rebase`, > but with `--interactive`, they were completely ignored. And why is it a bad thing? If you meant s/--interactive/-m/ in the above, then I can sort of understand the justification, though. > diff --git

[PATCH] Do not ignore merge options in interactive rebase

2013-06-20 Thread Arnaud Fontaine
Merge strategy and its options can be specified in `git rebase`, but with `--interactive`, they were completely ignored. Signed-off-by: Arnaud Fontaine --- git-rebase--interactive.sh| 11 ++- t/t3404-rebase-interactive.sh | 11 +++ 2 files changed, 21 insertions(+), 1 deletio