Commit graph

68 commits

Author SHA1 Message Date
Vincent Driessen
2acfffd96a Make the 'to fetch or not to fetch' flag explicit in the other commands, too.
Only difference is that the default equals to:
0	for git-flow-feature
1	for git-flow-{release,hotfix,support}
2010-01-29 12:37:22 +01:00
Vincent Driessen
e034e4a279 Only have network connectivity when explicitly asked for feature branches. This action is so common that it should be quick (very git-ish).
For hotfix and release branches, forgetting to update would be an unsafe thing to do, so we leave the fetch in there by default.
2010-01-29 12:10:44 +01:00
Vincent Driessen
48386441c8 Replace gitflow_check_ prefixes by gitflow_require_ prefixes, for consistency. 2010-01-29 10:30:40 +01:00
Vincent Driessen
278884b573 Fix 'feature diff' 2010-01-28 16:29:34 +01:00
Vincent Driessen
46e9c86aff Merge branch 'feature/subcmd-structure' into develop
Conflicts:
	git-flow-feature
	git-flow-hotfix
	git-flow-release
	git-flow-support
2010-01-28 01:19:56 +01:00
Vincent Driessen
b866b01ba4 Give all subcommands an optional setup() function that will be called by git-flow in order to let the subcommand initialize its environment.
Give all the branch-type subcommands a default explicit "list" action, too.

Order the functions inside each of the subcommands in a specific order, for consistency:
- usage()
- setup()
- cmd_default()
- cmd_list()
- cmd_help()
- parse_args()
- other commands
2010-01-28 01:09:28 +01:00
Benedikt Böhm
49dd62b715 refactor git config calls to global variables 2010-01-28 00:51:15 +01:00
Vincent Driessen
170dc747e2 Refactored the feature, release and support subcommands, too. 2010-01-28 00:21:35 +01:00
Vincent Driessen
186d2b5f81 Refactored the subcommand invocation logic to form a more hierarchical structure and a cleaner design. 2010-01-27 23:58:55 +01:00
Vincent Driessen
c51aedf8d0 No feature branches is perfectly OK, so exit clean with code 0. 2010-01-27 14:08:50 +01:00
Vincent Driessen
bd4f095186 Added cmd_list and cmd_diff to git-flow-feature. 2010-01-27 13:57:15 +01:00
Vincent Driessen
6c2d30bbc4 Structurally replace gitflow by git-flow, as a true git extension. 2010-01-26 22:20:41 +01:00
Benedikt Böhm
4d22227a68 make git fetch silent 2010-01-26 14:46:56 +01:00
Benedikt Böhm
83d4361ca5 fix modes 2010-01-26 14:22:41 +01:00
Benedikt Böhm
96f44c0781 make branch prefixes configurable 2010-01-26 13:09:32 +01:00
Benedikt Böhm
350e7159f1 make origin configurable 2010-01-26 13:05:05 +01:00
Benedikt Böhm
4a864fbc09 make master and develop branch names configurable 2010-01-26 12:59:27 +01:00
Benedikt Böhm
00ccea60ae refactor the whole thing
- now works as sub commands to git if copied to $(git --exec-path)
- now works with arbitrary commands for branch types
- consistent variable names
- new branch type 'support' for long-term support branches of historic
  versions
- preliminary base branch support for hotfix branch type to create
  hotfixes form support branches
2010-01-26 12:39:36 +01:00