diff options
author | Keith Dahlby <dahlbyk@gmail.com> | 2013-07-23 02:00:08 +0400 |
---|---|---|
committer | Keith Dahlby <kdahlby@jpcycles.com> | 2013-08-07 22:26:29 +0400 |
commit | 88b4c1b33adb49e6e4f8adbb7567970b683f380f (patch) | |
tree | f64a0e6c0af967a50e7d5c541635bf3265e86af6 /LibGit2Sharp/Repository.cs | |
parent | e02eef9408d5fa91b838fc8c99d0842dab7d5490 (diff) |
Marked non-extensible classes as sealed
Diffstat (limited to 'LibGit2Sharp/Repository.cs')
-rw-r--r-- | LibGit2Sharp/Repository.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LibGit2Sharp/Repository.cs b/LibGit2Sharp/Repository.cs index 6848ac60..9f68637a 100644 --- a/LibGit2Sharp/Repository.cs +++ b/LibGit2Sharp/Repository.cs @@ -17,7 +17,7 @@ namespace LibGit2Sharp /// A Repository is the primary interface into a git repository /// </summary> [DebuggerDisplay("{DebuggerDisplay,nq}")] - public class Repository : IRepository + public sealed class Repository : IRepository { private readonly bool isBare; private readonly BranchCollection branches; @@ -347,7 +347,7 @@ namespace LibGit2Sharp /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> - protected virtual void Dispose(bool disposing) + private void Dispose(bool disposing) { CleanupDisposableDependencies(); } @@ -960,7 +960,7 @@ namespace LibGit2Sharp /// <summary> /// Clean the working tree by removing files that are not under version control. /// </summary> - public virtual void RemoveUntrackedFiles() + public void RemoveUntrackedFiles() { var options = new GitCheckoutOpts { @@ -1036,7 +1036,7 @@ namespace LibGit2Sharp /// <summary> /// Gets the references to the tips that are currently being merged. /// </summary> - public virtual IEnumerable<MergeHead> MergeHeads + public IEnumerable<MergeHead> MergeHeads { get { |