summaryrefslogtreecommitdiff
path: root/builtin/upload-pack.c
diff options
context:
space:
mode:
authorLibravatar Alban Gruin <alban.gruin@gmail.com>2018-08-28 14:10:38 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-29 13:38:18 -0700
commit6ab54d17be3f51153444d8efebb0ae363eb9b7c9 (patch)
treedda057be5cd6400e10c5e78b0e9063c469824dc0 /builtin/upload-pack.c
parentrebase -i: remove unused modes and functions (diff)
downloadtgif-6ab54d17be3f51153444d8efebb0ae363eb9b7c9.tar.xz
rebase -i: implement the logic to initialize $revisions in C
This rewrites the part of init_revisions_and_shortrevisions() needed by `--make-script` from shell to C. The new version is called get_revision_ranges(), and is a static function inside of rebase--helper.c. As this does not initialize $shortrevision, the original shell version is not yet stripped. Unlike init_revisions_and_shortrevisions(), get_revision_ranges() doesn’t write $squash_onto to the state directory, it’s done by the handler of `--make-script` instead. Finally, this drops the $revision argument passed to `--make-script` in git-rebase--interactive.sh, and rebase--helper is changed accordingly. Signed-off-by: Alban Gruin <alban.gruin@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/upload-pack.c')
0 files changed, 0 insertions, 0 deletions