summaryrefslogtreecommitdiff
path: root/server-info.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-08-13 17:06:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-12-12 21:32:16 (GMT)
commit7f13334e074bb053eccd14787e416306bc4b413a (patch)
tree94de9095639d371cbbdb8862e13b848703e1174e /server-info.c
parent093a309136c38eca0ea2dd5da3c68b483443d113 (diff)
downloadgit-7f13334e074bb053eccd14787e416306bc4b413a.zip
git-7f13334e074bb053eccd14787e416306bc4b413a.tar.gz
git-7f13334e074bb053eccd14787e416306bc4b413a.tar.bz2
revert: pass around rev-list args in already-parsed form
Since 7e2bfd3f (revert: allow cherry-picking more than one commit, 2010-07-02), the pick/revert machinery has kept track of the set of commits to be cherry-picked or reverted using commit_argc and commit_argv variables, storing the corresponding command-line parameters. Future callers as other commands are built in (am, rebase, sequencer) may find it easier to pass rev-list options to this machinery in already-parsed form. Teach cmd_cherry_pick and cmd_revert to parse the rev-list arguments in advance and pass the commit set to pick_revisions() as a rev_info structure. Original patch by Jonathan, tweaks and test from Ram. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Improved-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'server-info.c')
0 files changed, 0 insertions, 0 deletions