Skip to content
This repository has been archived by the owner on Feb 1, 2018. It is now read-only.

Commit

Permalink
git-graft now defaults to current branch instead of master
Browse files Browse the repository at this point in the history
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
  • Loading branch information
Kenneth Reitz authored and tj committed Apr 5, 2011
1 parent 6de78f6 commit 2d94afe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/git-graft
Expand Up @@ -2,7 +2,7 @@

test -z $1 && echo "source branch required." && exit 1
src=$1
dst=${2-master}
dst=${2-}

git checkout $dst \
&& git merge --no-ff $src \
Expand Down
2 changes: 1 addition & 1 deletion man/git-graft.md
Expand Up @@ -7,7 +7,7 @@ git-graft(1) -- Merge and destroy a given branch

## DESCRIPTION

Merge commits from &lt;src-branch&gt; into &lt;dest-branch&gt; which defaults to &lt;master&gt;.
Merge commits from &lt;src-branch&gt; into &lt;dest-branch&gt; which defaults to the current branch.

## OPTIONS

Expand Down

0 comments on commit 2d94afe

Please sign in to comment.