def git_all(*args, git=maybeloggit, **kwargs):
    'Return entire output of git command.'

    try:
        cmd = git(*args, _err_to_out=True, _decode_errors='replace', **kwargs)
        out = cmd.stdout
    except sh.ErrorReturnCode as e:
        status('exit_code=%s' % e.exit_code)
        out = e.stdout

    out = out.decode('utf-8')

    return out
Return entire output of git command.