Callbacks¶
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Details¶
- Ggit.ConfigCallback(entry, *user_data)¶
- Parameters:
- entry ( - Ggit.ConfigEntry) – a- Ggit.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. See- Ggit.Config.foreach().
- Ggit.ConfigMatchCallback(match_info, value, *user_data)¶
- Parameters:
- match_info ( - GLib.MatchInfo) – the match
- value ( - 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. See- Ggit.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 ( - stror- None) – The username that was embedded in a “user`host`" remote url, or- Noneif 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) – a- Ggit.DiffDelta.
- binary ( - Ggit.DiffBinary) – a- Ggit.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) – a- Ggit.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) – a- Ggit.DiffDelta.
- hunk ( - Ggit.DiffHunk) – a- Ggit.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) – a- Ggit.DiffDelta.
- hunk ( - Ggit.DiffHunkor- None) – a- Ggit.DiffHunk.
- line ( - Ggit.DiffLine) – a- Ggit.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. See- Ggit.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. See- Ggit.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. See- Ggit.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. See- Ggit.Repository.file_status_foreach().
- Ggit.SubmoduleCallback(submodule, name, *user_data)¶
- Parameters:
- submodule ( - Ggit.Submodule) – a- Ggit.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. See- Ggit.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) – a- Ggit.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 entry
- entry ( - 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().