MCPcopy Index your code
hub / github.com/gitless-vcs/gitless / delete

Method delete

gitless/core.py:636–645  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

634 self.branch_name = self.git_branch.branch_name
635
636 def delete(self):
637 if self.is_current:
638 raise BranchIsCurrentError('Can\'t delete the current branch')
639
640 self.git_branch.delete()
641
642 # We also cleanup any stash left
643 s_id, _ = _stash(_stash_msg(self.branch_name))
644 if s_id:
645 git.stash.drop(s_id)
646
647 @property
648 def upstream(self):

Callers

nothing calls this directly

Calls 4

_stashFunction · 0.85
_stash_msgFunction · 0.85
deleteMethod · 0.45

Tested by

no test coverage detected