Пример #1
0
def add(request):
    """Lets add to the repo the newly added files.
       Return True or False depending if was added or not.
    """

    newfile = request.POST.get('file')
    repo = githelper.repository
    status = githelper.repo_status(repo)
    added = False
    if newfile in status['??']['files']:
        githelper.post_blob(repo, newfile)
        added = True
    return vomit(request, added)
Пример #2
0
def status(request, verbose=None):
    """Returns the list of untracked images.
       ie: Those which hasn't been commited yet."""

    return vomit(request, githelper.repo_status(githelper.repository, verbose))