コード例 #1
0
ファイル: porcelain.py プロジェクト: ols3er/dulwich
def stash_pop(repo):
    """Pop a new stash from the stack."""
    with open_repo_closing(repo) as r:
        from dulwich.stash import Stash
        stash = Stash.from_repo(r)
        stash.pop()
コード例 #2
0
ファイル: porcelain.py プロジェクト: ols3er/dulwich
def stash_push(repo):
    """Push a new stash onto the stack."""
    with open_repo_closing(repo) as r:
        from dulwich.stash import Stash
        stash = Stash.from_repo(r)
        stash.push()
コード例 #3
0
ファイル: porcelain.py プロジェクト: ols3er/dulwich
def stash_list(repo):
    """List all stashes in a repository."""
    with open_repo_closing(repo) as r:
        from dulwich.stash import Stash
        stash = Stash.from_repo(r)
        return enumerate(list(stash.stashes()))
コード例 #4
0
ファイル: porcelain.py プロジェクト: jelmer/dulwich
def stash_pop(repo):
    """Pop a new stash from the stack."""
    with open_repo_closing(repo) as r:
        from dulwich.stash import Stash
        stash = Stash.from_repo(r)
        stash.pop()
コード例 #5
0
ファイル: porcelain.py プロジェクト: jelmer/dulwich
def stash_push(repo):
    """Push a new stash onto the stack."""
    with open_repo_closing(repo) as r:
        from dulwich.stash import Stash
        stash = Stash.from_repo(r)
        stash.push()
コード例 #6
0
ファイル: porcelain.py プロジェクト: jelmer/dulwich
def stash_list(repo):
    """List all stashes in a repository."""
    with open_repo_closing(repo) as r:
        from dulwich.stash import Stash
        stash = Stash.from_repo(r)
        return enumerate(list(stash.stashes()))