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

Class ApplyLocation

pygit2/enums.py:32–51  ·  view source on GitHub ↗

Possible application locations for patches

Source from the content-addressed store, hash-verified

30
31
32class ApplyLocation(IntEnum):
33 """Possible application locations for patches"""
34
35 WORKDIR = _pygit2.GIT_APPLY_LOCATION_WORKDIR
36 """
37 Apply the patch to the workdir, leaving the index untouched.
38 This is the equivalent of `git apply` with no location argument.
39 """
40
41 INDEX = _pygit2.GIT_APPLY_LOCATION_INDEX
42 """
43 Apply the patch to the index, leaving the working directory
44 untouched. This is the equivalent of `git apply --cached`.
45 """
46
47 BOTH = _pygit2.GIT_APPLY_LOCATION_BOTH
48 """
49 Apply the patch to both the working directory and the index.
50 This is the equivalent of `git apply --index`.
51 """
52
53
54class AttrCheck(IntFlag):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…