Skip to content

Feature: Added Git columns to the details layout #12485

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

Merged
merged 72 commits into from
Jun 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
bbfeadb
Add comments
0x5bfa May 29, 2023
a835f3e
Add git uncommitted changes status column
0x5bfa May 30, 2023
0b88143
Update
0x5bfa May 30, 2023
5856cc1
Merge branch 'main' into 5bfa/implement-gitcolumns
0x5bfa May 30, 2023
ca811db
Update
0x5bfa May 30, 2023
c6e08e0
Add more columns and get Git info all at once
0x5bfa May 31, 2023
7e745a7
Fix an issue
0x5bfa May 31, 2023
c6d0698
Update
0x5bfa May 31, 2023
d3bb483
Fix
0x5bfa May 31, 2023
3621c82
Update
0x5bfa May 31, 2023
c15aa03
Update
0x5bfa Jun 1, 2023
01b0191
Merge branch 'main' into 5bfa/implement-gitcolumns
0x5bfa Jun 1, 2023
69e0c64
Update
0x5bfa Jun 1, 2023
15774c2
Merge branch '5bfa/implement-gitcolumns' of https://github.com/0x5bfa…
0x5bfa Jun 1, 2023
4e071ca
Update
0x5bfa Jun 2, 2023
43ea5b8
[WIP]
gave92 Jun 2, 2023
fdb4674
Load git as extended properties
gave92 Jun 2, 2023
d9d3be6
Merge pull request #1 from gave92/rev_gitcol
0x5bfa Jun 2, 2023
4d60393
Hide/show git columns
gave92 Jun 2, 2023
eaea7cd
Update
0x5bfa Jun 2, 2023
a2103c0
Revert extra changes
gave92 Jun 2, 2023
a8e0f53
Merge commit 'refs/pull/12485/head' of https://github.com/files-commu…
gave92 Jun 2, 2023
a8e76d8
Update
0x5bfa Jun 2, 2023
a1f14f4
Merge pull request #2 from gave92/rev_gitcol
0x5bfa Jun 2, 2023
318c2ca
Update src/Files.App/Strings/en-US/Resources.resw
0x5bfa Jun 2, 2023
d971080
Update src/Files.App/Strings/en-US/Resources.resw
0x5bfa Jun 2, 2023
3ce3632
Update src/Files.App/Strings/en-US/Resources.resw
0x5bfa Jun 2, 2023
8f29219
Merge branch '5bfa/implement-gitcolumns' of https://github.com/0x5bfa…
0x5bfa Jun 2, 2023
64ea15a
Revert unrelated changes
0x5bfa Jun 2, 2023
771cb41
again
0x5bfa Jun 2, 2023
732b59a
Again
0x5bfa Jun 2, 2023
13ffac3
Fix git column prefs
gave92 Jun 2, 2023
1ac2039
Fix columns hidden status not sticking
gave92 Jun 2, 2023
511ba27
Merge commit 'refs/pull/12485/head' of https://github.com/files-commu…
gave92 Jun 2, 2023
c4fe6b8
Merge pull request #3 from gave92/rev_gitcol
0x5bfa Jun 4, 2023
f81d2a6
requested changes
0x5bfa Jun 4, 2023
d997bc3
Rename commit author column
yaira2 Jun 4, 2023
6a07653
Rename commit date column
yaira2 Jun 4, 2023
fb39eb2
Update Resources.resw
yaira2 Jun 4, 2023
40c30ef
Requested changes
0x5bfa Jun 5, 2023
62c2ca1
Update
0x5bfa Jun 5, 2023
c3b8500
Fix formatting
0x5bfa Jun 5, 2023
65b9552
Requested changes
0x5bfa Jun 5, 2023
126268b
Update src/Files.Backend/Services/Settings/IFoldersSettingsService.cs
0x5bfa Jun 6, 2023
9fbecd9
Update src/Files.Backend/Services/Settings/IFoldersSettingsService.cs
0x5bfa Jun 6, 2023
b9b5c26
Update src/Files.Backend/Services/Settings/IFoldersSettingsService.cs
0x5bfa Jun 6, 2023
b14368d
Update src/Files.Backend/Services/Settings/IFoldersSettingsService.cs
0x5bfa Jun 6, 2023
328957b
Update src/Files.Backend/Services/Settings/IFoldersSettingsService.cs
0x5bfa Jun 6, 2023
6e90493
Update src/Files.Backend/Services/Settings/IFoldersSettingsService.cs
0x5bfa Jun 6, 2023
b9e2f76
Update
0x5bfa Jun 6, 2023
b738140
Merge branch '5bfa/implement-gitcolumns' of https://github.com/0x5bfa…
0x5bfa Jun 6, 2023
2f31d70
Fix
0x5bfa Jun 6, 2023
c8188f9
Cleanup & add type check
0x5bfa Jun 6, 2023
6df6d6c
Revert "Cleanup & add type check"
0x5bfa Jun 6, 2023
6146b5f
Update
0x5bfa Jun 7, 2023
668dbbb
Merge branch 'main' into 5bfa/implement-gitcolumns
yaira2 Jun 8, 2023
8ad9e3e
Update
0x5bfa Jun 8, 2023
433135a
Merge branch '5bfa/implement-gitcolumns' of https://github.com/0x5bfa…
0x5bfa Jun 8, 2023
1d49454
Fix
0x5bfa Jun 8, 2023
18ad74a
Update
0x5bfa Jun 8, 2023
5b1412f
Update naming
0x5bfa Jun 8, 2023
8c1c2fb
Update
0x5bfa Jun 9, 2023
1d7b76e
Update
0x5bfa Jun 11, 2023
54602aa
Update
0x5bfa Jun 11, 2023
196bac2
Update
0x5bfa Jun 11, 2023
aa10b50
Merge branch '5bfa/implement-gitcolumns' of https://github.com/0x5bfa…
0x5bfa Jun 11, 2023
6452c93
Merge branch 'main' into 5bfa/implement-gitcolumns
yaira2 Jun 12, 2023
33804ab
Merge branch 'main' into 5bfa/implement-gitcolumns
yaira2 Jun 13, 2023
29ecac7
Update src/Files.App/Data/Models/ItemViewModel.cs
0x5bfa Jun 13, 2023
0452baa
Update
0x5bfa Jun 13, 2023
c871fc4
Merge branch '5bfa/implement-gitcolumns' of https://github.com/0x5bfa…
0x5bfa Jun 13, 2023
f025303
Merge branch 'main' into 5bfa/implement-gitcolumns
yaira2 Jun 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions src/Files.App/Data/Models/ColumnViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public bool IsHidden
[LiteDB.BsonIgnore]
public double MaxLength
{
get => UserCollapsed ? 0 : NormalMaxLength;
get => UserCollapsed || IsHidden ? 0 : NormalMaxLength;
}

