Vincent Driessen
1b8192362e
Use shFlags to parse flags given to main and subcommands.
...
Implement the flags for each of the 'feature' subcommands.
2010-02-01 15:55:18 +01:00
Vincent Driessen
ea58d0f1de
Added initial implementation of using shFlags.
2010-01-30 20:51:03 +01:00
Vincent Driessen
62345d54f3
Created a second function called gitflow_test_clean_working_tree() that returns error codes instead of dies.
...
Rewrote gitflow_require_clean_working_tree() in terms of that.
2010-01-29 12:41:04 +01:00
Vincent Driessen
58995b5b86
Include a globally available variable GIT_DIR, that points to the .git directory.
...
Add a function that tests whether a specific commit is already merged into the given target branch.
2010-01-29 12:40:08 +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
92b125cfba
Remove pointless check for existence of function setup()
2010-01-28 10:56:54 +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
7672d99d34
remove useless sanity check
2010-01-28 00:47:46 +01:00
Vincent Driessen
3625f3957f
Make git-flow-version a first-class citizen amongst the other subcommands.
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
Benedikt Böhm
74a4fe2794
restore &> behaviour but with posix compliant shell syntax
2010-01-28 05:18:23 +08:00
Vincent Driessen
1f2741aa13
sh builtin command typeset is more portable than declare
2010-01-27 12:55:12 +01:00
Vincent Driessen
2ba9a4da3c
Fix: run git commands in the foreground, instead of the background.
2010-01-27 12:51:07 +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
427c5dbab5
implement init command
2010-01-26 18:23:44 +01:00
Benedikt Böhm
e2fa4913cc
remove bash specific expansions
2010-01-26 14:41:20 +01:00
Benedikt Böhm
7d703a839a
Merge branch 'develop' of git://github.com/nvie/gitflow into develop
...
Conflicts:
gitflow
2010-01-26 13:17:12 +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
4ea07a2cc5
set -e conflicts with new sanity checks
2010-01-26 12:48:00 +01:00
Benedikt Böhm
e5eaff9557
add bash debug support
2010-01-26 12:44:55 +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