File: git-graft

package info (click to toggle)
git-extras 1.7.0-1.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 696 kB
  • sloc: sh: 381; makefile: 52
file content (10 lines) | stat: -rwxr-xr-x 165 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

src=$1
dst=$2

test -z $src && echo "source branch required." 1>&2 && exit 1

git checkout $dst \
  && git merge --no-ff $src \
  && git branch -d $src