File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -167,13 +167,22 @@ You can run "git stash pop" or "git stash drop" at any time.
167
167
rm -rf " $state_dir "
168
168
}
169
169
170
- run_specific_rebase () {
170
+ run_specific_rebase_internal () {
171
171
if [ " $interactive_rebase " = implied ]; then
172
172
GIT_EDITOR=:
173
173
export GIT_EDITOR
174
174
autosquash=
175
175
fi
176
+ # On FreeBSD, the shell's "return" returns from the current
177
+ # function, not from the current file inclusion.
178
+ # run_specific_rebase_internal has the file inclusion as a
179
+ # last statement, so POSIX and FreeBSD's return will do the
180
+ # same thing.
176
181
. git-rebase--$type
182
+ }
183
+
184
+ run_specific_rebase () {
185
+ run_specific_rebase_internal
177
186
ret=$?
178
187
if test $ret -eq 0
179
188
then
You can’t perform that action at this time.
0 commit comments