MCPcopy Create free account
hub / github.com/libgit2/pygit2 / stash_drop

Method stash_drop

pygit2/repository.py:1361–1371  ·  view source on GitHub ↗

Remove a stashed state from the stash list. Parameters: index : int The position within the stash list of the stash to remove. 0 is the most recent stash.

(self, index: int = 0)

Source from the content-addressed store, hash-verified

1359 payload.check_error(err)
1360
1361 def stash_drop(self, index: int = 0) -> None:
1362 """
1363 Remove a stashed state from the stash list.
1364
1365 Parameters:
1366
1367 index : int
1368 The position within the stash list of the stash to remove. 0 is
1369 the most recent stash.
1370 """
1371 check_error(C.git_stash_drop(self._repo, index))
1372
1373 def stash_pop(
1374 self,

Callers 1

test_stashFunction · 0.80

Calls 1

check_errorFunction · 0.85

Tested by 1

test_stashFunction · 0.64