Files
git/builtin
Ramkumar Ramachandra 9044143ff1 revert: Don't create invalid replay_opts in parse_args
The "--ff" command-line option cannot be used with some other
command-line options.  However, parse_args still parses these
incompatible options into a replay_opts structure for use by the rest
of the program.  Although pick_commits, the current gatekeeper to the
cherry-pick machinery, checks the validity of the replay_opts
structure before before starting its operation, there will be multiple
entry points to the cherry-pick machinery in future.  To futureproof
the code and catch these errors in one place, make sure that an
invalid replay_opts structure is not created by parse_args in the
first place.  We still check the replay_opts structure for validity in
pick_commits, but this is an assert() now to emphasize that it's the
caller's responsibility to get it right.

Inspired-by: Christian Couder <chriscool@tuxfamily.org>
Mentored-by: Jonathan Nieder <jrnieder@gmail.com>
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-08-04 15:40:43 -07:00
..
2011-05-31 12:19:11 -07:00
2011-06-20 14:27:36 -07:00
2011-05-31 12:19:11 -07:00
2011-06-20 14:27:36 -07:00
2011-06-08 17:21:08 -07:00
2011-05-30 00:00:07 -07:00
2011-05-31 12:19:11 -07:00
2011-05-31 12:19:11 -07:00
2011-04-01 17:55:55 -07:00
2011-04-01 17:55:55 -07:00
2011-05-31 12:19:11 -07:00
2011-05-19 10:55:54 -07:00
2011-05-31 12:19:11 -07:00
2011-05-10 08:45:37 -07:00