diff --git a/LibGit2Sharp/Branch.cs b/LibGit2Sharp/Branch.cs index 6c4d92acf..e05bddecb 100644 --- a/LibGit2Sharp/Branch.cs +++ b/LibGit2Sharp/Branch.cs @@ -94,30 +94,6 @@ public virtual bool IsTracking get { return TrackedBranch != null; } } - /// - /// Gets the number of commits that exist in this local branch but don't exist in the tracked one. - /// - /// This property will return null if there is no tracked branch linked to this local branch. - /// - /// - [Obsolete("This property will be removed in the next release. Please use TrackingDetails.AheadBy instead.")] - public virtual int? AheadBy - { - get { return TrackingDetails.AheadBy; } - } - - /// - /// Gets the number of commits that exist in the tracked branch but don't exist in this local one. - /// - /// This property will return null if there is no tracked branch linked to this local branch. - /// - /// - [Obsolete("This property will be removed in the next release. Please use TrackingDetails.BehindBy instead.")] - public virtual int? BehindBy - { - get { return TrackingDetails.BehindBy; } - } - /// /// Gets additional information about the tracked branch. /// diff --git a/LibGit2Sharp/BranchCollection.cs b/LibGit2Sharp/BranchCollection.cs index 01fb0a011..8a91b1b36 100644 --- a/LibGit2Sharp/BranchCollection.cs +++ b/LibGit2Sharp/BranchCollection.cs @@ -124,19 +124,6 @@ public virtual Branch Add(string name, Commit commit, bool allowOverwrite = fals return this[ShortToLocalName(name)]; } - /// - /// Create a new local branch with the specified name - /// - /// The name of the branch. - /// Revparse spec for the target commit. - /// True to allow silent overwriting a potentially existing branch, false otherwise. - /// - [Obsolete("This method will be removed in the next release. Please use Add() instead.")] - public virtual Branch Create(string name, string committish, bool allowOverwrite = false) - { - return this.Add(name, committish, allowOverwrite); - } - /// /// Deletes the specified branch. /// @@ -151,17 +138,6 @@ public virtual void Remove(Branch branch) } } - /// - /// Deletes the branch with the specified name. - /// - /// The name of the branch to delete. - /// True if the provided is the name of a remote branch, false otherwise. - [Obsolete("This method will be removed in the next release. Please use Remove() instead.")] - public virtual void Delete(string name, bool isRemote = false) - { - this.Remove(name, isRemote); - } - /// /// Renames an existing local branch with a new name. /// diff --git a/LibGit2Sharp/Commit.cs b/LibGit2Sharp/Commit.cs index 4b7fbdaed..62f47d62a 100644 --- a/LibGit2Sharp/Commit.cs +++ b/LibGit2Sharp/Commit.cs @@ -95,12 +95,6 @@ public virtual TreeEntry this[string relativePath] /// public virtual IEnumerable Parents { get { return parents; } } - /// - /// Gets The count of parent commits. - /// - [Obsolete("This property will be removed in the next release. Please use Parents.Count() instead.")] - public virtual int ParentsCount { get { return Parents.Count(); } } - /// /// Gets the notes of this commit. /// diff --git a/LibGit2Sharp/CommitLog.cs b/LibGit2Sharp/CommitLog.cs index 149b4b278..9618cd859 100644 --- a/LibGit2Sharp/CommitLog.cs +++ b/LibGit2Sharp/CommitLog.cs @@ -145,22 +145,6 @@ public virtual Commit FindCommonAncestor(IEnumerable commits) return ret; } - /// - /// Stores the content of the as a new into the repository. - /// The tip of the will be used as the parent of this new Commit. - /// Once the commit is created, the will move forward to point at it. - /// - /// The description of why a change was made to the repository. - /// The of who made the change. - /// The of who added the change to the repository. - /// True to amend the current pointed at by , false otherwise. - /// The generated . - [Obsolete("This method will be removed in the next release. Please use Repository.Commit() instead.")] - public Commit Create(string message, Signature author, Signature committer, bool amendPreviousCommit) - { - return repo.Commit(message, author, committer, amendPreviousCommit); - } - private class CommitEnumerator : IEnumerator { private readonly Repository repo; diff --git a/LibGit2Sharp/Configuration.cs b/LibGit2Sharp/Configuration.cs index 04747d79e..eb2733901 100644 --- a/LibGit2Sharp/Configuration.cs +++ b/LibGit2Sharp/Configuration.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Globalization; using System.IO; -using System.Linq; using System.Runtime.InteropServices; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; @@ -13,7 +12,6 @@ namespace LibGit2Sharp /// Provides access to configuration variables for a repository. /// public class Configuration : IDisposable, - IEnumerable, IEnumerable> { private readonly FilePath globalConfigPath; @@ -85,24 +83,6 @@ public Configuration(string globalConfigurationFileLocation = null, string xdgCo { } - /// - /// Determines if a Git configuration file specific to the current interactive user has been found. - /// - [Obsolete("This property will be removed in the next release. Please use HasConfig() instead.")] - public virtual bool HasGlobalConfig - { - get { return HasConfig(ConfigurationLevel.Global); } - } - - /// - /// Determines if a system-wide Git configuration file has been found. - /// - [Obsolete("This property will be removed in the next release. Please use HasConfig() instead.")] - public virtual bool HasSystemConfig - { - get { return HasConfig(ConfigurationLevel.System); } - } - /// /// Determines which configuration file has been found. /// @@ -287,12 +267,6 @@ private static Action GetUpdater(Act }; IEnumerator> IEnumerable>.GetEnumerator() - { - return BuildConfigEntries().Cast>().GetEnumerator(); - } - - [Obsolete("This method will be removed in the next release. Please use a different overload instead.")] - IEnumerator IEnumerable.GetEnumerator() { return BuildConfigEntries().GetEnumerator(); } @@ -302,15 +276,15 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() return ((IEnumerable>)this).GetEnumerator(); } - private ICollection BuildConfigEntries() + private IEnumerable> BuildConfigEntries() { return Proxy.git_config_foreach(configHandle, entryPtr => { var entry = (GitConfigEntry)Marshal.PtrToStructure(entryPtr, typeof(GitConfigEntry)); - return new ConfigurationEntry(Utf8Marshaler.FromNative(entry.namePtr), - Utf8Marshaler.FromNative(entry.valuePtr), - (ConfigurationLevel)entry.level); + return new ConfigurationEntry(Utf8Marshaler.FromNative(entry.namePtr), + Utf8Marshaler.FromNative(entry.valuePtr), + (ConfigurationLevel)entry.level); }); } } diff --git a/LibGit2Sharp/ConfigurationEntry.cs b/LibGit2Sharp/ConfigurationEntry.cs index 63ab9d2d9..129dcc6b7 100644 --- a/LibGit2Sharp/ConfigurationEntry.cs +++ b/LibGit2Sharp/ConfigurationEntry.cs @@ -1,5 +1,4 @@ -using System; -using System.Diagnostics; +using System.Diagnostics; using System.Globalization; namespace LibGit2Sharp @@ -54,26 +53,4 @@ private string DebuggerDisplay } } } - - /// - /// Enumerated config option - /// - [Obsolete("This class will be removed in the next release. Please use ConfigurationEntry instead.")] - public class ConfigurationEntry : ConfigurationEntry - { - /// - /// Initializes a new instance of the class with a given key and value - /// - /// The option name - /// The option value - /// The origin store - internal ConfigurationEntry(string key, string value, ConfigurationLevel level) : base(key, value, level) - { } - - /// - /// Needed for mocking purposes. - /// - protected ConfigurationEntry() - { } - } } diff --git a/LibGit2Sharp/ConfigurationExtensions.cs b/LibGit2Sharp/ConfigurationExtensions.cs index 43c3900fe..e9aed40a8 100644 --- a/LibGit2Sharp/ConfigurationExtensions.cs +++ b/LibGit2Sharp/ConfigurationExtensions.cs @@ -1,4 +1,3 @@ -using System; using LibGit2Sharp.Core; namespace LibGit2Sharp @@ -8,149 +7,6 @@ namespace LibGit2Sharp /// public static class ConfigurationExtensions { - /// - /// Delete a configuration variable (key and value). - /// - /// The configuration being worked with. - /// The key to delete. - /// The configuration file which should be considered as the target of this operation - [Obsolete("This method will be removed in the next release. Please use Unset() instead.")] - public static void Delete(this Configuration config, string key, - ConfigurationLevel level = ConfigurationLevel.Local) - { - Ensure.ArgumentNotNullOrEmptyString(key, "key"); - - config.Unset(key, level); - } - - /// - /// Get a configuration value for a key. Keys are in the form 'section.name'. - /// - /// For example in order to get the value for this in a .git\config file: - /// - /// - /// [core] - /// bare = true - /// - /// - /// You would call: - /// - /// - /// bool isBare = repo.Config.Get<bool>("core.bare", false); - /// - /// - /// - /// The configuration value type - /// The configuration being worked with. - /// The key - /// The default value - /// The configuration value, or defaultValue if not set - [Obsolete("This method will be removed in the next release. Please use a different overload instead.")] - public static T Get(this Configuration config, string key, T defaultValue) - { - Ensure.ArgumentNotNullOrEmptyString(key, "key"); - - var val = config.Get(key); - - return val == null ? defaultValue : val.Value; - } - - /// - /// Get a configuration value for a key. Keys are in the form 'section.name'. - /// - /// For example in order to get the value for this in a .git\config file: - /// - /// - /// [core] - /// bare = true - /// - /// - /// You would call: - /// - /// - /// bool isBare = repo.Config.Get<bool>("core", "bare", false); - /// - /// - /// - /// The configuration value type - /// The configuration being worked with. - /// The first key part - /// The second key part - /// The default value - /// The configuration value, or defaultValue if not set - [Obsolete("This method will be removed in the next release. Please use a different overload instead.")] - public static T Get(this Configuration config, string firstKeyPart, string secondKeyPart, T defaultValue) - { - Ensure.ArgumentNotNullOrEmptyString(firstKeyPart, "firstKeyPart"); - Ensure.ArgumentNotNullOrEmptyString(secondKeyPart, "secondKeyPart"); - - return config.Get(new[] { firstKeyPart, secondKeyPart }, defaultValue); - } - - /// - /// Get a configuration value for the given key parts. - /// - /// For example in order to get the value for this in a .git\config file: - /// - /// - /// [difftool "kdiff3"] - /// path = c:/Program Files/KDiff3/kdiff3.exe - /// - /// - /// You would call: - /// - /// - /// string where = repo.Config.Get<string>("difftool", "kdiff3", "path", null); - /// - /// - /// - /// The configuration value type - /// The configuration being worked with. - /// The first key part - /// The second key part - /// The third key part - /// The default value - /// The configuration value, or defaultValue if not set - [Obsolete("This method will be removed in the next release. Please use a different overload instead.")] - public static T Get(this Configuration config, string firstKeyPart, string secondKeyPart, string thirdKeyPart, T defaultValue) - { - Ensure.ArgumentNotNullOrEmptyString(firstKeyPart, "firstKeyPart"); - Ensure.ArgumentNotNullOrEmptyString(secondKeyPart, "secondKeyPart"); - Ensure.ArgumentNotNullOrEmptyString(thirdKeyPart, "secondKeyPart"); - - return config.Get(new[] { firstKeyPart, secondKeyPart, thirdKeyPart }, defaultValue); - } - - /// - /// Get a configuration value for the given key parts. - /// - /// For example in order to get the value for this in a .git\config file: - /// - /// - /// [core] - /// bare = true - /// - /// - /// You would call: - /// - /// - /// bool isBare = repo.Config.Get<bool>(new []{ "core", "bare" }, false); - /// - /// - /// - /// The configuration value type - /// The configuration being worked with. - /// The key parts - /// The default value - /// The configuration value, or defaultValue if not set - [Obsolete("This method will be removed in the next release. Please use a different overload instead.")] - public static T Get(this Configuration config, string[] keyParts, T defaultValue) - { - Ensure.ArgumentNotNull(keyParts, "keyParts"); - - return config.Get(string.Join(".", keyParts), defaultValue); - } - /// /// Get a configuration value for the given key parts. /// diff --git a/LibGit2Sharp/Diff.cs b/LibGit2Sharp/Diff.cs index 41806da4a..288cd1930 100644 --- a/LibGit2Sharp/Diff.cs +++ b/LibGit2Sharp/Diff.cs @@ -122,36 +122,6 @@ private static IDictionary - /// Show changes between a and a selectable target. - /// - /// The to compare from. - /// The target to compare to. - /// The list of paths (either files or directories) that should be compared. - /// A containing the changes between the and the selected target. - [Obsolete("This method will be removed in the next release. Please use Compare(Tree, DiffTargets, IEnumerable) instead.")] - public virtual TreeChanges Compare(Tree oldTree, DiffTarget diffTarget, IEnumerable paths = null) - { - DiffTargets targets; - - switch (diffTarget) - { - case DiffTarget.Index: - targets = DiffTargets.Index; - break; - - case DiffTarget.WorkingDirectory: - targets = DiffTargets.WorkingDirectory; - break; - - default: - targets = DiffTargets.Index | DiffTargets.WorkingDirectory; - break; - } - - return Compare(oldTree, targets, paths); - } - /// /// Show changes between a and the Index, the Working Directory, or both. /// diff --git a/LibGit2Sharp/DiffTarget.cs b/LibGit2Sharp/DiffTarget.cs deleted file mode 100644 index e13911471..000000000 --- a/LibGit2Sharp/DiffTarget.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; - -namespace LibGit2Sharp -{ - /// - /// The target of a Tree based diff comparison. - /// - [Obsolete("This type will be removed in the next release. Please use DiffTargets instead.")] - public enum DiffTarget - { - /// - /// The working directory. - /// - WorkingDirectory, - - /// - /// The repository index. - /// - Index, - - /// - /// Both the working directory and the repository index. - /// - BothWorkingDirectoryAndIndex, - } -} diff --git a/LibGit2Sharp/ICommitLog.cs b/LibGit2Sharp/ICommitLog.cs index 1f1b17bee..652e6832a 100644 --- a/LibGit2Sharp/ICommitLog.cs +++ b/LibGit2Sharp/ICommitLog.cs @@ -6,14 +6,7 @@ namespace LibGit2Sharp /// /// A log of commits in a . /// - public interface ICommitLog : ICommitCollection - { } - - /// - /// A collection of commits in a . - /// - [Obsolete("This interface will be removed in the next release. Please use ICommitLog instead.")] - public interface ICommitCollection : IEnumerable + public interface ICommitLog : IEnumerable { /// /// Gets the current sorting strategy applied when enumerating the log. diff --git a/LibGit2Sharp/IQueryableCommitLog.cs b/LibGit2Sharp/IQueryableCommitLog.cs index dd5519bc3..292a0c3f8 100644 --- a/LibGit2Sharp/IQueryableCommitLog.cs +++ b/LibGit2Sharp/IQueryableCommitLog.cs @@ -1,19 +1,11 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; namespace LibGit2Sharp { /// /// A log of commits in a that can be filtered with queries. /// - public interface IQueryableCommitLog : ICommitLog, IQueryableCommitCollection - { } - - /// - /// A collection of commits in a that can be filtered with queries. - /// - [Obsolete("This interface will be removed in the next release. Please use IQueryableCommitLog instead.")] - public interface IQueryableCommitCollection : ICommitCollection + public interface IQueryableCommitLog : ICommitLog { /// /// Returns the list of commits of the repository matching the specified . @@ -22,19 +14,6 @@ public interface IQueryableCommitCollection : ICommitCollection /// A list of commits, ready to be enumerated. ICommitLog QueryBy(Filter filter); - /// - /// Stores the content of the as a new into the repository. - /// The tip of the will be used as the parent of this new Commit. - /// Once the commit is created, the will move forward to point at it. - /// - /// The description of why a change was made to the repository. - /// The of who made the change. - /// The of who added the change to the repository. - /// True to amend the current pointed at by , false otherwise. - /// The generated . - [Obsolete("This method will be removed in the next release. Please use Repository.Commit() instead.")] - Commit Create(string message, Signature author, Signature committer, bool amendPreviousCommit); - /// /// Find the best possible common ancestor given two s. /// diff --git a/LibGit2Sharp/IRepository.cs b/LibGit2Sharp/IRepository.cs index b6650fb97..12f3f01aa 100644 --- a/LibGit2Sharp/IRepository.cs +++ b/LibGit2Sharp/IRepository.cs @@ -30,12 +30,6 @@ public interface IRepository : IDisposable /// ReferenceCollection Refs { get; } - /// - /// Lookup and manage remotes in the repository. - /// - [Obsolete("This property will be removed in the next release. Please use Repository.Network.Remotes instead.")] - RemoteCollection Remotes { get; } - /// /// Lookup and enumerate commits in the repository. /// Iterating this collection directly starts walking from the HEAD. diff --git a/LibGit2Sharp/IndexEntry.cs b/LibGit2Sharp/IndexEntry.cs index 01991dcd2..7a9c51bb8 100644 --- a/LibGit2Sharp/IndexEntry.cs +++ b/LibGit2Sharp/IndexEntry.cs @@ -15,18 +15,6 @@ public class IndexEntry : IEquatable private static readonly LambdaEqualityHelper equalityHelper = new LambdaEqualityHelper(x => x.Path, x => x.Id, x => x.Mode, x => x.StageLevel); - private Func state; - - /// - /// State of the version of the pointed at by this , - /// compared against the known from the and the file in the working directory. - /// - [Obsolete("This method will be removed in the next release. Please use Repository.Index.RetrieveStatus(filePath) overload instead.")] - public virtual FileStatus State - { - get { return state(); } - } - /// /// Gets the relative path to the file within the working directory. /// @@ -62,7 +50,6 @@ internal static IndexEntry BuildFromPtr(Repository repo, IndexEntrySafeHandle ha { Path = path.Native, Id = entry.oid, - state = () => repo.Index.RetrieveStatus(path.Native), StageLevel = Proxy.git_index_entry_stage(handle), Mode = (Mode)entry.Mode }; diff --git a/LibGit2Sharp/LibGit2Sharp.csproj b/LibGit2Sharp/LibGit2Sharp.csproj index 90ad5cb71..2475cf699 100644 --- a/LibGit2Sharp/LibGit2Sharp.csproj +++ b/LibGit2Sharp/LibGit2Sharp.csproj @@ -150,7 +150,6 @@ - diff --git a/LibGit2Sharp/LibGit2SharpException.cs b/LibGit2Sharp/LibGit2SharpException.cs index c52553611..20b51e5f4 100644 --- a/LibGit2Sharp/LibGit2SharpException.cs +++ b/LibGit2Sharp/LibGit2SharpException.cs @@ -5,40 +5,6 @@ namespace LibGit2Sharp { - /// - /// The exception that is thrown when an error occurs during application execution. - /// - [Obsolete("This type will be removed in the next release. Please use LibGit2SharpException instead.")] - [Serializable] - public class LibGit2Exception : LibGit2SharpException - { - /// - /// Initializes a new instance of the class. - /// - public LibGit2Exception() - { - } - - /// - /// Initializes a new instance of the class with a specified error message. - /// - /// A message that describes the error. - public LibGit2Exception(string message) - : base(message) - { - } - - /// - /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. - /// - /// The error message that explains the reason for the exception. - /// The exception that is the cause of the current exception. If the parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception. - public LibGit2Exception(string message, Exception innerException) - : base(message, innerException) - { - } - } - /// /// The exception that is thrown when an error occurs during application execution. /// diff --git a/LibGit2Sharp/NoteCollection.cs b/LibGit2Sharp/NoteCollection.cs index 5341f0595..8352b8836 100644 --- a/LibGit2Sharp/NoteCollection.cs +++ b/LibGit2Sharp/NoteCollection.cs @@ -184,21 +184,6 @@ public virtual Note Add(ObjectId targetId, string message, Signature author, Sig return RetrieveNote(targetId, canonicalNamespace); } - /// - /// Creates or updates a on the specified object, and for the given namespace. - /// - /// The target , for which the note will be created. - /// The note message. - /// The author. - /// The committer. - /// The namespace on which the note will be created. It can be either a canonical namespace or an abbreviated namespace ('refs/notes/myNamespace' or just 'myNamespace'). - /// The note which was just saved. - [Obsolete("This method will be removed in the next release. Please use Add() instead.")] - public virtual Note Create(ObjectId targetId, string message, Signature author, Signature committer, string @namespace) - { - return Add(targetId, message, author, committer, @namespace); - } - /// /// Deletes the note on the specified object, and for the given namespace. /// @@ -218,19 +203,6 @@ public virtual void Remove(ObjectId targetId, Signature author, Signature commit Proxy.git_note_remove(repo.Handle, canonicalNamespace, author, committer, targetId); } - /// - /// Deletes the note on the specified object, and for the given namespace. - /// - /// The target , for which the note will be created. - /// The author. - /// The committer. - /// The namespace on which the note will be removed. It can be either a canonical namespace or an abbreviated namespace ('refs/notes/myNamespace' or just 'myNamespace'). - [Obsolete("This method will be removed in the next release. Please use Remove() instead.")] - public virtual void Delete(ObjectId targetId, Signature author, Signature committer, string @namespace) - { - Remove(targetId, author, committer, @namespace); - } - private string DebuggerDisplay { get diff --git a/LibGit2Sharp/ReferenceCollection.cs b/LibGit2Sharp/ReferenceCollection.cs index f86652d74..3c19e02b2 100644 --- a/LibGit2Sharp/ReferenceCollection.cs +++ b/LibGit2Sharp/ReferenceCollection.cs @@ -102,19 +102,6 @@ public virtual SymbolicReference Add(string name, Reference targetRef, bool allo } } - /// - /// Creates a direct or symbolic reference with the specified name and target - /// - /// The name of the reference to create. - /// The target which can be either a sha or the canonical name of another reference. - /// True to allow silent overwriting a potentially existing reference, false otherwise. - /// A new . - [Obsolete("This method will be removed in the next release. Please use Add() instead.")] - public virtual Reference Create(string name, string target, bool allowOverwrite = false) - { - return this.Add(name, target, allowOverwrite); - } - /// /// Remove a reference from the repository /// @@ -129,16 +116,6 @@ public virtual void Remove(Reference reference) } } - /// - /// Delete a reference with the specified name - /// - /// The name of the reference to delete. - [Obsolete("This method will be removed in the next release. Please use Remove() instead.")] - public virtual void Delete(string name) - { - this.Remove(name); - } - /// /// Rename an existing reference with a new name /// diff --git a/LibGit2Sharp/RemoteCollection.cs b/LibGit2Sharp/RemoteCollection.cs index 94da5eb62..bd5efb097 100644 --- a/LibGit2Sharp/RemoteCollection.cs +++ b/LibGit2Sharp/RemoteCollection.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections; +using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; @@ -89,21 +88,6 @@ public virtual Remote Add(string name, string url) } } - /// - /// Creates a with the specified name and for the repository at the specified location. - /// - /// A default fetch refspec will be added for this remote. - /// - /// - /// The name of the remote to create. - /// The location of the repository. - /// A new . - [Obsolete("This method will be removed in the next release. Please use Add() instead.")] - public virtual Remote Create(string name, string url) - { - return Add(name, url); - } - /// /// Creates a with the specified name and for the repository at the specified location. /// @@ -125,19 +109,6 @@ public virtual Remote Add(string name, string url, string fetchRefSpec) } } - /// - /// Creates a with the specified name and for the repository at the specified location. - /// - /// The name of the remote to create. - /// The location of the repository. - /// The refSpec to be used when fetching from this remote.. - /// A new . - [Obsolete("This method will be removed in the next release. Please use Add() instead.")] - public virtual Remote Create(string name, string url, string fetchRefSpec) - { - return Add(name, url); - } - /// /// Determines if the proposed remote name is well-formed. /// diff --git a/LibGit2Sharp/Repository.cs b/LibGit2Sharp/Repository.cs index 9f5748f90..1babaeadf 100644 --- a/LibGit2Sharp/Repository.cs +++ b/LibGit2Sharp/Repository.cs @@ -261,15 +261,6 @@ public ReferenceCollection Refs get { return refs; } } - /// - /// Lookup and manage remotes in the repository. - /// - [Obsolete("This property will be removed in the next release. Please use Repository.Network.Remotes instead.")] - public RemoteCollection Remotes - { - get { return Network.Remotes; } - } - /// /// Lookup and enumerate commits in the repository. /// Iterating this collection directly starts walking from the HEAD. diff --git a/LibGit2Sharp/RepositoryInformation.cs b/LibGit2Sharp/RepositoryInformation.cs index 8c055d83b..91934c0f9 100644 --- a/LibGit2Sharp/RepositoryInformation.cs +++ b/LibGit2Sharp/RepositoryInformation.cs @@ -46,18 +46,6 @@ internal RepositoryInformation(Repository repo, bool isBare) /// public virtual bool IsBare { get; private set; } - /// - /// Gets a value indicating whether this repository is empty. - /// - /// - /// true if this repository is empty; otherwise, false. - /// - [Obsolete("This method will be removed in the next release.")] - public virtual bool IsEmpty - { - get { return Proxy.git_repository_is_empty(repo.Handle); } - } - /// /// Indicates whether the Head points to an arbitrary commit instead of the tip of a local branch. /// diff --git a/LibGit2Sharp/TagCollection.cs b/LibGit2Sharp/TagCollection.cs index aac77a28f..5e08e5fbb 100644 --- a/LibGit2Sharp/TagCollection.cs +++ b/LibGit2Sharp/TagCollection.cs @@ -94,21 +94,6 @@ public virtual Tag Add(string name, GitObject target, Signature tagger, string m return this[name]; } - /// - /// Creates an annotated tag with the specified name. - /// - /// The name. - /// The target which can be sha or a canonical reference name. - /// The tagger. - /// The message. - /// True to allow silent overwriting a potentially existing tag, false otherwise. - /// - [Obsolete("This method will be removed in the next release. Please use Add() instead.")] - public virtual Tag Create(string name, string target, Signature tagger, string message, bool allowOverwrite = false) - { - return this.Add(name, target, tagger, message, allowOverwrite); - } - /// /// Creates a lightweight tag with the specified name. /// @@ -126,19 +111,6 @@ public virtual Tag Add(string name, GitObject target, bool allowOverwrite = fals return this[name]; } - /// - /// Creates a lightweight tag with the specified name. - /// - /// The name. - /// The target which can be sha or a canonical reference name. - /// True to allow silent overwriting a potentially existing tag, false otherwise. - /// - [Obsolete("This method will be removed in the next release. Please use Add() instead.")] - public virtual Tag Create(string name, string target, bool allowOverwrite = false) - { - return this.Add(name, target, allowOverwrite); - } - /// /// Deletes the tag with the specified name. /// @@ -150,16 +122,6 @@ public virtual void Remove(Tag tag) this.Remove(tag.CanonicalName); } - /// - /// Deletes the tag with the specified name. - /// - /// The short or canonical name of the tag to delete. - [Obsolete("This method will be removed in the next release. Please use Remove() instead.")] - public virtual void Delete(string name) - { - this.Remove(name); - } - private static string NormalizeToCanonicalName(string name) { Ensure.ArgumentNotNullOrEmptyString(name, "name");