Add git metadata handling and integration tests for sync direction defaults

- Introduced new tests for git-based sync direction defaults, verifying the presence of git metadata and correct mappings of changed files to instance references.
- Enhanced the `compute_git_metadata` function to include canonical paths for repository roots.
- Added multiple test cases to ensure accurate behavior of `changedIds` and `scriptCommittedHashes` based on git status.
- Created a new project structure for testing, including various script and model files to facilitate comprehensive testing of git integration.

These changes improve the robustness of the git synchronization features and ensure reliable behavior in various scenarios.
This commit is contained in:
Joe 2026-02-17 20:46:14 -06:00
parent 7ba04f7f6a
commit 6c0098d839
12 changed files with 1707 additions and 1 deletions

View file

@ -0,0 +1,10 @@
{
"name": "git_sync_defaults",
"tree": {
"$className": "DataModel",
"ReplicatedStorage": {
"$className": "ReplicatedStorage",
"$path": "src"
}
}
}

View file

@ -0,0 +1 @@
print("Hello from client")

View file

@ -0,0 +1 @@
return "child"

View file

@ -0,0 +1,2 @@
local DirModule = {}
return DirModule

View file

@ -0,0 +1,2 @@
local ModuleA = {}
return ModuleA

View file

@ -0,0 +1 @@
print("Hello from server")

View file

@ -0,0 +1,6 @@
{
"className": "Part",
"properties": {
"Anchored": true
}
}