Skip to content

Commit

Permalink
rebase: don't source git-sh-setup twice
Browse files Browse the repository at this point in the history
The git-sh-setup script is already sourced in git-rebase.sh before
calling into git-rebase--(am|interactive|merge).sh. There are no other
callers of these scripts. It is therefore unnecessary to source
git-sh-setup again in them.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Martin von Zweigbergk authored and Junio C Hamano committed Jun 26, 2012
1 parent bc9e7dd commit 572a7c5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions git-rebase--am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Copyright (c) 2010 Junio C Hamano.
#

. git-sh-setup

case "$action" in
continue)
git am --resolved --resolvemsg="$resolvemsg" &&
Expand Down
4 changes: 1 addition & 3 deletions git-rebase--interactive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
#
# The original idea comes from Eric W. Biederman, in
# http://article.gmane.org/gmane.comp.version-control.git/22407

. git-sh-setup

#
# The file containing rebase commands, comments, and empty lines.
# This file is created by "git rebase -i" then edited by the user. As
# the lines are processed, they are removed from the front of this
Expand Down
2 changes: 0 additions & 2 deletions git-rebase--merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Copyright (c) 2010 Junio C Hamano.
#

. git-sh-setup

prec=4

read_state () {
Expand Down

0 comments on commit 572a7c5

Please sign in to comment.