private double normalMaxLength = 800;
Expand All @@ -44,10 +44,12 @@ public double NormalMinLength
}

[LiteDB.BsonIgnore]
public double MinLength => UserCollapsed ? 0 : NormalMinLength;
public double MinLength
=> UserCollapsed || IsHidden ? 0 : NormalMinLength;

[LiteDB.BsonIgnore]
public Visibility Visibility => UserCollapsed ? Visibility.Collapsed : Visibility.Visible;
public Visibility Visibility
=> UserCollapsed || IsHidden ? Visibility.Collapsed : Visibility.Visible;

private bool userCollapsed;

Expand All @@ -64,15 +66,15 @@ public bool UserCollapsed
[LiteDB.BsonIgnore]
public GridLength Length
{
get => UserCollapsed ? new GridLength(0) : UserLength;
get => UserCollapsed || IsHidden ? new GridLength(0) : UserLength;
}

private const int gridSplitterWidth = 12;

[LiteDB.BsonIgnore]
public GridLength LengthIncludingGridSplitter
{
get => UserCollapsed
get => UserCollapsed || IsHidden
? new(0)
: new(UserLength.Value + (IsResizeable ? gridSplitterWidth : 0));
}
Expand Down Expand Up @@ -104,17 +106,13 @@ public double UserLengthPixels

