Skip to content

Commit

Permalink
Updated from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
vedang committed May 1, 2012
2 parents 3b86dd3 + ab7fda2 commit 6606678
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 111 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ Authors are (ordered by first commit date):
- Olivier Mengué - Olivier Mengué
- Emre Berge Ergenekon - Emre Berge Ergenekon
- Eric Holmes - Eric Holmes
- Vedang Manerikar


Portions derived from other open source works are clearly marked. Portions derived from other open source works are clearly marked.
13 changes: 9 additions & 4 deletions Changes.mdown
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,16 +3,21 @@
Release date: **not yet** Release date: **not yet**


* `git flow init` now detects situations where origin already has gitflow * `git flow init` now detects situations where origin already has gitflow
branches set up, and behaves accordingly (thanks Emre Berge Ergenekon) branches set up, and behaves accordingly (thanks Emre Berge Ergenekon).


* `git flow feature finish` can now be called without a feature branch * `git flow feature finish` can now be called without a feature branch
name(prefix) argument and will finish the current branch, if on any. name(prefix) argument and will finish the current branch, if on any.


* Various minor bug fixes related to internal argument passing * `git flow feature pull` now has a `-r` flag, to support `pull --rebase`
semantics (thanks Vedang Manerikar).


* Better support for Windows users. * Various minor bug fixes related to internal argument passing.


* Add package installers for the Debian and Windows platforms. * Improved some documentation.

* Better support for Windows and BSD users.

* Add package installer for the Windows platform.


0.4.1: 0.4.1:
----- -----
Expand Down
7 changes: 1 addition & 6 deletions Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@
# policies, either expressed or implied, of Vincent Driessen. # policies, either expressed or implied, of Vincent Driessen.
# #


# Determine if we're inside a debian build .. prefix=/usr/local
ifdef DEB_BUILD_ARCH
prefix=$(DESTDIR)/usr/
else
prefix=/usr/local
endif


