Git in PLD - basic HOWTO

Caleb Maclennan caleb at pld-linux.org
Tue Jul 10 16:29:27 CEST 2012


2012/7/10 Kacper Kornet <draenog at pld-linux.org>:
> The solution that I know is to define a wrapper around git, that calls
> call "git -c user.email=whatever", where whatever depends on the current
> path. It's cumbersome, but maybe better then nothing.

Here's my current hack as function for my zsh shell:

function git () {
    case "$PWD"; in
        $HOME/rpm/*)
            command git -c user.email=$USER at pld-linux.org "$@"
            ;;
        *)
            command git "$@"
            ;;
    esac
}


More information about the pld-devel-en mailing list