Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 352ec59

Browse files
Allowing guids to be populated correctly
Instead of a dictionary as in the Changes view. Here `guids` is used as a positional marker in the entries array. It should be populated with all entries regardless if they are assets or not.
1 parent 37adad3 commit 352ec59

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ProjectWindowInterface.cs

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -183,25 +183,9 @@ private static void OnStatusUpdate()
183183
guids.Clear();
184184
for (var index = 0; index < entries.Count; ++index)
185185
{
186-
var gitStatusEntry = entries[index];
187-
188-
var path = gitStatusEntry.ProjectPath;
189-
if (gitStatusEntry.Status == GitFileStatus.Ignored)
190-
{
191-
continue;
192-
}
193-
194-
if (!path.StartsWith("Assets", StringComparison.CurrentCultureIgnoreCase))
195-
{
196-
continue;
197-
}
198-
199-
if (path.EndsWith(".meta", StringComparison.CurrentCultureIgnoreCase))
200-
{
201-
continue;
202-
}
203-
186+
var path = entries[index].ProjectPath;
204187
var guid = AssetDatabase.AssetPathToGUID(path);
188+
205189
guids.Add(guid);
206190
}
207191

0 commit comments

Comments
 (0)