public void Hide()
{
UserCollapsed = true;
IsHidden = true;

UpdateVisibility();
}

public void Show()
{
UserCollapsed = false;
IsHidden = false;

UpdateVisibility();
}

Expand Down
46 changes: 39 additions & 7 deletions src/Files.App/Data/Models/ColumnsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,48 @@ public class ColumnsViewModel : ObservableObject
UserLength = new GridLength(24, GridUnitType.Pixel),
IsResizeable = false,
};

[LiteDB.BsonIgnore]
public ColumnViewModel IconColumn
{
get => iconColumn;
set => SetProperty(ref iconColumn, value);
}

private ColumnViewModel _GitStatusColumn = new();
public ColumnViewModel GitStatusColumn
{
get => _GitStatusColumn;
set => SetProperty(ref _GitStatusColumn, value);
}

private ColumnViewModel _GitLastCommitDateColumn = new();
public ColumnViewModel GitLastCommitDateColumn
{
get => _GitLastCommitDateColumn;
set => SetProperty(ref _GitLastCommitDateColumn, value);
}

private ColumnViewModel _GitLastCommitMessageColumn = new();
public ColumnViewModel GitLastCommitMessageColumn
{
get => _GitLastCommitMessageColumn;
set => SetProperty(ref _GitLastCommitMessageColumn, value);
}

private ColumnViewModel _GitCommitAuthorColumn = new();
public ColumnViewModel GitCommitAuthorColumn
{
get => _GitCommitAuthorColumn;
set => SetProperty(ref _GitCommitAuthorColumn, value);
}

private ColumnViewModel _GitLastCommitShaColumn = new();
public ColumnViewModel GitLastCommitShaColumn
{
get => _GitLastCommitShaColumn;
set => SetProperty(ref _GitLastCommitShaColumn, value);
}

