notes_pipeline.stages.sync_settings#

Synchronize settings across vaults if there are no pending changes.

Module Contents#

Classes#

Submodule

Represents a git submodule.

Functions#

main

get_changes

Get pending changes.

get_submodules

Get submodules.

copy_settings

Copy settings from one vault to another.

Data#

app

ALLOWED_CHANGES

These files have CRLF line endings or some other issue that we can’t control.

API#

notes_pipeline.stages.sync_settings.app#

‘Typer(…)’

notes_pipeline.stages.sync_settings.ALLOWED_CHANGES#

None

These files have CRLF line endings or some other issue that we can’t control.

notes_pipeline.stages.sync_settings.main()#
exception notes_pipeline.stages.sync_settings.ChangesPendingError#

Bases: Exception

notes_pipeline.stages.sync_settings.get_changes() list[pathlib.Path]#

Get pending changes.

class notes_pipeline.stages.sync_settings.Submodule#

Represents a git submodule.

_path: str | bytes#

None

Submodule path as reported by the submodule source.

commit: str#

None

Commit hash currently tracked by the submodule.

path: pathlib.Path#

‘Path(…)’

Submodule path.

name: str = <Multiline-String>#

Submodule name.

__post_init__()#

Handle byte strings reported by some submodule sources, like dulwich.

notes_pipeline.stages.sync_settings.get_submodules() list[notes_pipeline.stages.sync_settings.Submodule]#

Get submodules.

notes_pipeline.stages.sync_settings.copy_settings(
settings: list[pathlib.Path],
source_dir: pathlib.Path,
dest_dir: pathlib.Path,
)#

Copy settings from one vault to another.