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.
167167 rm -rf " $state_dir "
168168}
169169
170- run_specific_rebase () {
170+ run_specific_rebase_internal () {
171171 if [ " $interactive_rebase " = implied ]; then
172172 GIT_EDITOR=:
173173 export GIT_EDITOR
174174 autosquash=
175175 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.
176181 . git-rebase--$type
182+ }
183+
184+ run_specific_rebase () {
185+ run_specific_rebase_internal
177186 ret=$?
178187 if test $ret -eq 0
179188 then
You can’t perform that action at this time.
0 commit comments