Permalink
Browse files

remove GitSharp project

  • Loading branch information...
1 parent eea74d9 commit f09376776aeed22b90259751098ed663a38e79d9 @yysun committed Jan 26, 2011
Showing with 542 additions and 22,883 deletions.
  1. +36 −0 GitSharp licence.txt
  2. +0 −234 GitSharp/AbstractObject.cs
  3. +0 −85 GitSharp/Author.cs
  4. +0 −175 GitSharp/Blob.cs
  5. +0 −288 GitSharp/Branch.cs
  6. +0 −167 GitSharp/Change.cs
  7. +0 −216 GitSharp/Commands/AbstractCommand.cs
  8. +0 −136 GitSharp/Commands/AbstractFetchCommand.cs
  9. +0 −201 GitSharp/Commands/AddCommand.cs
  10. +0 −264 GitSharp/Commands/AmCommand.cs
  11. +0 −232 GitSharp/Commands/AnnotateCommand.cs
  12. +0 −332 GitSharp/Commands/ApplyCommand.cs
  13. +0 −134 GitSharp/Commands/ArchiveCommand.cs
  14. +0 −289 GitSharp/Commands/BlameCommand.cs
  15. +0 −229 GitSharp/Commands/BranchCommand.cs
  16. +0 −116 GitSharp/Commands/CatFileCommand.cs
  17. +0 −257 GitSharp/Commands/CheckoutCommand.cs
  18. +0 −155 GitSharp/Commands/CheckoutIndexCommand.cs
  19. +0 −72 GitSharp/Commands/CherryCommand.cs
  20. +0 −138 GitSharp/Commands/CherryPickCommand.cs
  21. +0 −121 GitSharp/Commands/CleanCommand.cs
  22. +0 −330 GitSharp/Commands/CloneCommand.cs
  23. +0 −213 GitSharp/Commands/CommitCommand.cs
  24. +0 −72 GitSharp/Commands/CommitTreeCommand.cs
  25. +0 −229 GitSharp/Commands/ConfigCommand.cs
  26. +0 −76 GitSharp/Commands/CountObjectsCommand.cs
  27. +0 −167 GitSharp/Commands/DescribeCommand.cs
  28. +0 −602 GitSharp/Commands/DiffCommand.cs
  29. +0 −677 GitSharp/Commands/DiffFilesCommand.cs
  30. +0 −621 GitSharp/Commands/DiffIndexCommand.cs
  31. +0 −782 GitSharp/Commands/DiffTreeCommand.cs
  32. +0 −118 GitSharp/Commands/DifftoolCommand.cs
  33. +0 −184 GitSharp/Commands/FastExportCommand.cs
  34. +0 −177 GitSharp/Commands/FastImportCommand.cs
  35. +0 −88 GitSharp/Commands/FetchCommand.cs
  36. +0 −161 GitSharp/Commands/FetchPackCommand.cs
  37. +0 −251 GitSharp/Commands/FilterBranchCommand.cs
  38. +0 −108 GitSharp/Commands/ForEachRefCommand.cs
  39. +0 −865 GitSharp/Commands/FormatPatchCommand.cs
  40. +0 −157 GitSharp/Commands/FsckCommand.cs
  41. +0 −126 GitSharp/Commands/GcCommand.cs
  42. +0 −361 GitSharp/Commands/GrepCommand.cs
  43. +0 −121 GitSharp/Commands/HashObjectCommand.cs
  44. +0 −158 GitSharp/Commands/IndexPackCommand.cs
  45. +0 −136 GitSharp/Commands/InitCommand.cs
  46. +0 −663 GitSharp/Commands/LogCommand.cs
  47. +0 −260 GitSharp/Commands/LsFilesCommand.cs
  48. +0 −97 GitSharp/Commands/LsRemoteCommand.cs
  49. +0 −149 GitSharp/Commands/LsTreeCommand.cs
  50. +0 −149 GitSharp/Commands/MailinfoCommand.cs
  51. +0 −99 GitSharp/Commands/MailsplitCommand.cs
  52. +0 −71 GitSharp/Commands/MergeBaseCommand.cs
  53. +0 −147 GitSharp/Commands/MergeCommand.cs
  54. +0 −94 GitSharp/Commands/MergeFileCommand.cs
  55. +0 −93 GitSharp/Commands/MergeIndexCommand.cs
  56. +0 −126 GitSharp/Commands/MergetoolCommand.cs
  57. +0 −93 GitSharp/Commands/MktreeCommand.cs
  58. +0 −103 GitSharp/Commands/MvCommand.cs
  59. +0 −124 GitSharp/Commands/NameRevCommand.cs
  60. +0 −85 GitSharp/Commands/NotesCommand.cs
  61. +0 −349 GitSharp/Commands/PackObjectsCommand.cs
  62. +0 −88 GitSharp/Commands/PackRedundantCommand.cs
  63. +0 −78 GitSharp/Commands/PackRefsCommand.cs
  64. +0 −64 GitSharp/Commands/PatchIdCommand.cs
  65. +0 −81 GitSharp/Commands/PeekRemoteCommand.cs
  66. +0 −89 GitSharp/Commands/PruneCommand.cs
  67. +0 −80 GitSharp/Commands/PrunePackedCommand.cs
  68. +0 −238 GitSharp/Commands/PushCommand.cs
  69. +0 −96 GitSharp/Commands/QuiltimportCommand.cs
  70. +0 −194 GitSharp/Commands/ReadTreeCommand.cs
  71. +0 −253 GitSharp/Commands/RebaseCommand.cs
  72. +0 −64 GitSharp/Commands/ReceivePackCommand.cs
  73. +0 −138 GitSharp/Commands/ReflogCommand.cs
  74. +0 −73 GitSharp/Commands/RelinkCommand.cs
  75. +0 −73 GitSharp/Commands/RemoteCommand.cs
  76. +0 −204 GitSharp/Commands/RepackCommand.cs
  77. +0 −91 GitSharp/Commands/ReplaceCommand.cs
  78. +0 −64 GitSharp/Commands/RequestPullCommand.cs
  79. +0 −126 GitSharp/Commands/ResetCommand.cs
  80. +0 −362 GitSharp/Commands/RevParseCommand.cs
  81. +0 −129 GitSharp/Commands/RevertCommand.cs
  82. +0 −118 GitSharp/Commands/RmCommand.cs
  83. +0 −129 GitSharp/Commands/SendPackCommand.cs
  84. +0 −108 GitSharp/Commands/ShortlogCommand.cs
  85. +0 −225 GitSharp/Commands/ShowBranchCommand.cs
  86. +0 −112 GitSharp/Commands/ShowCommand.cs
  87. +0 −127 GitSharp/Commands/ShowRefCommand.cs
  88. +0 −254 GitSharp/Commands/StatusCommand.cs
  89. +0 −72 GitSharp/Commands/StripspaceCommand.cs
  90. +0 −174 GitSharp/Commands/SubmoduleCommand.cs
  91. +0 −163 GitSharp/Commands/SvnCommand.cs
  92. +0 −82 GitSharp/Commands/SymbolicRefCommand.cs
  93. +0 −164 GitSharp/Commands/TagCommand.cs
  94. +0 −72 GitSharp/Commands/TarTreeCommand.cs
  95. +0 −64 GitSharp/Commands/UnpackFileCommand.cs
  96. +0 −101 GitSharp/Commands/UnpackObjectsCommand.cs
  97. +0 −294 GitSharp/Commands/UpdateIndexCommand.cs
  98. +0 −72 GitSharp/Commands/UpdateServerInfoCommand.cs
  99. +0 −64 GitSharp/Commands/UploadArchiveCommand.cs
  100. +0 −80 GitSharp/Commands/UploadPackCommand.cs
  101. +0 −74 GitSharp/Commands/VarCommand.cs
  102. +0 −82 GitSharp/Commands/VerifyPackCommand.cs
  103. +0 −64 GitSharp/Commands/VerifyTagCommand.cs
  104. +0 −152 GitSharp/Commands/WhatchangedCommand.cs
  105. +0 −3 GitSharp/Commands/_NotSupportedCommands.txt
  106. +0 −541 GitSharp/Commit.cs
  107. +0 −146 GitSharp/Config.cs
  108. +0 −360 GitSharp/Diff.cs
  109. +0 −219 GitSharp/Git.cs
  110. +0 −198 GitSharp/GitSharp.csproj
  111. +0 −53 GitSharp/IReferenceObject.cs
  112. +0 −53 GitSharp/ITreeNode.cs
  113. +0 −196 GitSharp/IgnoreRules.cs
  114. +0 −410 GitSharp/Index.cs
  115. +0 −118 GitSharp/Leaf.cs
  116. +0 −4 GitSharp/Properties/AssemblyInfo.cs
  117. +0 −2 GitSharp/README.txt
  118. +0 −183 GitSharp/Ref.cs
  119. +0 −570 GitSharp/Repository.cs
  120. +0 −383 GitSharp/RepositoryStatus.cs
  121. +0 −67 GitSharp/ResetBehavior.cs
  122. +0 −145 GitSharp/Tag.cs
  123. +0 −183 GitSharp/Text.cs
  124. +0 −220 GitSharp/Tree.cs
  125. +0 −57 GitSharp/UserInfoProvider.cs
  126. +2 −17 GitSharp/Commands/IGitCommand.cs → JGit licence.txt
  127. +47 −0 MiscUtil licence.txt
  128. +457 −0 Winterdom.IO.FileMap License.txt
