Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Git commit time as file modification time #1749

Open
tewe opened this issue Jul 23, 2024 · 4 comments
Open

Use Git commit time as file modification time #1749

tewe opened this issue Jul 23, 2024 · 4 comments
Assignees
Labels

Comments

@tewe
Copy link

tewe commented Jul 23, 2024

Description

I set up Git on iOS for the first time. There are files in there I haven't touched in 15 years. Yet they all show up as modified today. This is hiding valuable information from me, and the sort order doesn't match what I see on the Mac.

To Reproduce

  1. Fill out Git settings (for the first time)
  2. Sort View by Modification Date

Expected behavior

No response

FSNotes version

6.4.2

macOS/iOS version

iOS 17.5.1

Additional context

No response

@glushchenko
Copy link
Owner

git does not store metadata

@tewe
Copy link
Author

tewe commented Jul 23, 2024

git does not store metadata

You're right. It does store the time of each commit, and what files were changed. There are scripts to apply that to mtime after checkout. So please change this to a feature request. I know you can't currently work on those.

@tewe tewe changed the title Git clone on iOS forgets modification time Use Git commit time as file modification time Jul 23, 2024
@glushchenko
Copy link
Owner

Experimentally in the latest release an option for storing dates in TextBundle has been added. Perhaps it will be a solution for someone.

@tewe
Copy link
Author

tewe commented Aug 16, 2024

Due to other sync issues I cannot test this right now, but the commit suggests it works on iOS. Thanks!

It violates https://textbundle.org/spec/ because created and modified are top-level keys rather than in a co.fluder.fsnotes object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants