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

Commit 11d1361

Browse files
author
Erik Aigner
committed
Ensure all flags have a short variant
macOS/BSD getopt does not allow for long flag variants without installing gnu-getopt. This makes it hard to bundle git-flow with applications, since you usually can't bundle gnu-getopt with them. To address this, a short variant has been added for each command.
1 parent 40fc2df commit 11d1361

9 files changed

+130
-126
lines changed

AUTHORS

+27-26
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,30 @@ and logs, available at
66
http://github.com/petervanderdoes/gitflow.
77

88

9-
Peter van der Does
10-
Vincent Driessen
11-
Daniel Dehennin
12-
Benedikt Böhm
13-
Leonid Komarovsky
14-
Felipe Talavera
15-
Randy Merrill
16-
Kevin Woo
17-
Daniel Truemper
18-
Eric J. Holmes
19-
Fred Condo
20-
Alexandre Dutra
21-
Andreas Heiduk
22-
Ben Loveridge
23-
Florian Gamböck
24-
Gergely Nagy
25-
JP Toto
26-
Kiall Mac Innes
27-
Lorin Hochstein
28-
Olivier Mengué
29-
Oppodelldog
30-
Stefan Näwe
319
Adam Gibbins
3210
Alexander Groß
3311
Alexander Norström
3412
Alexander Zeitler
13+
Alexandre Dutra
14+
Andreas Heiduk
15+
Ben Loveridge
16+
Benedikt Böhm
3517
Brian St. Pierre
3618
Cararus Eugeniu
3719
Chad Walker
3820
Craig Fowler
21+
Daniel Dehennin
22+
Daniel Truemper
23+
eddie cianci
3924
Emre Berge Ergenekon
25+
Eric J. Holmes
26+
Erik Aigner
27+
Felipe Talavera
28+
Florian Gamböck
29+
Fred Condo
30+
Gergely Nagy
31+
gmallard
32+
gpongelli
4033
Gregor A. Cieslak
4134
Gruen Christian-Rolf (Kiki)
4235
Guillaume-Jean Herbiet
@@ -50,32 +43,40 @@ John Sivak
5043
Jon Bernard
5144
Joseph A. Levin
5245
Joshua P. Tilles
46+
JP Toto
5347
Juan Rial
5448
Justin Penney
49+
Kevin Woo
50+
Kiall Mac Innes
5551
Konstantin Tjuterev
5652
Kridsada Thanabulpong
5753
Leonardo Giordani
54+
Leonid Komarovsky
55+
Lorin Hochstein
5856
Luis Fernando Gomes @luiscoms
5957
Mark Borcherding
6058
Mark Derricutt
6159
Mateusz Kaczmarek
6260
Matias Hernan Lauriti
6361
Mayerber Carvalho Neto
6462
Nowell Strite
63+
Olivier Mengué
6564
Opher Vishnia
65+
Oppodelldog
6666
Peter Schröder
67+
Peter van der Does
6768
Pokey Rule
69+
Randy Merrill
70+
raybec
71+
Stefan Näwe
6872
Stefan Schüßler
6973
Steffen Jaeckel
7074
Steve Mao
7175
Steve Streeting
7276
Tacit Sawk
7377
Vedang Manerikar
78+
Vincent Driessen
7479
Zheeeng
75-
eddie cianci
76-
gmallard
77-
gpongelli
78-
raybec
7980

8081

8182
Portions of the project are derived from other open source works are clearly

