Skip to content

Commit

Permalink
Replace gitflow_check_ prefixes by gitflow_require_ prefixes, for con…
Browse files Browse the repository at this point in the history
…sistency.
  • Loading branch information
nvie committed Jan 29, 2010
1 parent 278884b commit 4838644
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion git-flow
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ main() {
cmd_$SUBACTION "$@"
}

gitflow_check_clean_working_tree() {
gitflow_require_clean_working_tree() {
if ! git diff --no-ext-diff --ignore-submodules --quiet --exit-code; then
die "Working tree contains unstaged changes. Aborting ..."
fi
Expand Down
8 changes: 4 additions & 4 deletions git-flow-feature
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ cmd_start() {
parse_args "$@"

# sanity checks
gitflow_check_clean_working_tree
gitflow_require_clean_working_tree
gitflow_require_branch_absent $BRANCH
if [ "$BASE" = "$DEVELOP_BRANCH" ]; then
git fetch -q $ORIGIN $DEVELOP_BRANCH
Expand All @@ -94,7 +94,7 @@ cmd_finish() {
parse_args "$@"

# sanity checks
gitflow_check_clean_working_tree
gitflow_require_clean_working_tree
gitflow_require_branch $BRANCH
git fetch -q $ORIGIN
if has $ORIGIN/$BRANCH $REMOTE_BRANCHES; then
Expand Down Expand Up @@ -130,7 +130,7 @@ cmd_publish() {
parse_args "$@"

# sanity checks
gitflow_check_clean_working_tree
gitflow_require_clean_working_tree
gitflow_require_branch $BRANCH
git fetch -q $ORIGIN
gitflow_require_branch_absent $ORIGIN/$BRANCH
Expand All @@ -156,7 +156,7 @@ cmd_track() {
parse_args "$@"

# sanity checks
gitflow_check_clean_working_tree
gitflow_require_clean_working_tree
gitflow_require_branch_absent $BRANCH
git fetch -q $ORIGIN
gitflow_require_branch $ORIGIN/$BRANCH
Expand Down
4 changes: 2 additions & 2 deletions git-flow-hotfix
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ cmd_start() {
parse_args "$@"

# sanity checks
gitflow_check_clean_working_tree
gitflow_require_clean_working_tree
git fetch -q $ORIGIN
gitflow_require_branches_equal $MASTER_BRANCH $ORIGIN/$MASTER_BRANCH
gitflow_require_branch_absent $BRANCH
Expand All @@ -89,7 +89,7 @@ cmd_finish() {
parse_args "$@"

# sanity checks
gitflow_check_clean_working_tree
gitflow_require_clean_working_tree
git fetch -q $ORIGIN $MASTER_BRANCH
git fetch -q $ORIGIN $DEVELOP_BRANCH
gitflow_require_branches_equal $MASTER_BRANCH $ORIGIN/$MASTER_BRANCH
Expand Down
2 changes: 1 addition & 1 deletion git-flow-init
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cmd_default() {
die "Cannot find your master branch. Try: git branch -m <mymaster> $MASTER_BRANCH"
fi

gitflow_check_clean_working_tree
gitflow_require_clean_working_tree

if git remote | grep -q $ORIGIN; then
git fetch -q $ORIGIN
Expand Down
4 changes: 2 additions & 2 deletions git-flow-release
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ cmd_start() {
parse_args "$@"

# sanity checks
gitflow_check_clean_working_tree
gitflow_require_clean_working_tree
git fetch -q $ORIGIN
gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH
gitflow_require_branch_absent $BRANCH
Expand All @@ -90,7 +90,7 @@ cmd_finish() {
parse_args "$@"

# sanity checks
gitflow_check_clean_working_tree
gitflow_require_clean_working_tree
git fetch -q $ORIGIN
gitflow_require_branches_equal $MASTER_BRANCH $ORIGIN/$MASTER_BRANCH
gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH
Expand Down
2 changes: 1 addition & 1 deletion git-flow-support
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ cmd_start() {
parse_args "$@"

# sanity checks
gitflow_check_clean_working_tree
gitflow_require_clean_working_tree

# create branch
git checkout -b $BRANCH $BASE
Expand Down

0 comments on commit 4838644

Please sign in to comment.