Re: [RFC/PATCH 5/6] revert: add --ff option to allow fast forward when cherry-picking

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christian Couder
Date: Monday, February 1, 2010 - 10:13 pm

On lundi 01 février 2010, Paolo Bonzini wrote:

Yes, indeed! Good catch!


Because --no-ff could be used when the GIT_COMMITTER_* and GIT_AUTHOR_* env 
variable should be respected? Or because we should check if one of these 
env variable is set and, if that is the case, we should not fast forward?

As I think it would be a big backward incompatibility to force people to 
update their scripts to add --no-ff, I think you probably suggest the 
latter. This mean that we could have both --ff and --no-ff. --ff could 
force fast forward even if some of the above env variables are set. --no-ff 
would disable fast forward even if none of the above env variable is set.


I am not too worried by this expectation, but I think that, as it looks like 
we will need --ff anyway, it is safer to start by implementing --ff like I 
did and then later we can implement --no-ff and change the default (when 
neither --ff nor --no-ff is used) to look at env variables (or config 
variables) to decide if we will fast forward or not.


Yeah, I will add the same treatment for these options.


Yeah, but let's change the default later please.

Thanks,
Christian.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC/PATCH 0/6] add --ff option to cherry-pick, Christian Couder, (Mon Feb 1, 12:55 am)
[RFC/PATCH 3/6] reset: refactor reseting in its own function, Christian Couder, (Mon Feb 1, 12:55 am)
[RFC/PATCH 4/6] reset: make reset function non static and ..., Christian Couder, (Mon Feb 1, 12:55 am)
[RFC/PATCH 6/6] rebase -i: use new --ff cherry-pick option, Christian Couder, (Mon Feb 1, 12:55 am)
Re: [RFC/PATCH 1/6] revert: libify cherry-pick and revert ..., Johannes Schindelin, (Mon Feb 1, 3:26 am)
Re: [RFC/PATCH 5/6] revert: add --ff option to allow fast ..., Christian Couder, (Mon Feb 1, 10:13 pm)