git-flow

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ main() {
119119
. "$GITFLOW_DIR/gitflow-common"
120120

121121
# allow user to request git action logging
122-
DEFINE_boolean 'showcommands' false 'Show actions taken (git commands)'
122+
DEFINE_boolean 'showcommands' false 'Show actions taken (git commands)' q
123123
# but if the user prefers that the logging is always on,
124124
# use the environmental variables.
125125
gitflow_override_flag_boolean 'showcommands' 'showcommands'

git-flow-bugfix

+10-10
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ git flow bugfix start [-h] [-F] <name> [<base>]
181181
Start new bugfix <name>, optionally basing it on <base> instead of <develop>
182182
--
183183
h,help! Show this help
184-
showcommands! Show git commands while executing them
184+
q,showcommands! Show git commands while executing them
185185
F,[no]fetch Fetch from origin before performing local operation
186186
"
187187
local base
@@ -241,7 +241,7 @@ git flow bugfix finish [-h] [-F] [-r] [-p] [-k] [-D] [-S] [--no-ff] <name|namepr
241241
Finish bugfix <name>
242242
--
243243
h,help! Show this help
244-
showcommands! Show git commands while executing them
244+
q,showcommands! Show git commands while executing them
245245
F,[no]fetch Fetch from origin before performing finish
246246
r,[no]rebase Rebase before merging
247247
p,[no]preserve-merges Preserve merges while rebasing
@@ -507,7 +507,7 @@ Publish bugfix branch <name> on $ORIGIN.
507507
When <name> is omitted the current branch is used, but only if it's a bugfix branch.
508508
--
509509
h,help! Show this help
510-
showcommands! Show git commands while executing them
510+
q,showcommands! Show git commands while executing them
511511
"
512512
# Parse arguments
513513
parse_args "$@"
@@ -548,7 +548,7 @@ git flow bugfix track [-h] <name>
548548
Start tracking bugfix <name> that is shared on $ORIGIN
549549
--
550550
h,help! Show this help
551-
showcommands! Show git commands while executing them
551+
q,showcommands! Show git commands while executing them
552552
"
553553
# Parse arguments
554554
parse_args "$@"
@@ -583,7 +583,7 @@ git flow bugfix diff [-h] [<name|nameprefix>]
583583
Show all changes in <name> that are not in the base
584584
--
585585
h,help! Show this help
586-
showcommands! Show git commands while executing them
586+
q,showcommands! Show git commands while executing them
587587
"
588588
local base
589589

@@ -608,7 +608,7 @@ git flow bugfix checkout [-h] [<name|nameprefix>]
608608
Switch to bugfix branch <name>
609609
--
610610
h,help! Show this help
611-
showcommands! Show git commands while executing them
611+
q,showcommands! Show git commands while executing them
612612
"
613613
# Parse arguments
614614
parse_args "$@"
@@ -632,7 +632,7 @@ git flow bugfix rebase [-h] [-i] [-p] [<name|nameprefix>]
632632
Rebase <name> on <base_branch>
633633
--
634634
h,help! Show this help
635-
showcommands! Show git commands while executing them
635+
q,showcommands! Show git commands while executing them
636636
i,[no]interactive Do an interactive rebase
637637
p,[no]preserve-merges Preserve merges
638638
"
@@ -695,7 +695,7 @@ git flow bugfix pull [-h] <remote> [<name>]
695695
Pull bugfix <name> from <remote>
696696
--
697697
h,help! Show this help
698-
showcommands! Show git commands while executing them
698+
q,showcommands! Show git commands while executing them
699699
"
700700
local current_branch
701701

@@ -764,7 +764,7 @@ git flow bugfix delete [-h] [-f] [-r] <name>
764764
Delete a given bugfix branch
765765
--
766766
h,help! Show this help
767-
showcommands! Show git commands while executing them
767+
q,showcommands! Show git commands while executing them
768768
f,[no]force Force deletion
769769
r,[no]remote Delete remote branch
770770
"
@@ -836,7 +836,7 @@ git flow bugfix rename <new_name> [<new_name>]
836836
Rename a given bugfix branch
837837
--
838838
h,help! Show this help
839-
showcommands! Show git commands while executing them
839+
q,showcommands! Show git commands while executing them
840840
"
841841
gitflow_rename_branch "$@"
842842
}

git-flow-feature

+20-19
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ git flow feature start [-h] [-F] <name> [<base>]
181181
Start new feature <name>, optionally basing it on <base> instead of <develop>
182182
--
183183
h,help! Show this help
184-
showcommands! Show git commands while executing them
184+
q,showcommands! Show git commands while executing them
185185
F,[no]fetch Fetch from origin before performing local operation
186186
"
187187
local base
@@ -241,32 +241,33 @@ git flow feature finish [-h] [-F] [-r] [-p] [-k] [-D] [-S] [--no-ff] <name|namep
241241
Finish feature <name>
242242
--
243243
h,help! Show this help
244-
showcommands! Show git commands while executing them
244+
q,showcommands! Show git commands while executing them
245245
F,[no]fetch Fetch from origin before performing finish
246246
r,[no]rebase Rebase before merging
247247
p,[no]preserve-merges Preserve merges while rebasing
248-
[no]push Push to origin after performing finish
248+
P,[no]push Push to origin after performing finish
249249
k,[no]keep Keep branch after performing finish
250-
keepremote! Keep the remote branch
251-
keeplocal! Keep the local branch
250+
R,keepremote! Keep the remote branch
251+
L,keeplocal! Keep the local branch
252252
D,[no]force_delete Force delete feature branch after finish
253253
S,[no]squash Squash feature during merge
254-
no-ff! Never fast-forward during the merge
254+
s,[no]squash_info Add branch info during squash
255+
m,no-ff! Never fast-forward during the merge
255256
"
256257
local finish_base
257258

