src/SyncTool.Git/main/RepositoryAccess/Transactions/CachingGitTransaction.cs
/// <summary>
/// Removes all local branches that are not tracking any remote branch
/// </summary>
Removes all local branches that are not tracking any remote branch
Removes all local branches that are not tracking any remote branch
private void RemoveRedundantBranches()
        {
            using (var repository = new Repository(this.LocalPath))
            {
                foreach (var localBranch in repository.GetLocalBranches().Where(b => !b.IsTracking))
                {
                    repository.Branches.Remove(localBranch);
                }
            }
        }
private void RemoveRedundantBranches ( ) { using ( var repository = new Repository ( this . LocalPath ) ) { foreach ( var localBranch in repository . GetLocalBranches ( ) . Where ( b => ! b . IsTracking ) ) { repository . Branches . Remove ( localBranch ) ; } } }
Removes all local branches that are not tracking any remote branch
Removes all local branches that are not tracking any remote branch