Fix warnings emitted by Apple LLVM version 7.3.0 (clang-703.0.29)
[tig.git] / contrib / git-flow.tigrc
blobd276acd33a503dc967f0b959d113eff725fd34d6
1 # Bindings for git-flow.
3 # Flow bindings start with the capital F and then follow the first character of
4 # each operation. If executed from the refs view, the operations (that make
5 # sense to) work on the selected branch. Otherwise, they work on the currently
6 # checked out branch.
8 # Commands that finish a flow require confirmation to run. Commands that create
9 # a new flow prompt for user input and run when that input is accepted with no
10 # confirmation prompt.
12 # Note: Bindings assume the standard git-flow paths of feature, release, hotfix
13 # and support.
15 # To use these keybindings copy the file to your HOME directory and include it
16 # from your ~/.tigrc file:
18 #       $ cp contrib/git-flow.tigrc ~/.tigrc.git-flow
19 #       $ echo "source ~/.tigrc.git-flow" >> ~/.tigrc
21 # Get rid of default bindings for F, as that will be the entry point for all
22 # git-flow related commands with this binding.
23 bind main    F none
24 bind generic F none
26 # General
27 bind generic Fi ?git flow init
29 # Feature
30 bind generic Ffl !git flow feature
31 bind generic Ffs !git flow feature start "%(prompt New feature name: )"
32 bind generic Fff ?sh -c "git flow feature finish `echo %(repo:head) | sed -e s/feature.//`"
33 bind refs    Fff ?sh -c "git flow feature finish `echo %(branch) | sed -e s/feature.//`"
35 # Release
36 bind generic Frl !git flow release
37 bind generic Frs !git flow release start "%(prompt New release name: )"
38 bind generic Frf ?sh -c "git flow release finish `echo %(repo:head) | sed -e s/release.//`"
39 bind refs    Frf ?sh -c "git flow release finish `echo %(branch) | sed -e s/release.//`"
41 # Hot Fix
42 bind generic Fhl !git flow hotfix
43 bind generic Fhs !git flow hotfix start "%(prompt New hotfix name: )"
44 bind generic Fhf ?sh -c "git flow hotfix finish `echo %(repo:head) | sed -e s/hotfix.//`"
45 bind refs    Fhf ?sh -c "git flow hotfix finish `echo %(branch) | sed -e s/hotfix.//`"
47 # Support
48 bind generic Fsl !git flow support
49 bind refs    Fss !git flow support start "%(prompt New support name: )" %(branch)