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

Class CheckoutNotify

pygit2/enums.py:113–143  ·  view source on GitHub ↗

Checkout notification flags Checkout will invoke an options notification callback (`CheckoutCallbacks.checkout_notify`) for certain cases - you pick which ones via `CheckoutCallbacks.checkout_notify_flags`.

Source from the content-addressed store, hash-verified

111
112
113class CheckoutNotify(IntFlag):
114 """
115 Checkout notification flags
116
117 Checkout will invoke an options notification callback
118 (`CheckoutCallbacks.checkout_notify`) for certain cases - you pick which
119 ones via `CheckoutCallbacks.checkout_notify_flags`.
120 """
121
122 NONE = C.GIT_CHECKOUT_NOTIFY_NONE
123
124 CONFLICT = C.GIT_CHECKOUT_NOTIFY_CONFLICT
125 'Invokes checkout on conflicting paths.'
126
127 DIRTY = C.GIT_CHECKOUT_NOTIFY_DIRTY
128 """
129 Notifies about "dirty" files, i.e. those that do not need an update
130 but no longer match the baseline. Core git displays these files when
131 checkout runs, but won't stop the checkout.
132 """
133
134 UPDATED = C.GIT_CHECKOUT_NOTIFY_UPDATED
135 'Sends notification for any file changed.'
136
137 UNTRACKED = C.GIT_CHECKOUT_NOTIFY_UNTRACKED
138 'Notifies about untracked files.'
139
140 IGNORED = C.GIT_CHECKOUT_NOTIFY_IGNORED
141 'Notifies about ignored files.'
142
143 ALL = C.GIT_CHECKOUT_NOTIFY_ALL
144
145
146class CheckoutStrategy(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…