We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41732e4 commit d3772ebCopy full SHA for d3772eb
bin/git-feature
@@ -32,6 +32,10 @@ do
32
--squash )
33
merge_mode="--squash"
34
;;
35
+ --from )
36
+ start_point=$2
37
+ shift
38
+ ;;
39
* )
40
argv+=($1)
41
@@ -55,10 +59,24 @@ else
55
59
else
56
60
branch="$branch_prefix"/"${argv[0]}"
57
61
fi
58
- if [[ -n $remote ]]
62
+
63
+ if [[ -n $remote ]] && [[ -z $start_point ]]
64
then
65
git create-branch -r $remote $branch
- else
66
+ fi
67
68
+ if [[ -z $remote ]] && [[ -z $start_point ]]
69
+ then
70
git create-branch $branch
71
72
73
+ if [[ -n $remote ]] && [[ -n $start_point ]]
74
75
+ git create-branch -r $remote --from $start_point $branch
76
77
78
+ if [[ -z $remote ]] && [[ -n $start_point ]]
79
80
+ git create-branch --from $start_point $branch
81
82
0 commit comments