private ColumnViewModel tagColumn = new();
public ColumnViewModel TagColumn
{
Expand All @@ -31,7 +65,6 @@ public ColumnViewModel TagColumn
{
NormalMaxLength = 1000d
};

public ColumnViewModel NameColumn
{
get => nameColumn;
Expand All @@ -43,7 +76,6 @@ public ColumnViewModel NameColumn
UserLength = new GridLength(50),
NormalMaxLength = 80,
};

public ColumnViewModel StatusColumn
{
get => statusColumn;
Expand All @@ -61,7 +93,6 @@ public ColumnViewModel DateModifiedColumn
{
NormalMaxLength = 500,
};

public ColumnViewModel OriginalPathColumn
{
get => originalPathColumn;
Expand All @@ -86,7 +117,6 @@ public ColumnViewModel DateDeletedColumn
{
UserCollapsed = true
};

public ColumnViewModel DateCreatedColumn
{
get => dateCreatedColumn;
Expand All @@ -105,11 +135,13 @@ public ColumnViewModel SizeColumn
IconColumn.Length.Value +
TagColumn.Length.Value +
NameColumn.Length.Value +
DateModifiedColumn.Length.Value + OriginalPathColumn.Length.Value +
DateModifiedColumn.Length.Value +
OriginalPathColumn.Length.Value +
ItemTypeColumn.Length.Value +
DateDeletedColumn.Length.Value +
DateCreatedColumn.Length.Value +
SizeColumn.Length.Value + StatusColumn.Length.Value;
SizeColumn.Length.Value +
StatusColumn.Length.Value;

public void SetDesiredSize(double width)
{
Expand Down
20 changes: 20 additions & 0 deletions src/Files.App/Data/Models/FolderSettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,11 @@ public static void SetLayoutPreferencesForPath(string folderPath, LayoutPreferen
userSettingsService.FoldersSettingsService.ShowTypeColumn = !prefs.ColumnsViewModel.ItemTypeColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowSizeColumn = !prefs.ColumnsViewModel.SizeColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowFileTagColumn = !prefs.ColumnsViewModel.TagColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowGitStatusColumn = !prefs.ColumnsViewModel.GitStatusColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowGitLastCommitDateColumn = !prefs.ColumnsViewModel.GitLastCommitDateColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowGitLastCommitMessageColumn = !prefs.ColumnsViewModel.GitLastCommitMessageColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowGitCommitAuthorColumn = !prefs.ColumnsViewModel.GitCommitAuthorColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowGitLastCommitShaColumn = !prefs.ColumnsViewModel.GitLastCommitShaColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowDateDeletedColumn = !prefs.ColumnsViewModel.DateDeletedColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowOriginalPathColumn = !prefs.ColumnsViewModel.OriginalPathColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowSyncStatusColumn = !prefs.ColumnsViewModel.StatusColumn.UserCollapsed;
Expand All @@ -370,6 +375,11 @@ public static void SetLayoutPreferencesForPath(string folderPath, LayoutPreferen
userSettingsService.FoldersSettingsService.TypeColumnWidth = prefs.ColumnsViewModel.ItemTypeColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.SizeColumnWidth = prefs.ColumnsViewModel.SizeColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.TagColumnWidth = prefs.ColumnsViewModel.TagColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.GitStatusColumnWidth = prefs.ColumnsViewModel.GitStatusColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.GitLastCommitDateColumnWidth = prefs.ColumnsViewModel.GitLastCommitDateColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.GitLastCommitMessageColumnWidth = prefs.ColumnsViewModel.GitLastCommitMessageColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.GitCommitAuthorColumnWidth = prefs.ColumnsViewModel.GitCommitAuthorColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.GitLastCommitShaColumnWidth = prefs.ColumnsViewModel.GitLastCommitShaColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.DateDeletedColumnWidth = prefs.ColumnsViewModel.DateDeletedColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.OriginalPathColumnWidth = prefs.ColumnsViewModel.OriginalPathColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.SyncStatusColumnWidth = prefs.ColumnsViewModel.StatusColumn.UserLengthPixels;
Expand Down Expand Up @@ -573,6 +583,11 @@ public void SetDefaultLayoutPreferences(ColumnsViewModel columns)
userSettingsService.FoldersSettingsService.ShowTypeColumn = !columns.ItemTypeColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowSizeColumn = !columns.SizeColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowFileTagColumn = !columns.TagColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowGitStatusColumn = !columns.GitStatusColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowGitLastCommitDateColumn = !columns.GitLastCommitDateColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowGitLastCommitMessageColumn = !columns.GitLastCommitMessageColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowGitCommitAuthorColumn = !columns.GitCommitAuthorColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowGitLastCommitShaColumn = !columns.GitLastCommitShaColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowDateDeletedColumn = !columns.DateDeletedColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowOriginalPathColumn = !columns.OriginalPathColumn.UserCollapsed;
userSettingsService.FoldersSettingsService.ShowSyncStatusColumn = !columns.StatusColumn.UserCollapsed;
Expand All @@ -583,6 +598,11 @@ public void SetDefaultLayoutPreferences(ColumnsViewModel columns)
userSettingsService.FoldersSettingsService.TypeColumnWidth = columns.ItemTypeColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.SizeColumnWidth = columns.SizeColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.TagColumnWidth = columns.TagColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.GitStatusColumnWidth = columns.GitStatusColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.GitLastCommitDateColumnWidth = columns.GitLastCommitDateColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.GitLastCommitMessageColumnWidth = columns.GitLastCommitMessageColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.GitCommitAuthorColumnWidth = columns.GitCommitAuthorColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.GitLastCommitShaColumnWidth = columns.GitLastCommitShaColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.DateDeletedColumnWidth = columns.DateDeletedColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.OriginalPathColumnWidth = columns.OriginalPathColumn.UserLengthPixels;
userSettingsService.FoldersSettingsService.SyncStatusColumnWidth = columns.StatusColumn.UserLengthPixels;
Expand Down
36 changes: 36 additions & 0 deletions src/Files.App/Data/Models/GitItemModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using LibGit2Sharp;

namespace Files.App.Data.Models
{
/// <summary>
/// Represents a model for Git items
/// </summary>
internal class GitItemModel
{
/// <summary>
/// Gets or initializes file change kind
/// </summary>
/// <remarks>
/// This is often showed as A(Add), D(Delete), M(Modified), U(Untracked) in VS Code.
/// </remarks>
public ChangeKind Status { get; init; }

/// <summary>
/// Gets or initializes file change kind humanized string
/// </summary>
/// <remarks>
/// This is often showed as A(Add), D(Delete), M(Modified), U(Untracked) in VS Code.
/// </remarks>
public string? StatusHumanized { get; init; }

/// <summary>
/// Gets or initializes file last commit information including author, committed date, and SHA.
/// </summary>
public Commit? LastCommit { get; init; }

/// <summary>
/// Gets or initializes file path
/// </summary>
public string? Path { get; init; }
}
}
49 changes: 38 additions & 11 deletions src/Files.App/Data/Models/ItemViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ public void UpdateGroupOptions()
FilesAndFolders.GetExtendedGroupHeaderInfo = groupInfoSelector.Item2;
}

public Dictionary<string, BitmapImage> DefaultIcons = new ();
public Dictionary<string, BitmapImage> DefaultIcons = new();

private uint currentDefaultIconSize = 0;

Expand Down Expand Up @@ -1193,6 +1193,31 @@ await SafetyExtensions.IgnoreExceptions(() =>
gp.InitializeExtendedGroupHeaderInfoAsync();
}));
}

if (item.IsGitItem &&
GitHelpers.IsRepositoryEx(item.ItemPath, out var repoPath) &&
!string.IsNullOrEmpty(repoPath))
{
cts.Token.ThrowIfCancellationRequested();
await SafetyExtensions.IgnoreExceptions(() =>
{
var repo = new LibGit2Sharp.Repository(repoPath);
GitItemModel gitItemModel = GitHelpers.GetGitInformationForItem(repo, item.ItemPath);

return dispatcherQueue.EnqueueOrInvokeAsync(() =>
{
var gitItem = item.AsGitItem;
gitItem.UnmergedGitStatusLabel = gitItemModel.StatusHumanized;
gitItem.GitLastCommitDate = gitItemModel.LastCommit?.Author.When;
gitItem.GitLastCommitMessage = gitItemModel.LastCommit?.MessageShort;
gitItem.GitLastCommitAuthor = gitItemModel.LastCommit?.Author.Name;
gitItem.GitLastCommitSha = gitItemModel.LastCommit?.Sha.Substring(0, 7);

repo.Dispose();
},
Microsoft.UI.Dispatching.DispatcherQueuePriority.Low);
});
}
}
}, cts.Token);
}
Expand Down Expand Up @@ -1363,8 +1388,14 @@ private async Task RapidAddItemsToCollection(string? path, LibraryItem? library
case 0:
currentStorageFolder ??= await FilesystemTasks.Wrap(() => StorageFileExtensions.DangerousGetFolderWithPathFromPathAsync(path));
var syncStatus = await CheckCloudDriveSyncStatusAsync(currentStorageFolder?.Item);
PageTypeUpdated?.Invoke(this, new PageTypeUpdatedEventArgs() { IsTypeCloudDrive = syncStatus != CloudDriveSyncStatus.NotSynced && syncStatus != CloudDriveSyncStatus.Unknown });
PageTypeUpdated?.Invoke(this, new PageTypeUpdatedEventArgs()
{
IsTypeCloudDrive = syncStatus != CloudDriveSyncStatus.NotSynced && syncStatus != CloudDriveSyncStatus.Unknown,
IsTypeGitRepository = GitDirectory is not null
});
WatchForDirectoryChanges(path, syncStatus);
if (GitDirectory is not null)
WatchForGitChanges();
break;

// Enumerated with StorageFolder
Expand Down Expand Up @@ -1936,9 +1967,6 @@ private void WatchForDirectoryChanges(string path, CloudDriveSyncStatus syncStat
Debug.WriteLine("aWatcherAction done: {0}", rand);
});