# files that need mode 755 # files that need mode 755
EXEC_FILES=git-flow EXEC_FILES=git-flow
Expand Down
12 changes: 10 additions & 2 deletions README.mdown
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,6 @@
git-flow ![Project status](http://stillmaintained.com/nvie/gitflow.png) git-flow
======== ========

A collection of Git extensions to provide high-level repository operations A collection of Git extensions to provide high-level repository operations
for Vincent Driessen's [branching model](http://nvie.com/git-model "original for Vincent Driessen's [branching model](http://nvie.com/git-model "original
blog post"). blog post").
Expand Down Expand Up @@ -83,13 +84,15 @@ in a Github fork, of course.


To initialize a new repo with the basic branch structure, use: To initialize a new repo with the basic branch structure, use:


git flow init git flow init [-d]


This will then interactively prompt you with some questions on which branches This will then interactively prompt you with some questions on which branches
you would like to use as development and production branches, and how you you would like to use as development and production branches, and how you
would like your prefixes be named. You may simply press Return on any of would like your prefixes be named. You may simply press Return on any of
those questions to accept the (sane) default suggestions. those questions to accept the (sane) default suggestions.


The ``-d`` flag will accept all defaults.



### Creating feature/release/hotfix/support branches ### Creating feature/release/hotfix/support branches


Expand All @@ -101,6 +104,11 @@ those questions to accept the (sane) default suggestions.


For feature branches, the `<base>` arg must be a commit on `develop`. For feature branches, the `<base>` arg must be a commit on `develop`.


* To push/pull a feature branch to the remote repository, use:

git flow feature publish <name>
git flow feature pull <remote> <name>

* To list/start/finish release branches, use: * To list/start/finish release branches, use:


git flow release git flow release
Expand Down
5 changes: 0 additions & 5 deletions contrib/debian/changelog

This file was deleted.

1 change: 0 additions & 1 deletion contrib/debian/compat

This file was deleted.

14 changes: 0 additions & 14 deletions contrib/debian/control

This file was deleted.

40 changes: 0 additions & 40 deletions contrib/debian/copyright

This file was deleted.

1 change: 0 additions & 1 deletion contrib/debian/docs

This file was deleted.

16 changes: 0 additions & 16 deletions contrib/debian/rules

This file was deleted.

3 changes: 3 additions & 0 deletions git-flow
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
# policies, either expressed or implied, of Vincent Driessen. # policies, either expressed or implied, of Vincent Driessen.
# #


# set this to workaround expr problems in shFlags on freebsd
if uname -s | egrep -iq 'bsd'; then export EXPR_COMPAT=1; fi

# enable debug mode # enable debug mode
if [ "$DEBUG" = "yes" ]; then if [ "$DEBUG" = "yes" ]; then
set -x set -x
Expand Down
38 changes: 19 additions & 19 deletions git-flow-feature
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
# http://github.com/nvie/gitflow # http://github.com/nvie/gitflow
# #
# Copyright 2010 Vincent Driessen. All rights reserved. # Copyright 2010 Vincent Driessen. All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met: # modification, are permitted provided that the following conditions are met:
# #
# 1. Redistributions of source code must retain the above copyright notice, # 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer. # this list of conditions and the following disclaimer.
# #
# 2. Redistributions in binary form must reproduce the above copyright # 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the # notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution. # documentation and/or other materials provided with the distribution.
# #
# THIS SOFTWARE IS PROVIDED BY VINCENT DRIESSEN ``AS IS'' AND ANY EXPRESS OR # THIS SOFTWARE IS PROVIDED BY VINCENT DRIESSEN ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
Expand All @@ -30,7 +30,7 @@
# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# #
# The views and conclusions contained in the software and documentation are # The views and conclusions contained in the software and documentation are
# those of the authors and should not be interpreted as representing official # those of the authors and should not be interpreted as representing official
# policies, either expressed or implied, of Vincent Driessen. # policies, either expressed or implied, of Vincent Driessen.
Expand Down Expand Up @@ -244,7 +244,7 @@ cmd_finish() {
# TODO: detect that we're working on the correct branch here! # TODO: detect that we're working on the correct branch here!
# The user need not necessarily have given the same $NAME twice here # The user need not necessarily have given the same $NAME twice here
# (although he/she should). # (although he/she should).
# #


# TODO: git_is_clean_working_tree() should provide an alternative # TODO: git_is_clean_working_tree() should provide an alternative
# exit code for "unmerged changes in working tree", which we should # exit code for "unmerged changes in working tree", which we should
Expand All @@ -270,7 +270,7 @@ cmd_finish() {
echo "Merge conflicts not resolved yet, use:" echo "Merge conflicts not resolved yet, use:"
echo " git mergetool" echo " git mergetool"
echo " git commit" echo " git commit"
echo echo
echo "You can then complete the finish by running it again:" echo "You can then complete the finish by running it again:"
echo " git flow feature finish $NAME" echo " git flow feature finish $NAME"
echo echo
Expand Down Expand Up @@ -324,7 +324,7 @@ cmd_finish() {
echo "There were merge conflicts. To resolve the merge conflict manually, use:" echo "There were merge conflicts. To resolve the merge conflict manually, use:"
echo " git mergetool" echo " git mergetool"
echo " git commit" echo " git commit"
echo echo
echo "You can then complete the finish by running it again:" echo "You can then complete the finish by running it again:"
echo " git flow feature finish $NAME" echo " git flow feature finish $NAME"
echo echo
Expand All @@ -344,8 +344,8 @@ helper_finish_cleanup() {
if flag fetch; then if flag fetch; then
git push "$ORIGIN" ":refs/heads/$BRANCH" git push "$ORIGIN" ":refs/heads/$BRANCH"
fi fi


if noflag keep; then if noflag keep; then
if flag force_delete; then if flag force_delete; then
git branch -D "$BRANCH" git branch -D "$BRANCH"
Expand Down Expand Up @@ -475,7 +475,7 @@ avoid_accidental_cross_branch_action() {


cmd_pull() { cmd_pull() {
#DEFINE_string prefix false 'alternative remote feature branch name prefix' p #DEFINE_string prefix false 'alternative remote feature branch name prefix' p
DEFINE_boolean rebase false "pull with rebase" r DEFINE_boolean rebase false "pull with rebase" r
parse_remote_name "$@" parse_remote_name "$@"


if [ -z "$REMOTE" ]; then if [ -z "$REMOTE" ]; then
Expand All @@ -501,14 +501,14 @@ cmd_pull() {


# we already have a local branch called like this, so simply pull the # we already have a local branch called like this, so simply pull the
# remote changes in # remote changes in
if flag rebase; then if flag rebase; then
if ! git pull --rebase -q "$REMOTE" "$BRANCH"; then if ! git pull --rebase -q "$REMOTE" "$BRANCH"; then
warn "Pull was aborted. There might be conflicts during rebase or '$REMOTE' might be inaccessible." warn "Pull was aborted. There might be conflicts during rebase or '$REMOTE' might be inaccessible."
exit 1 exit 1
fi fi
else else
git pull -q "$REMOTE" "$BRANCH" || die "Failed to pull from remote '$REMOTE'." it pull -q "$REMOTE" "$BRANCH" || die "Failed to pull from remote '$REMOTE'."
fi fi


echo "Pulled $REMOTE's changes into $BRANCH." echo "Pulled $REMOTE's changes into $BRANCH."
else else
Expand Down
2 changes: 1 addition & 1 deletion git-flow-hotfix
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ cmd_finish() {
flag sign && opts="$opts -s" flag sign && opts="$opts -s"
[ "$FLAGS_signingkey" != "" ] && opts="$opts -u '$FLAGS_signingkey'" [ "$FLAGS_signingkey" != "" ] && opts="$opts -u '$FLAGS_signingkey'"
[ "$FLAGS_message" != "" ] && opts="$opts -m '$FLAGS_message'" [ "$FLAGS_message" != "" ] && opts="$opts -m '$FLAGS_message'"
git tag $opts "$VERSION_PREFIX$VERSION" || \ eval git tag $opts "$VERSION_PREFIX$VERSION" || \
die "Tagging failed. Please run finish again to retry." die "Tagging failed. Please run finish again to retry."
fi fi
fi fi
Expand Down
2 changes: 1 addition & 1 deletion git-flow-release
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ cmd_finish() {
flag sign && opts="$opts -s" flag sign && opts="$opts -s"
[ "$FLAGS_signingkey" != "" ] && opts="$opts -u '$FLAGS_signingkey'" [ "$FLAGS_signingkey" != "" ] && opts="$opts -u '$FLAGS_signingkey'"
[ "$FLAGS_message" != "" ] && opts="$opts -m '$FLAGS_message'" [ "$FLAGS_message" != "" ] && opts="$opts -m '$FLAGS_message'"
git tag $opts "$tagname" || \ eval git tag $opts "$tagname" || \
die "Tagging failed. Please run finish again to retry." die "Tagging failed. Please run finish again to retry."
fi fi
fi fi
Expand Down
2 changes: 1 addition & 1 deletion gitflow-common
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ warn() { echo "$@" >&2; }
die() { warn "$@"; exit 1; } die() { warn "$@"; exit 1; }


escape() { escape() {
echo "$1" | sed 's/\([\.\+\$\*]\)/\\\1/g' echo "$1" | sed 's/\([\.\$\*]\)/\\\1/g'
} }


# set logic # set logic
Expand Down

0 comments on commit 6606678

Please sign in to comment.