From 2d94afe185b8db8aa2c73f7672a2c7b534232219 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 5 Apr 2011 09:08:34 -0400 Subject: [PATCH] git-graft now defaults to current branch instead of master Signed-off-by: Tj Holowaychuk --- bin/git-graft | 2 +- man/git-graft.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/git-graft b/bin/git-graft index ad212f7..cbd15e7 100755 --- a/bin/git-graft +++ b/bin/git-graft @@ -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 \ diff --git a/man/git-graft.md b/man/git-graft.md index 0e913ff..28c554c 100644 --- a/man/git-graft.md +++ b/man/git-graft.md @@ -7,7 +7,7 @@ git-graft(1) -- Merge and destroy a given branch ## DESCRIPTION - Merge commits from <src-branch> into <dest-branch> which defaults to <master>. + Merge commits from <src-branch> into <dest-branch> which defaults to the current branch. ## OPTIONS