if (GitDirectory is not null)
WatchForGitChanges(hasSyncStatus);

watcherCTS.Token.Register(() =>
{
if (aWatcherAction is not null)
Expand All @@ -1956,7 +1984,7 @@ private void WatchForDirectoryChanges(string path, CloudDriveSyncStatus syncStat
});
}

private void WatchForGitChanges(bool hasSyncStatus)
private void WatchForGitChanges()
{
var hWatchDir = NativeFileOperationsHelper.CreateFileFromApp(
GitDirectory!,
Expand All @@ -1979,9 +2007,6 @@ private void WatchForGitChanges(bool hasSyncStatus)
var rand = Guid.NewGuid();
var notifyFilters = FILE_NOTIFY_CHANGE_DIR_NAME | FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_SIZE | FILE_NOTIFY_CHANGE_CREATION;

if (hasSyncStatus)
notifyFilters |= FILE_NOTIFY_CHANGE_ATTRIBUTES;

var overlapped = new OVERLAPPED();
overlapped.hEvent = CreateEvent(IntPtr.Zero, false, false, null);
const uint INFINITE = 0xFFFFFFFF;
Expand Down Expand Up @@ -2255,9 +2280,9 @@ private async Task AddFileOrFolderAsync(ListedItem? item)

// FILE_ATTRIBUTE_DIRECTORY
if ((findData.dwFileAttributes & 0x10) > 0)
listedItem = await Win32StorageEnumerator.GetFolder(findData, Directory.GetParent(fileOrFolderPath).FullName, addFilesCTS.Token);
listedItem = await Win32StorageEnumerator.GetFolder(findData, Directory.GetParent(fileOrFolderPath).FullName, GitDirectory is not null, addFilesCTS.Token);
else
listedItem = await Win32StorageEnumerator.GetFile(findData, Directory.GetParent(fileOrFolderPath).FullName, addFilesCTS.Token);
listedItem = await Win32StorageEnumerator.GetFile(findData, Directory.GetParent(fileOrFolderPath).FullName, GitDirectory is not null, addFilesCTS.Token);

await AddFileOrFolderAsync(listedItem);

Expand Down Expand Up @@ -2446,6 +2471,8 @@ public class PageTypeUpdatedEventArgs
public bool IsTypeCloudDrive { get; set; }

public bool IsTypeRecycleBin { get; set; }

public bool IsTypeGitRepository { get; set; }
}

public class WorkingDirectoryModifiedEventArgs : EventArgs
Expand Down
4 changes: 1 addition & 3 deletions src/Files.App/Files.App.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0-windows10.0.22621.0</TargetFramework>
<OutputType>WinExe</OutputType>
Expand All @@ -25,8 +25,6 @@
<Configurations>Debug;Release;Stable;Preview;Store</Configurations>
<TieredCompilation>true</TieredCompilation>
<TieredPgo>true</TieredPgo>
<!--<ImplicitUsings>disable</ImplicitUsings>
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>-->
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DefineConstants>TRACE;DEBUG;NETFX_CORE;DISABLE_XAML_GENERATED_MAIN</DefineConstants>
Expand Down
Loading