Skip to content

feat: fetch creation date from git #2163

@linusboyle

Description

@linusboyle

Is your feature request related to a problem? Please describe.
I'm not sure if it's a feature or bug, but the method in lastmod.ts does not fetch file creation date from git. Currently I have to manually supply a frontmatter to every note since the filesystem data is not reliable.

Describe the solution you'd like
This should be doable by using the following:

git log --follow --format=%ad -1 <file>

Describe alternatives you've considered
Maybe use a better library other than simple-git that support this feature.

Additional context
None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions