Skip to content

Commit 57e4b1c

Browse files
committed
Merge branch 'ws/rebase-p'
Code clean-up. * ws/rebase-p: rebase: remove merges_option and a blank line rebase: remove unused code paths from git_rebase__interactive__preserve_merges rebase: remove unused code paths from git_rebase__interactive rebase: add and use git_rebase__interactive__preserve_merges rebase: extract functions out of git_rebase__interactive rebase: reindent function git_rebase__interactive rebase: update invocation of rebase dot-sourced scripts rebase-interactive: simplify pick_on_preserving_merges
2 parents d19e556 + f24cd41 commit 57e4b1c

File tree

4 files changed

+216
-214
lines changed

4 files changed

+216
-214
lines changed

git-rebase--am.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@
44
# Copyright (c) 2010 Junio C Hamano.
55
#
66

7-
# The whole contents of this file is run by dot-sourcing it from
8-
# inside a shell function. It used to be that "return"s we see
9-
# below were not inside any function, and expected to return
10-
# to the function that dot-sourced us.
11-
#
12-
# However, older (9.x) versions of FreeBSD /bin/sh misbehave on such a
13-
# construct and continue to run the statements that follow such a "return".
14-
# As a work-around, we introduce an extra layer of a function
15-
# here, and immediately call it after defining it.
167
git_rebase__am () {
178

189
case "$action" in
@@ -105,5 +96,3 @@ fi
10596
move_to_original_branch
10697

10798
}
108-
# ... and then we call the whole thing.
109-
git_rebase__am

0 commit comments

Comments
 (0)