Skip to content

Commit

Permalink
Added a simple command to be able to merge develop directly into master.
Browse files Browse the repository at this point in the history
For our use case, the release branch is an overkill, and all testing,
continuous integration and data qa can be run in the develop branch.

If / when we get a dedicated QA team who will QA and push to production
separately, then it makes sense to not have this.

Squashed commit of the following:

commit 2be136c
Author: Varun Vijayaraghavan <varun.kvv@gmail.com>
Date:   Wed Aug 21 14:50:27 2013 -0400

    added the shFlags

commit eb01738
Author: Varun Vijayaraghavan <varun.kvv@gmail.com>
Date:   Wed Aug 21 14:49:32 2013 -0400

    Added git-flow-develop

commit 15aab26
Author: Jerome Baum <jerome@jeromebaum.com>
Date:   Tue Sep 25 15:46:52 2012 +0200

    Use git_do where appropriate

commit 5bca8d9
Author: Jerome Baum <jerome@jeromebaum.com>
Date:   Tue Sep 25 15:46:44 2012 +0200

    Create a git_do command to log git actions

commit 53e9c76
Merge: aa93d23 b72a395
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Tue Jul 10 02:18:02 2012 -0700

    Merge pull request nvie#235 from oddnoc/feature/112-init-fix

    Prevent error message on git flow init.

commit b72a395
Author: Fred Condo <fcondo@quinn.com>
Date:   Mon Jul 9 18:37:12 2012 -0700

    Prevent error message on git flow init

    As explained by Peter van der Does, the init command does not have the
    init function, nor does it need one.

