d77d636b4c08f45d0784f3f9f901fbef754ae762

Author
Ivan Eisenberg <ivan.eisenberg@gmail.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

git-flow: add "gflfp" alias for feature publish (#6350)

- Add `gflfp` as an alias for `git flow feature publish`
- Update README.md documentation

Diff

 1diff --git a/plugins/git-flow/README.md b/plugins/git-flow/README.md
 2index f37f418db4342bc00100b558b7dccefeb7069574..5d8049e3bde2f1cafdcff3044bcde63a7808c917 100644
 3--- a/plugins/git-flow/README.md
 4+++ b/plugins/git-flow/README.md
 5@@ -10,22 +10,23 @@ plugins=(... git-flow)
 6 
 7 ## Aliases
 8 
 9-More information about `git-flow` commands: 
10+More information about `git-flow` commands:
11 https://github.com/nvie/gitflow/wiki/Command-Line-Arguments
12 
13-| Alias   | Command                   | Description                            |
14-|---------|---------------------------|----------------------------------------|
15-| `gfl`   | `git flow`                | Git-Flow command                       |
16-| `gfli`  | `git flow init`           | Initialize git-flow repository         |
17-| `gcd`   | `git checkout develop`    | Check out develop branch               |
18-| `gch`   | `git checkout hotfix`     | Check out hotfix branch                |
19-| `gcr`   | `git checkout release`    | Check out release branch               |
20-| `gflf`  | `git flow feature`        | List existing feature branches         |
21-| `gflh`  | `git flow hotfix`         | List existing hotfix branches          |
22-| `gflr`  | `git flow release`        | List existing release branches         |
23-| `gflfs` | `git flow feature start`  | Start a new feature: `gflfs <name>`    |
24-| `gflhs` | `git flow hotfix start`   | Start a new hotfix: `gflhs <version>`  |
25-| `gflrs` | `git flow release start`  | Start a new release: `gflrs <version>` |
26-| `gflff` | `git flow feature finish` | Finish feature: `gflff <name>`         |
27-| `gflhf` | `git flow hotfix finish`  | Finish hotfix: `gflhf <version>`       |
28-| `gflrf` | `git flow release finish` | Finish release: `gflrf <version>`      |
29+| Alias   | Command                    | Description                            |
30+|---------|----------------------------|----------------------------------------|
31+| `gfl`   | `git flow`                 | Git-Flow command                       |
32+| `gfli`  | `git flow init`            | Initialize git-flow repository         |
33+| `gcd`   | `git checkout develop`     | Check out develop branch               |
34+| `gch`   | `git checkout hotfix`      | Check out hotfix branch                |
35+| `gcr`   | `git checkout release`     | Check out release branch               |
36+| `gflf`  | `git flow feature`         | List existing feature branches         |
37+| `gflh`  | `git flow hotfix`          | List existing hotfix branches          |
38+| `gflr`  | `git flow release`         | List existing release branches         |
39+| `gflfs` | `git flow feature start`   | Start a new feature: `gflfs <name>`    |
40+| `gflhs` | `git flow hotfix start`    | Start a new hotfix: `gflhs <version>`  |
41+| `gflrs` | `git flow release start`   | Start a new release: `gflrs <version>` |
42+| `gflff` | `git flow feature finish`  | Finish feature: `gflff <name>`         |
43+| `gflfp` | `git flow feature publish` | Publish feature: `gflfp <name>`        |
44+| `gflhf` | `git flow hotfix finish`   | Finish hotfix: `gflhf <version>`       |
45+| `gflrf` | `git flow release finish`  | Finish release: `gflrf <version>`      |
46diff --git a/plugins/git-flow/git-flow.plugin.zsh b/plugins/git-flow/git-flow.plugin.zsh
47index 5f5e4aa73886caa7d2ee90bace1a40e543dafc6b..eab969d8a19e0f7944fc62692dd71916de84c42e 100644
48--- a/plugins/git-flow/git-flow.plugin.zsh
49+++ b/plugins/git-flow/git-flow.plugin.zsh
50@@ -33,6 +33,7 @@ alias gflfs='git flow feature start'
51 alias gflhs='git flow hotfix start'
52 alias gflrs='git flow release start'
53 alias gflff='git flow feature finish'
54+alias gflfp='git flow feature publish'
55 alias gflhf='git flow hotfix finish'
56 alias gflrf='git flow release finish'
57 alias gflfp='git flow feature publish'