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
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
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.
27 bind generic Fi ?git flow init
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.//`"
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.//`"
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.//`"
48 bind generic Fsl !git flow support
49 bind refs Fss !git flow support start "%(prompt New support name: )" %(branch)