View
@@ -0,0 +1,36 @@
+Git# is Copyright (C) 2007-2009 by the Git Development Community
+See source file headers for specific contributor copyrights
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or
+without modification, are permitted provided that the following
+conditions are met:
+
+- Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+- Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+- Neither the name of the Git Development Community nor the
+ names of its contributors may be used to endorse or promote
+ products derived from this software without specific prior
+ written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
View
@@ -1,234 +0,0 @@
-/*
- * Copyright (C) 2009, Henon <meinrad.recheis@gmail.com>
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or
- * without modification, are permitted provided that the following
- * conditions are met:
- *
- * - Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * - Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- *
- * - Neither the name of the Git Development Community nor the
- * names of its contributors may be used to endorse or promote
- * products derived from this software without specific prior
- * written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
- * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-using ObjectId = GitSharp.Core.ObjectId;
-using CoreRef = GitSharp.Core.Ref;
-using CoreCommit = GitSharp.Core.Commit;
-using CoreTree = GitSharp.Core.Tree;
-using CoreTag = GitSharp.Core.Tag;
-using System.Diagnostics;
-
-namespace GitSharp
-{
- /// <summary>
- /// AbstractObject is the base class for the classes Blob, Commit, Tag and Tree. It proviedes test methods
- /// to identify its specialized type (i.e. IsBlob, IsCommit, etc). AbstractObject also defines comparison operators so you can
- /// safely compare git objects by using the operators == or != which internally efficiently compare the objects hashes.
- /// </summary>
- public abstract class AbstractObject
- {
- protected Repository _repo;
- internal ObjectId _id; // <--- the git object is lazy loaded. only a _id is required until properties are accessed.
-
- internal AbstractObject(Repository repo, ObjectId id)
- {
- _repo = repo;
- _id = id;
- }
-
- internal AbstractObject(Repository repo, string name)
- {
- _repo = repo;
- _id = _repo._internal_repo.Resolve(name);
- }
-
- /// <summary>
- /// The git object's SHA1 hash. This is the long hash, See ShortHash for the abbreviated version.
- /// </summary>
- public string Hash
- {
- get
- {
- if (_id == null)
- return null;
- return _id.Name;
- }
- }
-
- /// <summary>
- /// The git object's abbreviated SHA1 hash.
- /// </summary>
- public string ShortHash
- {
- get
- {
- if (_id == null)
- return null;
- return _id.Abbreviate(_repo._internal_repo).name();
- }
- }
-
- /// <summary>
- /// True if this object is a Blob (or Leaf which is a subclass of Blob).
- /// </summary>
- public virtual bool IsBlob
- {
- get
- {
- if (_id == null)
- return false;
- return _repo._internal_repo.MapObject(_id, null) is byte[];
- }
- }
-
- /// <summary>
- /// True if this object is a Commit.
- /// </summary>
- public virtual bool IsCommit
- {
- get
- {
- if (_id == null)
- return false;
- return _repo._internal_repo.MapObject(_id, null) is CoreCommit;
- }
- }
-
- /// <summary>
- /// True if this object is a Tag.
- /// </summary>
- public virtual bool IsTag
- {
- get
- {
- if (_id == null)
- return false;
- return _repo._internal_repo.MapObject(_id, null) is CoreTag;
- }
- }
-
- /// <summary>
- /// True if the internal object is a Tree.
- /// </summary>
- public virtual bool IsTree
- {
- get
- {
- if (_id == null)
- return false;
- return _repo._internal_repo.MapObject(_id, null) is CoreTree;
- }
- }
-
- /// <summary>
- /// The repository where this git object belongs to.
- /// </summary>
- public Repository Repository
- {
- get
- {
- return _repo;
- }
- }
-
-#if implemented
- public Diff Diff(AbstractObject other) { }
-
- public ?? Grep(?? pattern) { }
-
- public Byte[] Content { get; }
-
- public long Size { get; }
-#endif
-
- /// <summary>
- /// Internal helper function to create the right object instance for a given hash
- /// </summary>
- /// <param name="repo"></param>
- /// <param name="objectId"></param>
- /// <returns></returns>
- internal static AbstractObject Wrap(Repository repo, ObjectId objectId)
- {
- Debug.Assert(objectId != null, "ObjectId is null");
- Debug.Assert(repo != null, "Repository is null");
- var obj = repo._internal_repo.MapObject(objectId, null);
- if (obj is CoreCommit)
- return new Commit(repo, obj as CoreCommit);
- else if (obj is CoreTag)
- return new Tag(repo, obj as CoreTag);
- else if (obj is CoreTree)
- return new Tree(repo, obj as CoreTree);
- else if (obj is byte[])
- return new Blob(repo, objectId, obj as byte[]);
- else
- {
- //Debug.Assert(false, "What kind of object do we have here?");
- return null;
- }
- }
-
- #region Equality overrides
-
- /// <summary>
- /// Overriding equals to reflect that different AbstractObject instances with the same hash are in fact equal.
- /// </summary>
- /// <param name="obj"></param>
- /// <returns></returns>
- public override bool Equals(object obj)
- {
- if (obj is AbstractObject)
- return _id == (obj as AbstractObject)._id;
- else
- return false;
- }
-
- public static bool operator ==(AbstractObject self, object other)
- {
- return Equals(self, other);
- }
-
- public static bool operator !=(AbstractObject self, object other)
- {
- return !(self == other);
- }
-
- public override int GetHashCode()
- {
- if (_id != null)
- return _id.GetHashCode();
- return base.GetHashCode();
- }
-
- #endregion
-
- }
-}
View
@@ -1,85 +0,0 @@
-/*
- * Copyright (C) 2009, Henon <meinrad.recheis@gmail.com>
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or
- * without modification, are permitted provided that the following
- * conditions are met:
- *
- * - Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * - Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- *
- * - Neither the name of the Git Development Community nor the
- * names of its contributors may be used to endorse or promote
- * products derived from this software without specific prior
- * written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
- * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace GitSharp
-{
- /// <summary>
- /// Represents the Author or Committer of a Commit.
- /// </summary>
- public class Author
- {
-
- /// <summary>
- /// Creates an uninitialized Author. You may use the object initializer syntax with this constructor, i.e. new Author { Name="henon", EmailAddress="henon@gitsharp.com" }
- /// </summary>
- public Author() { }
-
- /// <summary>
- /// Creates an Author.
- /// </summary>
- public Author(string name, string email)
- {
- Name = name;
- EmailAddress = email;
- }
-
- public string Name { get; set; }
-
- public string EmailAddress { get; set; }
-
- /// <summary>
- /// Preconfigured anonymous Author, which may be used by GitSharp if no Author has been configured.
- /// </summary>
- public static Author Anonymous
- {
- get
- {
- return new Author("anonymous", "anonymous@(none).com");
- }
- }
-
- public static Author GetDefaultAuthor(Repository repo)
- {
- return new Author(repo.Config["user.name"], repo.Config["user.email"]);
- }
- }
-}
Oops, something went wrong.

0 comments on commit f093767

Please sign in to comment.