Skip to content

loadGitRenames

Reads every rename in the git history of the repository the vault lives in.

Import:

import { loadGitRenames } from '@mnaoumov/obsidian-lib/git-rename-history';

Signature:

function loadGitRenames(params: LoadGitRenamesParams): Promise<Map<string, GitRename>>

Parameters:

Parameter Type Description
params LoadGitRenamesParams The parameters.

Returns: Promise<Map<string, GitRename>> — Each old vault path to the path it ended up at; empty when the vault is not in a git repository or git cannot run, because missing evidence is not an error.


Links to this page: