Callbacks

  RepoCheckoutFilter (repo, path, stbuf, *user_data)
  RepoCommitFilter (repo, path, file_info, *user_data)
  RepoCommitModifierXattrCallback (repo, path, file_info, *user_data)
  RepoImportArchiveTranslatePathname (repo, stbuf, src_path, *user_data)

Details

OSTree.RepoCheckoutFilter(repo, path, stbuf, *user_data)
Parameters:
Returns:

OSTree.RepoCheckoutFilterResult saying whether or not to checkout this file

Return type:

OSTree.RepoCheckoutFilterResult

New in version 2018.2.

OSTree.RepoCommitFilter(repo, path, file_info, *user_data)
Parameters:
Returns:

OSTree.RepoCommitFilterResult saying whether or not to commit this file

Return type:

OSTree.RepoCommitFilterResult

OSTree.RepoCommitModifierXattrCallback(repo, path, file_info, *user_data)
Parameters:
Return type:

GLib.Variant

OSTree.RepoImportArchiveTranslatePathname(repo, stbuf, src_path, *user_data)
Parameters:
Return type:

str

Possibly change a pathname while importing an archive. If None is returned, then src_path will be used unchanged. Otherwise, return a new pathname which will be freed via g_free().

This pathname translation will be performed *before* any processing from an active OstreeRepoCommitModifier. Will be invoked for all directory and file types, first with outer directories, then their sub-files and directories.

Note that enabling pathname translation will always override the setting for use_ostree_convention.

New in version 2017.11.