• P
    Customizable error handlers · 39a3f5ea
    Petr Baudis 提交于
    This patch makes the usage(), die() and error() handlers customizable.
    Nothing in the git code itself uses that but many other libgit users
    (like Git.pm) will.
    
    This is implemented using the mutator functions primarily because you
    cannot directly modifying global variables of libgit from a program that
    dlopen()ed it, apparently. But having functions for that is a better API
    anyway.
    Signed-off-by: NPetr Baudis <pasky@suse.cz>
    Signed-off-by: NJunio C Hamano <junkio@cox.net>
    39a3f5ea
git-compat-util.h 3.6 KB