258259
# Define flags
259260
DEFINE_boolean 'fetch' false "fetch from $ORIGIN before performing finish" F
260261
DEFINE_boolean 'rebase' false "rebase before merging" r
261262
DEFINE_boolean 'preserve-merges' false 'try to recreate merges while rebasing' p
262-
DEFINE_boolean 'push' false "push to $ORIGIN after performing finish"
263+
DEFINE_boolean 'push' false "push to $ORIGIN after performing finish" P
263264
DEFINE_boolean 'keep' false "keep branch after performing finish" k
264-
DEFINE_boolean 'keepremote' false "keep the remote branch"
265-
DEFINE_boolean 'keeplocal' false "keep the local branch"
265+
DEFINE_boolean 'keepremote' false "keep the remote branch" R
266+
DEFINE_boolean 'keeplocal' false "keep the local branch" L
266267
DEFINE_boolean 'force_delete' false "force delete feature branch after finish" D
267268
DEFINE_boolean 'squash' false "squash feature during merge" S
268-
DEFINE_boolean 'squash-info' false "add branch info during squash"
269-
DEFINE_boolean 'no-ff!' false "Don't fast-forward ever during merge "
269+
DEFINE_boolean 'squash-info' false "add branch info during squash" s
270+
DEFINE_boolean 'no-ff!' false "Don't fast-forward ever during merge " m
270271

271272
# Override defaults with values from config
272273
gitflow_override_flag_boolean "feature.finish.fetch" "fetch"
@@ -507,7 +508,7 @@ Publish feature branch <name> on $ORIGIN.
507508
When <name> is omitted the current branch is used, but only if it's a feature branch.
508509
--
509510
h,help! Show this help
510-
showcommands! Show git commands while executing them
511+
q,showcommands! Show git commands while executing them
511512
"
512513
# Parse arguments
513514
parse_args "$@"
@@ -548,7 +549,7 @@ git flow feature track [-h] <name>
548549
Start tracking feature <name> that is shared on $ORIGIN
549550
--
550551
h,help! Show this help
551-
showcommands! Show git commands while executing them
552+
q,showcommands! Show git commands while executing them
552553
"
553554
# Parse arguments
554555
parse_args "$@"
@@ -583,7 +584,7 @@ git flow feature diff [-h] [<name|nameprefix>]
583584
Show all changes in <name> that are not in the base
584585
--
585586
h,help! Show this help
586-
showcommands! Show git commands while executing them
587+
q,showcommands! Show git commands while executing them
587588
"
588589
local base
589590

@@ -608,7 +609,7 @@ git flow feature checkout [-h] [<name|nameprefix>]
608609
Switch to feature branch <name>
609610
--
610611
h,help! Show this help
611-
showcommands! Show git commands while executing them
612+
q,showcommands! Show git commands while executing them
612613
"
613614
# Parse arguments
614615
parse_args "$@"
@@ -632,7 +633,7 @@ git flow feature rebase [-h] [-i] [-p] [<name|nameprefix>]
632633
Rebase <name> on <base_branch>
633634
--
634635
h,help! Show this help
635-
showcommands! Show git commands while executing them
636+
q,showcommands! Show git commands while executing them
636637
i,[no]interactive Do an interactive rebase
637638
p,[no]preserve-merges Preserve merges
638639
"
@@ -696,7 +697,7 @@ git flow feature pull [-h] <remote> [<name>]
696697
Pull feature <name> from <remote>
697698
--
698699
h,help! Show this help
699-
showcommands! Show git commands while executing them
700+
q,showcommands! Show git commands while executing them
700701
"
701702
local current_branch
702703

@@ -765,7 +766,7 @@ git flow feature delete [-h] [-f] [-r] <name>
765766
Delete a given feature branch
766767
--
767768
h,help! Show this help
768-
showcommands! Show git commands while executing them
769+
q,showcommands! Show git commands while executing them
769770
f,[no]force Force deletion
770771
r,[no]remote Delete remote branch
771772
"
@@ -837,7 +838,7 @@ git flow feature rename <new_name> [<new_name>]
837838
Rename a given feature branch
838839
--
839840
h,help! Show this help
840-
showcommands! Show git commands while executing them
841+
q,showcommands! Show git commands while executing them
841842
"
842843
gitflow_rename_branch "$@"
843844
}

0 commit comments

Comments
 (0)