예제 #1
0
파일: git.py 프로젝트: SPSCommerce/gittle
def is_unreadable_change(store):
    return negate(is_readable_change(store))
예제 #2
0
def is_unreadable_change(store):
    return negate(is_readable_change(store))
예제 #3
0
파일: git.py 프로젝트: 31H0B1eV/gittle
# 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
예제 #4
0
파일: git.py 프로젝트: kejbaly2/gittle
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