src/RocketFilterApp.cs
/// <summary>
/// Writes the final branch refs.
/// </summary>
Writes the final branch refs.
Writes the final branch refs .
private void WriteBranchRefs()
        {
            var originalRef = repo.Refs[branchRef];
            if ((originalRef == null || BranchOverwrite) && lastCommit != null)
            {
                if (BranchOverwrite)
                {
                    repo.Refs.Remove(branchRef);
                }
                repo.Refs.Add(branchRef, lastCommit.Id);
                OutputWriter.WriteLine("Ref '{0}' was {1}", branchRef, originalRef != null && BranchOverwrite ? "overwritten" : "created");
            }
        }
private void WriteBranchRefs ( ) { var originalRef = repo . Refs [ branchRef ] ; if ( ( originalRef == null || BranchOverwrite ) && lastCommit != null ) { if ( BranchOverwrite ) { repo . Refs . Remove ( branchRef ) ; } repo . Refs . Add ( branchRef , lastCommit . Id ) ; OutputWriter . WriteLine ( " " , branchRef , originalRef != null && BranchOverwrite ? " " : " " ) ; } }
Writes the final branch refs.
Writes the final branch refs .