Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- Ggit.ConfigCallback(entry, *user_data)¶
- Parameters:
entry (
Ggit.ConfigEntry) – aGgit.ConfigEntry.
- Returns:
0 to go for the next config value or a
Ggit.Errorin case there was an error.- Return type:
The type of the callback functions for retrieving values from a
Ggit.Config. SeeGgit.Config.foreach().
- Ggit.ConfigMatchCallback(match_info, value, *user_data)¶
- Parameters:
match_info (
GLib.MatchInfo) – the matchvalue (
str) – the value
- Returns:
0 to go for the next config value or a
Ggit.Errorin case there was an error.- Return type:
The type of the callback functions for retrieving values from a
Ggit.Configusing a regular expression. SeeGgit.Config.match_foreach().
- Ggit.CredAcquireCallback(url, username_from_url, allowed_types, cred, *user_data)¶
- Parameters:
url (
str) – the resource for which we are demanding a credential.username_from_url (
strorNone) – The username that was embedded in a “user`host`" remote url, orNoneif not included.allowed_types (
int) – a bitmask stating which cred types are OK to return.cred (
Ggit.Cred) – newly created credential object.
- Return type:
Signature of a function which acquires a credential object.
- Ggit.DiffBinaryCallback(delta, binary, *user_data)¶
- Parameters:
delta (
Ggit.DiffDelta) – aGgit.DiffDelta.binary (
Ggit.DiffBinary) – aGgit.DiffBinary.
- Returns:
0 to go continue or a
Ggit.Errorin case there was an error.- Return type:
Called for each file.
- Ggit.DiffFileCallback(delta, progress, *user_data)¶
- Parameters:
delta (
Ggit.DiffDelta) – aGgit.DiffDelta.progress (
float) – the progress.
- Returns:
0 to go continue or a
Ggit.Errorin case there was an error.- Return type:
Called for each file.
- Ggit.DiffHunkCallback(delta, hunk, *user_data)¶
- Parameters:
delta (
Ggit.DiffDelta) – aGgit.DiffDelta.hunk (
Ggit.DiffHunk) – aGgit.DiffHunk.
- Returns:
0 to go continue or a
Ggit.Errorin case there was an error.- Return type:
Called for each hunk.
- Ggit.DiffLineCallback(delta, hunk, line, *user_data)¶
- Parameters:
delta (
Ggit.DiffDelta) – aGgit.DiffDelta.hunk (
Ggit.DiffHunkorNone) – aGgit.DiffHunk.line (
Ggit.DiffLine) – aGgit.DiffLine.
- Returns:
0 to go continue or a
Ggit.Errorin case there was an error.- Return type:
Called for each line.
- Ggit.DiffSimilarityMetricBufferSignatureCallback(file, buf, buflen, out, *user_data)¶
- Ggit.DiffSimilarityMetricFileSignatureCallback(file, fullpath, out, *user_data)¶
- Ggit.DiffSimilarityMetricFreeSignatureCallback(signature, *user_data)¶
- Ggit.DiffSimilarityMetricSimilarityCallback(score, signature_a, signature_b, *user_data)¶
- Ggit.NoteCallback(blob_id, annotated_object_id, *user_data)¶
- Parameters:
- Returns:
0 to go continue or a
Ggit.Errorin case there was an error.- Return type:
When iterating over all the notes, callback that will be issued per note. See
Ggit.Repository.note_foreach().
- Ggit.ReferencesCallback(reference, *user_data)¶
- Parameters:
- Returns:
0 to go for the next references or a
Ggit.Errorin case there was an error.- Return type:
The type of the callback functions for retrieving the references in a
Ggit.Repository. SeeGgit.Repository.references_foreach().
- Ggit.ReferencesNameCallback(name, *user_data)¶
- Parameters:
- Returns:
0 to go for the next references or a
Ggit.Errorin case there was an error.- Return type:
The type of the callback functions for retrieving the references in a
Ggit.Repository. SeeGgit.Repository.references_foreach_name().
- Ggit.RemoteListCallback(name, oid, loid, local, *user_data)¶
- Parameters:
- Returns:
0 to go continue or a
Ggit.Errorin case there was an error.- Return type:
The type of the callback functions for listing the references of a
Ggit.Remote. SeeGgit.Remote.list().
- Ggit.StashCallback(index, message, stash_oid, *user_data)¶
- Parameters:
- Returns:
0 to go continue or a
Ggit.Errorin case there was an error.- Return type:
When iterating over all the stashed states, callback that will be issued per entry. See
Ggit.Repository.stash_foreach().
- Ggit.StatusCallback(path, status_flags, *user_data)¶
- Parameters:
path (
str) – the file to retrieve status for, rooted at the repository working dir.status_flags (
Ggit.StatusFlags) – the status value.
- Returns:
0 to go for the next file or a
Ggit.Errorin case there was an error.- Return type:
The type of the callback functions for retrieving the status of the files in a
Ggit.Repository. SeeGgit.Repository.file_status_foreach().
- Ggit.SubmoduleCallback(submodule, name, *user_data)¶
- Parameters:
submodule (
Ggit.Submodule) – aGgit.Submodule.name (
str) – the name of the submodule.
- Returns:
0 to go for the next submodule or a
Ggit.Errorin case there was an error.- Return type:
The type of the callback functions for retrieving the submodules in a
Ggit.Repository. SeeGgit.Repository.submodule_foreach().
- Ggit.TagCallback(name, tag_oid, *user_data)¶
- Parameters:
- Returns:
0 to go continue or a
Ggit.Errorin case there was an error.- Return type:
When iterating over all the tags, callback that will be issued per entry. See
Ggit.Repository.tag_foreach().
- Ggit.TransferProgressCallback(stats, *user_data)¶
- Parameters:
stats (
Ggit.TransferProgress) – aGgit.TransferProgress.
- Returns:
a value less than zero to cancel the transfer.
- Return type:
Progress callbacks during indexing.
- Ggit.TreeWalkCallback(root, entry, *user_data)¶
- Parameters:
root (
str) – the current (relative) root of the entryentry (
Ggit.TreeEntry) – the tree entry
- Returns:
0 to go for the next entry or a
Ggit.Errorin case there was an error.- Return type:
The type of the callback functions for walking a tree. See
Ggit.Tree.walk().