commit aa93d23
Merge: afb191f aec4818
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 15:02:33 2012 +0200

    Be git-describe friendly.

    This patch tags commits on the original (release/hotfix branch) instead
    of tagging the merge commit on the master branch.  This keeps the
    history git-describe friendly.  (For related discussions, see nvie#49, nvie#85,

commit aec4818
Merge: a2f53f9 51011ac
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 05:52:48 2012 -0700

    Merge pull request nvie#201 from sjaeckel/feature/msysInstall

    make the installer for msysgit search in ~/bin as well

commit a2f53f9
Merge: 76ec133 805d245
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 14:38:05 2012 +0200

    Merge branch 'develop' into track-for-hotfix

commit 76ec133
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 14:38:01 2012 +0200

    Revert changes installer location.

commit c7e50ee
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 14:37:29 2012 +0200

    Revert unnecessary changes.

commit 805d245
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 14:31:17 2012 +0200

    Credit where credit is due.

commit fda5507
Merge: 0c4d0bf f414f0c
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 14:24:06 2012 +0200

    Merge branch 'develop' into squash-option

commit 0c4d0bf
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 14:23:59 2012 +0200

    Cleanup (mostly whitespace issues).

commit f414f0c
Merge: c072ff6 dc902ed
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 05:16:25 2012 -0700

    Merge pull request nvie#211 from pcragone/develop

    Added 'init()' function to git-flow-{feature,release,hotfix,support}

commit c072ff6
Merge: b1cc495 a223c3a
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 05:06:22 2012 -0700

    Merge pull request nvie#219 from kperi/develop

    small bug fix in gif-flow-feature

commit b1cc495
Merge: 392ed79 12c2a9c
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 05:04:41 2012 -0700

    Merge pull request nvie#220 from memleak/patch-1

    fixes pull existing feature from remote.

commit 392ed79
Merge: 662bcd6 9c48e05
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 05:00:22 2012 -0700

    Merge pull request nvie#227 from jasom/develop

    Fix broken link to original blog-post

commit 662bcd6
Merge: c26286e 2e9ab49
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 04:58:40 2012 -0700

    Merge pull request nvie#223 from sinbad/feature/tagmessagefromfile

    Support reading the tag message from a file in release/hotfix finish

commit c26286e
Merge: ab7fda2 2632778
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Jul 9 04:58:20 2012 -0700

    Merge pull request nvie#222 from sinbad/feature/fix_default_behaviour

    Fix init -d behaviour when master branch exists, and 1+ other branches exist, but develop does not

commit 9c48e05
Author: Jason Miller <jason@milr.com>
Date:   Tue Jul 3 13:25:52 2012 -0700

    Fix broken link to original blog-post

commit 2e9ab49
Author: Steve Streeting <steve@stevestreeting.com>
Date:   Fri Jun 8 17:38:34 2012 -0700

    Support reading the tag message from a file in release/hotfix finish

    This option ('-f' because '-F' was already taken) maps to the 'tag -F' option, and avoids the
    problem with issue nvie#98 (nvie#98) on Mac

commit 2632778
Author: Steve Streeting <steve@stevestreeting.com>
Date:   Tue Jun 5 16:26:10 2012 -0700

    Fix init -d behaviour when master branch exists, and one or more other branch exists, but develop does not
    Without this change, init picks 'master' as both the production and integration branch and fails. With it, init detects the clash and behaves the same as if only master exists, picking 'develop' as integration branch

commit 12c2a9c
Author: memleak <alice@wiewunderland.de>
Date:   Fri Jun 1 13:45:31 2012 +0300

    fixes pull existing feature from remote.

commit a223c3a
Author: Kostas <kostas.perifanos@pearson.com>
Date:   Thu May 31 12:28:37 2012 +0100

    fixed small bug in line 510, 'it' instead of 'git'

commit ad511b6
Merge: 37f7d14 6606678
Author: Vedang Manerikar <ved.manerikar@gmail.com>
Date:   Tue May 1 16:19:15 2012 +0530

    Merge branch 'develop' into feature/hotfix-tracking

commit 6606678
Merge: 3b86dd3 ab7fda2
Author: Vedang Manerikar <ved.manerikar@gmail.com>
Date:   Tue May 1 16:18:44 2012 +0530

    Updated from upstream

commit dc902ed
Author: pccr <pcragone@gmail.com>
Date:   Sat Apr 21 00:23:55 2012 -0400

    Added 'init()' function to git-flow-{feature,release,hotfix,support}, which gets called if subargument is not help

commit 75fbdd7
Author: Myke Hines <myke@webhines.com>
Date:   Thu Apr 19 11:14:22 2012 -0700

    Feature finish squash parameter
    Adding an optional (false by default) -S option to 'git flow feature finish' to allow squashing
    the commit

commit 6fa8fed
Author: Myke Hines <myke@webhines.com>
Date:   Thu Apr 19 11:01:23 2012 -0700

    Release finish squash parameter
    Adding an optional (false by default) -S option to 'git flow release finish' to allow squashing
    the commit

commit afb191f
Author: Jason Schmidt <JSchmidt@ExactTarget.com>
Date:   Mon Apr 9 11:19:20 2012 -0400

    Fixes nvie#206

commit 51011ac
Author: Steffen Jaeckel <steffen.jaeckel@stzedn.de>
Date:   Wed Mar 14 11:59:55 2012 +0200

    make the installer for msysgit search in ~/bin as well

commit 37f7d14
Author: Vedang Manerikar <ved.manerikar@gmail.com>
Date:   Mon Mar 12 17:03:11 2012 +0530

    Added a track command to git-flow-hotfix along the lines of the git-flow-feature track command

commit ab7fda2
Merge: cc5e9a5 1b454cc
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Tue Feb 14 14:10:31 2012 +0100

    Merge branch 'debian-installer' into develop

    Conflicts:
    	README.mdown

commit cc5e9a5
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Feb 13 21:20:22 2012 +0100

    Update the Changelog.

commit f608281
Author: Ben Loveridge <bloveridge@movenetworks.com>
Date:   Fri Jan 6 11:04:46 2012 -0700

    set EXPR_COMPAT=1 if running inside freebsd so shFlags works correctly

    Signed-off-by: Vincent Driessen <vincent@3rdcloud.com>

commit 679f05f
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Feb 13 20:53:21 2012 +0100

    Remove the "still maintained" banner.

    This is done in anticipation of their discontinuing service.

commit 53cfc35
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Feb 13 20:48:14 2012 +0100

    Add Vedang to AUTHORS.

commit 7384052
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Feb 13 20:43:12 2012 +0100

    Fix indenting.

commit 56bff9a
Author: Vedang Manerikar <ved.manerikar@gmail.com>
Date:   Mon Jan 30 18:38:46 2012 +0530

    Added a -r flag to git-flow-feature-pull to support pull with rebase

    Signed-off-by: Vincent Driessen <vincent@3rdcloud.com>

commit adfd408
Merge: bb1becd f66eba8
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Feb 13 11:33:54 2012 -0800

    Merge pull request nvie#160 from Zoramite/feature/Issue50

    Adding the `eval` to force variable expansion.

commit bb1becd
Merge: ee27210 905cfb1
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Feb 13 11:23:46 2012 -0800

    Merge pull request nvie#178 from lorin/feature/docs

    Documented init -d flag and feature publish/pull

commit ee27210
Merge: 07dacd5 afbf92c
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Sun Feb 12 23:47:02 2012 -0800

    Merge pull request nvie#195 from Zoramite/feature/Issue148

    Updating the escape characters to fix + in the branch name

commit f66eba8
Merge: d0df88d 07dacd5
Author: Randy Merrill <Zoramite@gmail.com>
Date:   Wed Feb 8 09:44:48 2012 -0800

    Merge branch 'develop' into feature/Issue50

commit afbf92c
Author: Randy Merrill <Zoramite@gmail.com>
Date:   Wed Feb 8 09:33:04 2012 -0800

    Updating the escape characters to fix an issue with having a + in the branch name.

    Since git allows for it the escape should not escape it since it then won't match the branch names correctly.

commit 3b86dd3
Author: Vedang Manerikar <ved.manerikar@gmail.com>
Date:   Mon Jan 30 19:26:38 2012 +0530

    install from my github repo

commit 6158d51
Author: Vedang Manerikar <ved.manerikar@gmail.com>
Date:   Mon Jan 30 18:38:46 2012 +0530

    Added a -r flag to git-flow-feature-pull to support pull with rebase

commit 905cfb1
Author: Lorin Hochstein <lorin@isi.edu>
Date:   Tue Dec 20 10:21:46 2011 -0500

    whitespace

commit 5a58633
Author: Lorin Hochstein <lorin@isi.edu>
Date:   Tue Dec 20 10:17:54 2011 -0500

    Documented init -d flag and publish/pull

    Documented the -d flag for init command

    Added docs for feature push and feature pull

commit 07dacd5
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Tue Dec 6 22:12:54 2011 +0100

    Moved all installation instructions to the Wiki.

    There were becoming so large they were muddling the README.

commit e8c88c0
Merge: 6107f88 c02c12d
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Tue Dec 6 12:54:17 2011 -0800

    Merge pull request nvie#173 from AlexZeitler/patch-1

    Updated Cygwin section with possibly missing package.

commit c02c12d
Author: Alexander Zeitler <alex@alexonasp.net>
Date:   Tue Dec 6 21:38:04 2011 +0100

    Updated Cygwin section with possibly missing package.

commit 6107f88
Merge: 72594ea e856e0a
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Tue Dec 6 02:36:03 2011 -0800

    Merge pull request nvie#172 from sjaeckel/develop

    fixed the installer in msysgit environment to work with windows XP

commit e856e0a
Author: Steffen Jaeckel <steffen.jaeckel@stzedn.de>
Date:   Tue Dec 6 08:46:01 2011 +0100

    fixed the installer in msysgit environment to work with windows XP

    as the command 'choice' is not available on Windows XP we have to work around
    this issue by usage of 'set /p'

commit 72594ea
Merge: b4626cb 083a588
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Thu Dec 1 15:40:04 2011 +0100

    Merge branch 'feature/convert-slashes' into develop

commit 083a588
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Thu Dec 1 08:56:59 2011 +0100

    Better support for the Windows platform, where backslashes are dominant.

commit 5e8cc9f
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Thu Dec 1 08:52:33 2011 +0100

    Oops, forgot about spaces in the dirname.

    Quite likely for Windows users to hit this problem.

commit 4b9545e
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Wed Nov 30 22:52:20 2011 +0100

    Add a proposal for our Windows users.

    Will this help you guys out?

commit b4626cb
Merge: 49305ec 921ddf5
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Wed Nov 30 22:16:21 2011 +0100

    Merge branch 'develop' of github.com:nvie/gitflow into develop

commit 49305ec
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Wed Nov 30 22:14:40 2011 +0100

    Rewrote Eric's text a bit.

commit 921ddf5
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Tue Nov 29 11:31:18 2011 +0100

    Add Eric Holmes to list of contributors.

commit ba0cc8a
Author: Eric Holmes <eric@ejholmes.net>
Date:   Tue Nov 29 00:23:15 2011 -0800

    Add --recursive.

commit 938ea5f
Author: Eric Holmes <eric@ejholmes.net>
Date:   Tue Nov 29 00:14:30 2011 -0800

    Add information for contributing.

commit baf163e
Author: Eric J. Holmes <eric@ejholmes.net>
Date:   Mon Nov 28 23:28:47 2011 -0800

    Check if a remote master branch exists before die, track it if no local master branch exists

commit 0d00b69
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Mon Nov 28 09:43:57 2011 +0100

    Add Changelog note and added Emre to list of contributors.

commit 62c339e
Author: Emre Berge Ergenekon <emre.b.ergenekon@gmail.com>
Date:   Sun Nov 27 22:07:57 2011 -0800

    develop_branch uses origin/develop_branch as start-point if one exists.

    By default a local develop branch is created of from master regardless if a origin/develop exits. This problem is discussed in issues nvie#137 and nvie#23.

commit 766159d
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Thu Nov 24 13:02:00 2011 +0100

    Add a cool new video tutorial on git-flow by Build a Module.

commit 7cbdb84
Merge: 447808f 0b324de
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Wed Nov 23 11:41:24 2011 -0800

    Merge pull request nvie#163 from phoet/publish_hotfix

    add publishing to hotfix

    Thanks, pulled.

commit 447808f
Merge: be5dabf 4895c15
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Wed Nov 23 20:37:32 2011 +0100

    Merge branch 'chad3814-develop' into develop

    Thanks, chad3814.

commit 4895c15
Author: Vincent Driessen <vincent@3rdcloud.com>
Date:   Wed Nov 23 20:36:16 2011 +0100

    Fix wording.

commit 0b324de
Author: Peter Schröder <phoetmail@googlemail.com>
Date:   Sat Nov 12 17:36:36 2011 +0100

    add publishing to hotfix

commit 9c5c806
Author: Chad Walker <chad@chad-cat-lore-eddie.com>
Date:   Tue Oct 25 15:42:32 2011 -0700

    added a -D flag to the git flow finish command to try extra hard to delete the local branch after finishing the feature

commit d0df88d
Author: Randy Merrill <Zoramite@gmail.com>
Date:   Thu Oct 13 21:09:26 2011 -0700

    Adding the variable expansion to the hotfix.

commit 05c4dbc
Author: Randy Merrill <Zoramite@gmail.com>
Date:   Thu Oct 13 20:28:10 2011 -0700

    Adding the `eval` to force variable expansion.

    Closes nvie#50

commit 1b454cc
Author: Gergely Nagy <algernon@madhouse-project.org>
Date:   Thu Aug 25 09:24:55 2011 +0200

    Replace contrib/debian/ with a note on how to install on Debian.

    Since gitflow is packaged for Debian and is available for testing and
    sid already, remove the contrib/ directory in favour of using the
    official Debian package.

    Also mention how to install gitflow on Debian in the README.mdown.

    Furthermore, Debian-specific things were removed from Changes.mdown
    and the Makefile.

    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>

commit be5dabf
Merge: 7c7dc35 0c32062
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Wed Jul 27 00:56:17 2011 -0700

    Merge pull request nvie#141 from moranjk/develop

    fixed malformed if statement

    Thanks, James.

commit 0c32062
Author: James Moran <jmoran@jmoran-work.(none)>
Date:   Tue Jul 26 10:39:35 2011 -0400

    fixed malformed if statement

commit 7c7dc35
Merge: 3d12772 06e854a
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Mon Jul 11 17:06:26 2011 +0200

    Merge branch 'develop' of https://github.com/kixx/gitflow into develop

commit 3d12772
Merge: 0191c68 e73a1d9
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Mon Jul 11 07:59:04 2011 -0700

    Merge pull request nvie#138 from MarkBorcherding/feature/windows-install-step

    Adding windows install intruction for libintl3.dll

commit e73a1d9
Author: Mark Borcherding <markborcherding@gmail.com>
Date:   Fri Jul 8 11:29:10 2011 -0500

    Adding windows install step for libintl3.dll

    I found I also needed to install this file. It was mentioned in
    issue nvie#109. Adding this step to the instruction might help others
    avoid this same problem.

commit 06e854a
Author: Gruen Christian-Rolf (Kiki) <kiki@bsdro.org>
Date:   Wed Jul 6 18:07:01 2011 +0300

    Fix parsing for Bourne shell (FreeBSD)

commit 0191c68
Merge: 14bcc58 26293bb
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Mon Jun 13 22:21:57 2011 -0700

    Merge pull request #132 from kwasticat/develop

    Install script depends on Bash-only features, needs slight adjustment!

commit 26293bb
Author: Tacit Sawk <tacit@kwasticat.com>
Date:   Tue Jun 14 10:51:43 2011 +1000

    This script depends on Bash-only features, and so should not be executed with sh.

commit 14bcc58
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Mon May 23 13:02:21 2011 +0200

    Update the version number to distinguish HEAD from the released 0.4.1 version.

commit 8b73fed
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Mon May 16 11:09:18 2011 +0200

    Update the changelog.

commit 59e6aef
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Mon May 16 11:04:42 2011 +0200

    Update usage docs and changelog.

commit cf5b2a5
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Mon May 16 10:37:16 2011 +0200

    Implement git flow feature finish without a branch name to finish the
    current branch, if any.

    This fixes nvie#127.

commit c4b4b3c
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Mon May 16 10:44:13 2011 +0200

    Make room for new minor release (and update the changelog).

commit b7fc886
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Tue May 10 13:36:12 2011 +0200

    Add Olivier Mengué to the list of contributors.

    Thanks for the MSysGit installer!

commit 9720b66
Merge: 3626bfb b52f79e
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Tue May 10 04:34:54 2011 -0700

    Merge pull request nvie#109 from dolmen/feature/msysgit-install

    Installer for the Windows msysgit environment

commit 3626bfb
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Wed Apr 27 10:21:56 2011 +0200

    Revert "Set GITFLOW_DIR correctly if git-flow is a symbolic link"

    This reverts commit fff16ed.

commit f9ace1f
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Tue Apr 26 14:59:09 2011 +0200

    Add Jon Bernard to the list of contributors.

commit a64939d
Merge: d762995 fff16ed
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Tue Apr 26 05:57:34 2011 -0700

    Merged pull request nvie#119 from jbernard/develop.

    Set GITFLOW_DIR correctly if git-flow is a symbolic link

commit d762995
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Tue Apr 26 14:14:30 2011 +0200

    Add Kiall Mac Innes to the list of contributors.

    Thanks Kiall for the Debian package files!

commit 7e583b5
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Tue Apr 26 14:13:45 2011 +0200

    Moved the debian stuff to the contrib directory.

commit 96e3e3f
Merge: a7a89cd 6fc1323
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Tue Apr 26 05:12:46 2011 -0700

    Merged pull request nvie#120 from kiall/develop.

    Add debian/ubuntu packaging

commit 6fc1323
Author: Kiall Mac Innes <kiall@managedit.ie>
Date:   Tue Apr 26 00:32:22 2011 +0100

    Fixing some minor mistakes in debian/control metadata - followup to ca475ab

commit ca475ab
Author: Kiall Mac Innes <kiall@managedit.ie>
Date:   Tue Apr 26 00:15:01 2011 +0100

    Add debian/ubuntu packaging.

commit fff16ed
Author: Jon Bernard <jbernard@tuxion.com>
Date:   Sat Apr 23 13:09:57 2011 -0400

    Set GITFLOW_DIR correctly if git-flow is a symbolic link

    This allows a user to create a symbolic link to git-flow in their
    personal bin directory (e.g. ~/bin) without having to add the source
    tree to their $PATH or do a system install.

commit a7a89cd
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Sun Apr 17 08:41:36 2011 +0200

    Fix always-empty value for $DOT_GIT_DIR variable.

    This fixes nvie#53.

commit e024fa4
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Sun Apr 17 08:33:36 2011 +0200

    Add Jannis Leidel to the list of contributors.

commit 499b468
Merge: 2f05c3c 8f280e0
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Sun Apr 17 08:32:37 2011 +0200

    Merge branch 'develop' of https://github.com/jezdez/gitflow into develop

commit 2f05c3c
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Sun Apr 17 08:13:10 2011 +0200

    Add Konstantin Tjuterev to the list of contributors.

commit f1b3213
Merge: 2074360 f6fcc4e
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Sun Apr 17 08:12:51 2011 +0200

    Merge branch 'develop' of https://github.com/kostiklv/gitflow into develop

commit 2074360
Author: Stefan Näwe <stefan.naewe+github@googlemail.com>
Date:   Fri Apr 15 01:42:35 2011 -0700

    release: start subcommand takes an optional base as well

    Signed-off-by: Stefan Naewe <stefan.naewe@googlemail.com>

commit f6fcc4e
Author: Konstantin Tjuterev <konstantin@intechsystems.lv>
Date:   Thu Apr 14 19:20:19 2011 +0300

    - Removed quoting in has $SOME_BRANCH $(get_remote_branches), as the check was always false
    - Added fetching develop branch from origin when fetch flag is on in feature finish

commit 8f280e0
Author: Jannis Leidel <jannis@leidel.info>
Date:   Mon Mar 28 18:48:39 2011 +0200

    Fixed require_tag_absent to not break when the list of tags contains an ambiguous entry, e.g. looking for "1.0.1" in "0.1.0 0.1.1 0.1.2 1.0".

commit b52f79e
Author: Olivier Mengué <dolmen@cpan.org>
Date:   Sun Mar 20 20:34:39 2011 +0100

    Update README for msysgit to use the new installer

commit 023ed69
Author: Olivier Mengué <dolmen@cpan.org>
Date:   Sun Mar 20 20:22:51 2011 +0100

    Add an installer for the msysgit environment

    This installer:
    - detects the Git installation path
    - checks prereqs (git, getopt.exe)
    - delete old gitflow install
    - install gitflow files

    "Access denied" errors are detected and the user is given advice in that case (
    use full administrator rights).

commit baf66be
Merge: f78b660 4b5b932
Author: Vincent Driessen <vincent@datafox.nl>
Date:   Mon Feb 14 07:47:48 2011 +0100

    Merge branch 'release/0.4.1' into develop
  • Loading branch information
varunkvv committed Aug 21, 2013
1 parent 1ffb6b1 commit 7ee7c7b
Show file tree
Hide file tree
Showing 17 changed files with 1,438 additions and 205 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
debian/files
debian/*.substvars
debian/*.debhelper.log
debian/*/*
9 changes: 9 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,14 @@ Authors are (ordered by first commit date):
- Felipe Talavera
- Guillaume-Jean Herbiet
- Joseph A. Levin
- Jannis Leidel
- Konstantin Tjuterev
- Kiall Mac Innes
- Jon Bernard
- Olivier Mengué
- Emre Berge Ergenekon
- Eric Holmes
- Vedang Manerikar
- Myke Hines

Portions derived from other open source works are clearly marked.
21 changes: 21 additions & 0 deletions Changes.mdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
0.4.2:
-----
Release date: **not yet**

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

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

* `git flow feature pull` now has a `-r` flag, to support `pull --rebase`
semantics (thanks Vedang Manerikar).

* Various minor bug fixes related to internal argument passing.

* Improved some documentation.

* Better support for Windows and BSD users.

* Add package installer for the Windows platform.

0.4.1:
-----
Release date: **2011/02/04**
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
# those of the authors and should not be interpreted as representing official
# policies, either expressed or implied, of Vincent Driessen.
#

prefix=/usr/local

# files that need mode 755
Expand Down
110 changes: 30 additions & 80 deletions README.mdown
Original file line number 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
for Vincent Driessen's [branching model](http://nvie.com/git-model "original
blog post").
Expand All @@ -14,86 +15,14 @@ Kreeftmeijer's blog post:

Or have a look at one of these screen casts:

* [How to use a scalable Git branching model called git-flow](http://buildamodule.com/video/change-management-and-version-control-deploying-releases-features-and-fixes-with-git-how-to-use-a-scalable-git-branching-model-called-gitflow) (by Build a Module)
* [A short introduction to git-flow](http://vimeo.com/16018419) (by Mark Derricutt)
* [On the path with git-flow](http://codesherpas.com/screencasts/on_the_path_gitflow.mov) (by Dave Bock)


Installing git-flow
-------------------

### Mac OS
If you're on a Mac and use [homebrew](http://github.com/mxcl/homebrew), it's simple:

$ brew install git-flow

If you're on a Mac and use [MacPorts](http://macports.org/), it's simple:

$ port install git-flow

### Linux, etc.
Another easy way to install git-flow is using Rick Osborne's excellent git-flow
installer, which can be run using the following command:

$ wget --no-check-certificate -q -O - https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | sudo sh

### Windows
#### Using Cygwin
For Windows users who wish to use the automated install, it is suggested that you install [Cygwin](http://www.cygwin.com/)
first to install tools like `git`, `util-linux` and `wget` (with those three being packages that can be selected
during installation). Then simply run this command from a Cygwin shell:

$ wget -q -O - https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | sh

#### Using msysgit
This is much like the manual installation below, but there are additional steps required to install some extra tools that
are not distributed with [msysgit](http://code.google.com/p/msysgit/).

Clone the git-flow sources from Github:

$ git clone --recursive git://github.com/nvie/gitflow.git

Copy git-flow's relevant files to your msysgit installation directory:

$ mkdir /usr/local/bin
$ cp git-flow* gitflow* /usr/local/bin/
$ cp shFlags/src/shflags /usr/local/bin/gitflow-shFlags

Next up we need to borrow a couple of binaries from [Cygwin](http://www.cygwin.com/). If you don't have Cygwin installed, please
install it including the `util-linux` package. Apart from `util-linux`'s dependencies, no other packages are required. When you
finished installation, copy the following files using msysgit's _Git Bash_. We assume the Cygwin's default installation path in C:\cygwin.

$ cd /c/cygwin/
$ cp bin/getopt.exe /usr/local/bin/
$ cp bin/cyggcc_s-1.dll /usr/local/bin/
$ cp bin/cygiconv-2.dll /usr/local/bin/
$ cp bin/cygintl-8.dll /usr/local/bin/
$ cp bin/cygwin1.dll /usr/local/bin/

After copying the files above, you can safely uninstall your Cygwin installation by deleting the C:\cygwin directory.

### Manual installation
If you prefer a manual installation, please use the following instructions:

$ git clone --recursive git://github.com/nvie/gitflow.git

Then, you can install `git-flow`, using:

$ sudo make install

By default, git-flow will be installed in /usr/local. To change the prefix
where git-flow will be installed, simply specify it explicitly, using:

$ sudo make prefix=/opt/local install

Or simply point your `PATH` environment variable to your git-flow checkout
directory.

*Installation note:*
git-flow depends on the availability of the command line utility `getopt`,
which may not be available in your Unix/Linux environment. Please use your
favorite package manager to install `getopt`. For Cygwin, install the
`util-linux` package to get `getopt`. If you use `apt-get` as your install
manager, the package name is `opt`.
See the Wiki for up-to-date [Installation Instructions](https://github.com/nvie/gitflow/wiki/Installation).


Integration with your shell
Expand All @@ -104,9 +33,6 @@ For those who use the [Bash](http://www.gnu.org/software/bash/) or
by [bobthecow](http://github.com/bobthecow). It offers tab-completion for all
git-flow subcommands and branch names.

For Windows users, [msysgit](http://code.google.com/p/msysgit/) is a good
starting place for installing git.


FAQ
---
Expand All @@ -127,6 +53,23 @@ contributors, please see the [AUTHORS](AUTHORS) file.
Any questions, tips, or general discussion can be posted to our Google group:
[http://groups.google.com/group/gitflow-users](http://groups.google.com/group/gitflow-users)

Contributing
------------
Fork the repository. Then, run:

git clone --recursive git@github.com:<username>/gitflow.git
cd gitflow
git branch master origin/master
git flow init -d
git flow feature start <your feature>

Then, do work and commit your changes. **Hint**: ``export PATH=`pwd`:$PATH``
from within the gitflow directory makes sure you're using the version of
gitflow you're currently developing.

git flow feature publish <your feature>

When done, open a pull request to your feature branch.

License terms
-------------
Expand All @@ -141,13 +84,15 @@ in a Github fork, of course.

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
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
those questions to accept the (sane) default suggestions.

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


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

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

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:

git flow release
Expand Down Expand Up @@ -188,7 +138,7 @@ Showing your appreciation
A few people already requested it, so now it's here: a Flattr button.

Of course, the best way to show your appreciation for the original
[blog post](http://nvie.com/git-model) or the git-flow tool itself remains
[blog post](http://nvie.com/posts/a-successful-git-branching-model/) or the git-flow tool itself remains
contributing to the community. If you'd like to show your appreciation in
another way, however, consider Flattr'ing me:

Expand Down
4 changes: 2 additions & 2 deletions contrib/gitflow-installer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# git-flow make-less installer for *nix systems, by Rick Osborne
# Based on the git-flow core Makefile:
Expand Down Expand Up @@ -50,7 +50,7 @@ case "$1" in
;;
*)
echo "Installing git-flow to $INSTALL_PREFIX"
if [[ -d "$REPO_NAME" && -d "$REPO_NAME/.git" ]] ; then
if [ -d "$REPO_NAME" -a -d "$REPO_NAME/.git" ] ; then
echo "Using existing repo: $REPO_NAME"
else
echo "Cloning repo from GitHub to $REPO_NAME"
Expand Down
77 changes: 77 additions & 0 deletions contrib/msysgit-install.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
@echo off
setlocal
if not "%~1"=="" set GIT_HOME=%~f1
if "%GIT_HOME%"=="" call :FindGitHome "git.cmd"

if exist "%GIT_HOME%" goto :GitHomeOK

echo MsysGit installation directory not found.>&2
echo Try to give the directory name on the command line:>&2
echo %0 "%ProgramFiles%\Git"
endlocal
exit /B 1

:GitHomeOK
set ERR=0

echo Installing gitflow into "%GIT_HOME%"...

call :ChkGetopt getopt.exe || set ERR=1
if %ERR%==1 goto :End
echo getopt.exe... Found

if not exist "%GIT_HOME%\bin\git-flow" goto :Install
echo GitFlow is already installed.>&2
set /p mychoice="Do you want to replace it [y/n]"
if "%mychoice%"=="y" goto :DeleteOldFiles
goto :Abort

:DeleteOldFiles
echo Deleting old files...
for /F %%i in ("%GIT_HOME%\git-flow*" "%GIT_HOME%\gitflow-*") do if exist "%%~fi" del /F /Q "%%~fi"

:Install
echo Copying files...
::goto :EOF
xcopy "%~dp0\..\git-flow" "%GIT_HOME%\bin" /Y /R /F
if errorlevel 4 if not errorlevel 5 goto :AccessDenied
if errorlevel 1 set ERR=1
xcopy "%~dp0\..\git-flow*" "%GIT_HOME%\bin" /Y /R /F || set ERR=1
xcopy "%~dp0\..\gitflow-*" "%GIT_HOME%\bin" /Y /R /F || set ERR=1
xcopy "%~dp0\..\shFlags\src\shflags" "%GIT_HOME%\bin\gitflow-shFlags" /Y /R /F || set ERR=1

if %ERR%==1 choice /T 30 /C Y /D Y /M "Some unexpected errors happened. Sorry, you'll have to fix them by yourself."

:End
endlocal & exit /B %ERR%
goto :EOF

:AccessDenied
set ERR=1
echo.
echo You should run this script with "Full Administrator" rights:>&2
echo - Right-click with Shift on the script from the Explorer>&2
echo - Select "Run as administrator">&2
choice /T 30 /C YN /D Y /N >nul
goto :End

:Abort
echo Installation canceled.>&2
set ERR=1
goto :End

:ChkGetopt
:: %1 is getopt.exe
if exist "%GIT_HOME%\bin\%1" goto :EOF
if exist "%USERPROFILE%\bin\%1" goto :EOF
if exist "%~f$PATH:1" goto :EOF
echo %GIT_HOME%\bin\%1 not found.>&2
echo You have to install this file manually. See the GitFlow README.
exit /B 1

:FindGitHome
setlocal
set GIT_CMD_DIR=%~dp$PATH:1
if "%GIT_CMD_DIR%"=="" endlocal & goto :EOF
endlocal & set GIT_HOME=%GIT_CMD_DIR:~0,-5%
goto :EOF
19 changes: 16 additions & 3 deletions git-flow
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,17 @@
# 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
if [ "$DEBUG" = "yes" ]; then
set -x
fi

export GITFLOW_DIR=$(dirname "$0")
# The sed expression here replaces all backslashes by forward slashes.
# This helps our Windows users, while not bothering our Unix users.
export GITFLOW_DIR=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

usage() {
echo "usage: git flow <subcommand>"
Expand Down Expand Up @@ -75,6 +80,11 @@ main() {
# use the shFlags project to parse the command line arguments
. "$GITFLOW_DIR/gitflow-shFlags"
FLAGS_PARENT="git flow"

# allow user to request git action logging
DEFINE_boolean show_commands false 'show actions taken (git commands)' g

# do actual parsing
FLAGS "$@" || exit $?
eval set -- "${FLAGS_ARGV}"

Expand All @@ -94,7 +104,7 @@ main() {
# in that case, we interpret this arg as a flag for the default
# command
SUBACTION="default"
if [ "$1" != "" ] && ! echo "$1" | grep -q "^-"; then
if [ "$1" != "" ] && { ! echo "$1" | grep -q "^-"; } then
SUBACTION="$1"; shift
fi
if ! type "cmd_$SUBACTION" >/dev/null 2>&1; then
Expand All @@ -104,7 +114,10 @@ main() {
fi

# run the specified action
cmd_$SUBACTION "$@"
if [ $SUBACTION != "help" ] && [ $SUBCOMMAND != "init" ] ; then
init
fi
cmd_$SUBACTION "$@"
}

main "$@"
23 changes: 23 additions & 0 deletions git-flow-develop
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
cmd_merge() {

if has "$ORIGIN/$DEVELOP_BRANCH" $(git_remote_branches); then
git_do fetch -q "$ORIGIN" "$BRANCH"
git_do fetch -q "$ORIGIN" "$DEVELOP_BRANCH"
git_do push "$ORIGIN" "$DEVELOP_BRANCH"
fi
if has "$ORIGIN/$DEVELOP_BRANCH" $(git_remote_branches); then
require_branches_equal "$DEVELOP_BRANCH" "$ORIGIN/$DEVELOP_BRANCH"
fi


git_do checkout "$MASTER_BRANCH"
git_do merge --squash "$DEVELOP_BRANCH"
git_do commit
git_do merge "$DEVELOP_BRANCH"
}

init() {
require_git_repo
require_gitflow_initialized
gitflow_load_settings
}
Loading

0 comments on commit 7ee7c7b

Please sign in to comment.