Exemplo n.º 1
0
def is_unreadable_change(store):
    return negate(is_readable_change(store))
Exemplo n.º 2
0
def is_unreadable_change(store):
    return negate(is_readable_change(store))
Exemplo n.º 3
0
# Mimer imports
from mimer import is_readable


def _is_readable_info(info):
    path, mode, sha = info
    return path is None or is_readable(path)


def is_readable_change(change):
    return all(
        map(_is_readable_info, change)
    )

is_unreadable_change = negate(is_readable_change)


def dummy_diff(*args, **kwargs):
    return ''


def commit_name_email(commit_author):
    try:
        name, email = commit_author.rsplit(' ', 1)
        # Extract the X from : "<X>"
        email = email[1:-1]
    except:
        name = commit_author
        email = ''
    return name, email
Exemplo n.º 4
0
from funky import first, true_only, rest, negate, transform

# Mimer imports
from mimer import is_readable


def _is_readable_info(info):
    path, mode, sha = info
    return path is None or is_readable(path)


def is_readable_change(change):
    return all(map(_is_readable_info, change))


is_unreadable_change = negate(is_readable_change)


def dummy_diff(*args, **kwargs):
    return ''


def commit_name_email(commit_author):
    try:
        name, email = commit_author.rsplit(' ', 1)
        # Extract the X from : "<X>"
        email = email[1:-1]
    except:
        name = commit_author
        email = ''
    return name, email