932d611c90b979078f4cdd37a20e2bf12e400a84
- Author
- Bartlomiej Tartanus <bartektartanus@gmail.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
git: properly indent ggfl function (#7556)
Fixes (probably MacOS) issue:
> ggfl
zsh: command not found: ggfl
Diff
1diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
2index 2251bae2e71d6513333d2d4936ada8ad01b8403d..12400ede404ce9dbd503f7887eeb9260d2c50193 100644
3--- a/plugins/git/git.plugin.zsh
4+++ b/plugins/git/git.plugin.zsh
5@@ -112,8 +112,8 @@ ggf() {
6 git push --force origin "${b:=$1}"
7 }
8 ggfl() {
9-[[ "$#" != 1 ]] && local b="$(git_current_branch)"
10-git push --force-with-lease origin "${b:=$1}"
11+ [[ "$#" != 1 ]] && local b="$(git_current_branch)"
12+ git push --force-with-lease origin "${b:=$1}"
13 }
14 compdef _git ggf=git-checkout
15