We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 76deaab + 99855dd commit 437ce60Copy full SHA for 437ce60
1 file changed
git-rebase.sh
@@ -167,13 +167,22 @@ You can run "git stash pop" or "git stash drop" at any time.
167
rm -rf "$state_dir"
168
}
169
170
-run_specific_rebase () {
+run_specific_rebase_internal () {
171
if [ "$interactive_rebase" = implied ]; then
172
GIT_EDITOR=:
173
export GIT_EDITOR
174
autosquash=
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.
181
. git-rebase--$type
182
+}
183
+
184
+run_specific_rebase () {
185
+ run_specific_rebase_internal
186
ret=$?
187
if test $ret -eq 0
188
then
0 commit comments