Files
git/builtin
Ramkumar Ramachandra 043a4492b3 sequencer: factor code out of revert builtin
Expose the cherry-picking machinery through a public
sequencer_pick_revisions() (renamed from pick_revisions() in
builtin/revert.c), so that cherry-picking and reverting are special
cases of a general sequencer operation.  The cherry-pick builtin is
now a thin wrapper that does command-line argument parsing before
calling into sequencer_pick_revisions().  In the future, we can write
a new "foo" builtin that calls into the sequencer like:

  memset(&opts, 0, sizeof(opts));
  opts.action = REPLAY_FOO;
  opts.revisions = xmalloc(sizeof(*opts.revs));
  parse_args_populate_opts(argc, argv, &opts);
  init_revisions(opts.revs);
  sequencer_pick_revisions(&opts);

This patch does not intend to make any functional changes.  Check
with:

  $ git blame -s -C HEAD^..HEAD -- sequencer.c | grep -C3 '^[^^]'

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2012-01-11 18:11:49 -08:00
..
2011-12-13 21:58:51 -08:00
2011-12-19 16:05:50 -08:00
2011-12-19 16:06:22 -08:00
2011-12-13 10:17:50 -08:00
2011-12-13 22:18:00 -08:00
2011-11-07 22:12:19 -08:00
2011-12-21 12:02:44 -08:00
2011-12-19 16:05:34 -08:00
2011-12-22 11:27:26 -08:00
2011-11-07 22:12:19 -08:00
2011-09-01 15:46:13 -07:00
2011-12-13 23:07:47 -08:00
2011-08-25 14:42:11 -07:00