Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: MeltwaterArchive/gitflow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: strongloop-forks/gitflow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 9 commits
  • 4 files changed
  • 2 contributors

Commits on Nov 7, 2013

  1. Copy the full SHA
    9a6281a View commit details
  2. Copy the full SHA
    ce254be View commit details
  3. Copy the full SHA
    692b980 View commit details
  4. Copy the full SHA
    040ea39 View commit details

Commits on Nov 8, 2013

  1. Don't use master as a production candidate

    It doesn't work to use master as a candidate for guessing production
    branch, since it always exists.
    sam-github committed Nov 8, 2013
    Copy the full SHA
    a66f466 View commit details

Commits on Nov 15, 2013

  1. Install in ~/bin as symlinks

    Useful during development, changes to gitflow tools in local clone
    immediately are available.
    sam-github committed Nov 15, 2013
    Copy the full SHA
    9e1d35e View commit details
  2. Merge pull request #1 from strongloop/modify-defaults

    Strongloop changes need to be on master
    sam-github committed Nov 15, 2013
    Copy the full SHA
    23eb75b View commit details

Commits on Aug 6, 2014

  1. Copy the full SHA
    50203a4 View commit details

Commits on Sep 5, 2014

  1. Copy the full SHA
    3b28a33 View commit details
Showing with 23 additions and 10 deletions.
  1. +9 −0 Makefile
  2. +6 −6 git-hf-init
  3. +7 −3 git-hf-release
  4. +1 −1 hubflow-common
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
DESTDIR=
prefix=/usr/local
bindir=$(DESTDIR)/$(prefix)/bin

install:
INSTALL_INTO=$(bindir) ./install.sh

link:
for f in git-hf* hubflow-*; do ln -vfs $$PWD/$$f ~/bin/; done
12 changes: 6 additions & 6 deletions git-hf-init
Original file line number Diff line number Diff line change
@@ -94,7 +94,7 @@ cmd_default() {
if [ "$branch_count" -eq 0 ]; then
echo "No branches exist yet. Base branches must be created now."
should_check_existence=NO
default_suggestion=$(git config --get hubflow.branch.master || echo master)
default_suggestion=$(git config --get hubflow.branch.master || echo production)
else
echo
echo "Which branch should be used for tracking production releases?"
@@ -103,7 +103,7 @@ cmd_default() {
should_check_existence=YES
default_suggestion=
for guess in $(git config --get hubflow.branch.master) \
'production' 'main' 'master'; do
'production' 'main'; do
if git_local_branch_exists "$guess"; then
default_suggestion="$guess"
break
@@ -112,7 +112,7 @@ cmd_default() {

if [ -z "$default_suggestion" ] ; then
for guess in $(git config --get hubflow.branch.master) \
'production' 'main' 'master'; do
'production' 'main'; do
if git_remote_branch_exists "origin/$guess"; then
default_suggestion="$guess"
break
@@ -122,7 +122,7 @@ cmd_default() {

# if we have no default at this point, use 'master'
if [ -z "$default_suggestion" ] ; then
default_suggestion="master"
default_suggestion="production"
should_check_existence="NO"
fi
fi
@@ -163,7 +163,7 @@ cmd_default() {
branch_count=$(git_local_branches | grep -v "^${master_branch}\$" | wc -l)
if [ "$branch_count" -eq 0 ]; then
should_check_existence=NO
default_suggestion=$(git config --get hubflow.branch.develop || echo develop)
default_suggestion=$(git config --get hubflow.branch.develop || echo master)
else
echo
echo "Which branch should be used for integration of the \"next release\"?"
@@ -330,7 +330,7 @@ cmd_default() {

# Version tag prefix
if ! git config --get hubflow.prefix.versiontag >/dev/null 2>&1 || flag force; then
default_suggestion=$(git config --get hubflow.prefix.versiontag || echo "")
default_suggestion=$(git config --get hubflow.prefix.versiontag || echo "v")
printf "Version tag prefix? [$default_suggestion] "
if flag ask; then
read answer
10 changes: 7 additions & 3 deletions git-hf-release
Original file line number Diff line number Diff line change
@@ -187,6 +187,10 @@ cmd_start() {
# push it back up to remote repo
hubflow_push_latest_changes_to_origin

npm version --git-tag-version=false "$VERSION"
git-changelog
git add package.json CHANGES.md; git commit -m "v$VERSION"

echo
echo "Summary of actions:"
echo "- A new branch '$BRANCH' was created, based on '$BASE'"
@@ -253,7 +257,7 @@ cmd_finish() {
if ! git_is_branch_merged_into "$BRANCH" "$MASTER_BRANCH"; then
git checkout "$MASTER_BRANCH" || \
die "Could not check out $MASTER_BRANCH."
git merge --no-ff -srecursive -Xtheirs "$BRANCH" || \
git merge --no-ff -srecursive -Xtheirs "$BRANCH" --no-edit || \
die "There were merge conflicts."
# TODO: What do we do now?
fi
@@ -268,7 +272,7 @@ cmd_finish() {
flag sign && opts="$opts -s"
[ "$FLAGS_signingkey" != "" ] && opts="$opts -u '$FLAGS_signingkey'"
[ "$FLAGS_message" != "" ] && opts="$opts -m '$FLAGS_message'"
eval git tag $opts "$tagname" || \
eval git tag $opts "$tagname" -m "$tagname" || \
die "Tagging failed. Please run finish again to retry."
fi
fi
@@ -284,7 +288,7 @@ cmd_finish() {
# branch - and the new tag (if provided) - a parent of the development
# branch, which in turn lets you use 'git describe' on either branch
if noflag notag; then
git merge --no-ff "$tagname" || \
git merge --no-ff "$tagname" --no-edit || \
die "There were merge conflicts."
else
git merge --no-ff "$MASTER_BRANCH" || \
2 changes: 1 addition & 1 deletion hubflow-common
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@
#

HUBFLOW_VERSION=1.5.2
HUBFLOW_REPO=https://github.com/datasift/gitflow
HUBFLOW_REPO=https://github.com/strongloop/gitflow

#
# Common functionality