Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin <alban.gruin@gmail.com>2018-08-28 15:10:41 +0300
committerJunio C Hamano <gitster@pobox.com>2018-08-29 23:38:18 +0300
commitd59cd14de8e05111f45ad55a507493225cd849bc (patch)
treeba850f6e8b3c45b917293e3522352a10400727ef /git-rebase--interactive.sh
parent65850686cf072d6de88880247adb7113db8a52f2 (diff)
rebase -i: rewrite init_basic_state() in C
This rewrites init_basic_state() from shell to C. The call to write_basic_state() in cmd_rebase__helper() is replaced by a call to the new function. The shell version is then stripped from git-rebase--interactive.sh. Signed-off-by: Alban Gruin <alban.gruin@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-rebase--interactive.sh')
-rw-r--r--git-rebase--interactive.sh9
1 files changed, 0 insertions, 9 deletions
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index 6367da66e2..761be95ed1 100644
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -51,14 +51,6 @@ initiate_action () {
esac
}
-init_basic_state () {
- orig_head=$(git rev-parse --verify HEAD) || die "$(gettext "No HEAD?")"
- mkdir -p "$state_dir" || die "$(eval_gettext "Could not create temporary \$state_dir")"
- rm -f "$(git rev-parse --git-path REBASE_HEAD)"
-
- : > "$state_dir"/interactive || die "$(gettext "Could not mark as interactive")"
-}
-
git_rebase__interactive () {
initiate_action "$action"
ret=$?
@@ -67,7 +59,6 @@ git_rebase__interactive () {
fi
git rebase--helper --prepare-branch "$switch_to" ${verbose:+--verbose}
- init_basic_state
git rebase--helper --init-basic-state ${upstream:+--upstream "$upstream"} \
${onto:+--onto "$onto"} ${head_name:+--head-name "$head_name"} \