Rename
This commit is contained in:
parent
8cdad79160
commit
c250e82998
1 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
import type { DocumentMetadata, RelativePath } from "src/persistence/database";
|
import type { DocumentMetadata, RelativePath } from "../persistence/database";
|
||||||
import { EMPTY_HASH } from "./hash";
|
import { EMPTY_HASH } from "./hash";
|
||||||
|
|
||||||
export function findMatchingFileBasedOnHash(
|
// TODO: make this smarter so that offline files can be renamed & edited at the same time
|
||||||
|
export function findMatchingFile(
|
||||||
contentHash: string,
|
contentHash: string,
|
||||||
candidates: [RelativePath, DocumentMetadata][]
|
candidates: [RelativePath, DocumentMetadata][]
|
||||||
): [RelativePath, DocumentMetadata] | undefined {
|
): [RelativePath, DocumentMetadata] | undefined {
|
||||||
Loading…
Add table
Add a link
Reference in a new issue