~tardypad/dotfiles

e3117d2bb4c90f5fb7eaaa3ed4a67d1ce91cb01d — Damien Tardy-Panis a month ago b347848
Fix git ci alias when in subfolder

Git alias functions are run from the root of the repository. So doing a
git commit from a subfolder with relative path was failing
1 files changed, 5 insertions(+), 1 deletions(-)

M files/configs/git/config.d/aliases
M files/configs/git/config.d/aliases => files/configs/git/config.d/aliases +5 -1
@@ 30,7 30,11 @@
    bwc = "! f() { git browse -t commit -c $( git argument $1 ); }; f"
    bwi = "! f() { git browse -t issue -c $( git argument $1 ); }; f"
    bwr = "! f() { git browse -t review -c $( git argument $1 ); }; f"
    ci = "! f() { EDITOR=\"vim -c 'startinsert!'\" git commit \"$@\"; }; f"
    ci = "! \
        f() { \
          [ -z \"$GIT_PREFIX\" ] || cd \"$GIT_PREFIX\"; \
          EDITOR=\"vim -c 'startinsert!'\" git commit \"$@\"; \
        }; f"
    cia = ci -a
    cl = clone
    co = checkout