Provide option to sync timestamps from source
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- developer-experience, tooling
Research direction
Start by tracing index-import's handling of imported unit files and the source-file timestamps described in the issue. Determine how timestamp adjustment could preserve matching timestamps while making imported units older than the destination source, then verify that Xcode re-indexes files whose timestamps differ.
Written by the indexing model from the issue text.
Description
@nvanfleet asked on twitter whether index-import would work when syncing indexes between local checkouts, if they're not on the same git version.
This may work by adjusting the timestamp of output unit files. For example, consider importing MyFile.o-AAAAAAAAAAAA from checkout A into checkout B. If A/MyFile.swift and B/MyFile.swift have different modification times, then this index may be invalid, because A/MyFile.swift is in the future compared to B/MyFile.swift, or vice versa. To resolve this, after importing index-import could update the timestamp of the new unit (MyFile.o-BBBBBBBBBBBB) file to be be earlier than B/MyFile.swift. Xcode would hopefully see the index as being out of date, and re-index B/MyFile.swift. Source files that have matching timestamps would have their timestamp preserved.
- Dominant language
- C++
- Stars
- 335
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MobileNativeFoundation/index-import
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
MobileNativeFoundation/index-import#118 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in MobileNativeFoundation/index-import
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·