fsnotes icon indicating copy to clipboard operation
fsnotes copied to clipboard

Use Git commit time as file modification time

Open tewe opened this issue 1 year ago • 4 comments

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

tewe avatar Jul 23 '24 01:07 tewe

git does not store metadata

glushchenko avatar Jul 23 '24 17:07 glushchenko

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 avatar Jul 23 '24 22:07 tewe

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

glushchenko avatar Aug 15 '24 18:08 glushchenko

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.

tewe avatar Aug 16 '24 08:08 tewe