├── .gitignore ├── ChangeLog ├── Demo.txt ├── Git ├── CmdParserOptionSet.cs ├── Command.cs ├── CommandCatalog.cs ├── CommandRef.cs ├── Commands │ ├── Add.cs │ ├── Checkout.cs │ ├── Clone.cs │ ├── Commit.cs │ ├── Config.cs │ ├── Fetch.cs │ ├── Help.cs │ ├── Init.cs │ ├── Log.cs │ ├── Merge.cs │ ├── Pull.cs │ ├── Push.cs │ ├── Rm.cs │ ├── Status.cs │ └── Version.cs ├── Die.cs ├── Git.csproj ├── Options.cs ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── README.txt ├── Resources │ └── Commands.xml ├── Stubs │ ├── Am.cs │ ├── Annotate.cs │ ├── Apply.cs │ ├── Archive.cs │ ├── Blame.cs │ ├── Branch.cs │ ├── CatFile.cs │ ├── CheckoutIndex.cs │ ├── Cherry.cs │ ├── CherryPick.cs │ ├── Clean.cs │ ├── CommitTree.cs │ ├── CountObjects.cs │ ├── Describe.cs │ ├── Diff.cs │ ├── DiffFiles.cs │ ├── DiffIndex.cs │ ├── DiffTree.cs │ ├── Difftool.cs │ ├── FastExport.cs │ ├── FastImport.cs │ ├── FetchPack.cs │ ├── FilterBranch.cs │ ├── FmtMergeMsg.cs │ ├── ForEachRef.cs │ ├── FormatPatch.cs │ ├── Fsck.cs │ ├── Gc.cs │ ├── Grep.cs │ ├── HashObject.cs │ ├── IndexPack.cs │ ├── LsFiles.cs │ ├── LsRemote.cs │ ├── LsTree.cs │ ├── Mailinfo.cs │ ├── Mailsplit.cs │ ├── MergeBase.cs │ ├── MergeFile.cs │ ├── MergeIndex.cs │ ├── Mergetool.cs │ ├── Mktree.cs │ ├── Mv.cs │ ├── NameRev.cs │ ├── Notes.cs │ ├── PackObjects.cs │ ├── PackRedundant.cs │ ├── PackRefs.cs │ ├── PatchId.cs │ ├── PeekRemote.cs │ ├── Prune.cs │ ├── PrunePacked.cs │ ├── Quiltimport.cs │ ├── ReadTree.cs │ ├── Rebase.cs │ ├── ReceivePack.cs │ ├── Reflog.cs │ ├── Relink.cs │ ├── Remote.cs │ ├── Repack.cs │ ├── Replace.cs │ ├── RequestPull.cs │ ├── Reset.cs │ ├── RevParse.cs │ ├── Revert.cs │ ├── SendPack.cs │ ├── Shortlog.cs │ ├── Show.cs │ ├── ShowBranch.cs │ ├── ShowRef.cs │ ├── Stripspace.cs │ ├── Submodule.cs │ ├── Svn.cs │ ├── SymbolicRef.cs │ ├── Tag.cs │ ├── TarTree.cs │ ├── UnpackFile.cs │ ├── UnpackObjects.cs │ ├── UpdateIndex.cs │ ├── UpdateServerInfo.cs │ ├── UploadArchive.cs │ ├── UploadPack.cs │ ├── Var.cs │ ├── VerifyPack.cs │ ├── VerifyTag.cs │ └── Whatchanged.cs └── TextBuiltin.cs ├── GitSharp licence.txt ├── GitSharp.Core ├── AbbreviatedObjectId.cs ├── AbstractIndexTreeVisitor.cs ├── AlternateRepositoryDatabase.cs ├── AnyObjectId.cs ├── BinaryDelta.cs ├── BlobBasedConfig.cs ├── ByteArrayExtensions.cs ├── ByteArrayWindow.cs ├── ByteBufferWindow.cs ├── ByteWindow.cs ├── CachedObjectDatabase.cs ├── CachedObjectDirectory.cs ├── Codec.cs ├── Commit.cs ├── CompleteAttribute.cs ├── Config.cs ├── ConsoleUserInfoProvider.cs ├── Constants.cs ├── CoreConfig.cs ├── DeltaOfsPackedObjectLoader.cs ├── DeltaPackedObjectLoader.cs ├── DeltaRefPackedObjectLoader.cs ├── Diff │ ├── DiffFormatter.cs │ ├── Edit.cs │ ├── EditList.cs │ ├── MyersDiff.cs │ ├── RawText.cs │ └── Sequence.cs ├── DirectoryCache │ ├── BaseDirCacheEditor.cs │ ├── DirCache.cs │ ├── DirCacheBuildIterator.cs │ ├── DirCacheBuilder.cs │ ├── DirCacheEditor.cs │ ├── DirCacheEntry.cs │ ├── DirCacheIterator.cs │ └── DirCacheTree.cs ├── Ensure.cs ├── Exceptions │ ├── CancelledException.cs │ ├── CheckoutConflictException.cs │ ├── CompoundException.cs │ ├── ConfigInvalidException.cs │ ├── CorruptObjectException.cs │ ├── EntryExistsException.cs │ ├── ExceptionExtensions.cs │ ├── FileLockedException.cs │ ├── GitlinksNotSupportedException.cs │ ├── IncorrectObjectTypeException.cs │ ├── InvalidObjectIdException.cs │ ├── InvalidPackException.cs │ ├── InvalidPatternException.cs │ ├── MissingBundlePrerequisiteException.cs │ ├── MissingObjectException.cs │ ├── NoClosingBracketException.cs │ ├── NoRemoteRepositoryException.cs │ ├── ObjectWritingException.cs │ ├── PackMismatchException.cs │ ├── PackProtocolException.cs │ ├── RepositoryNotFoundException.cs │ ├── RevWalkException.cs │ ├── RevisionSyntaxException.cs │ ├── StopWalkException.cs │ ├── SymlinksNotSupportedException.cs │ ├── TransportException.cs │ └── UnmergedPathException.cs ├── FileBasedConfig.cs ├── FileMode.cs ├── FileTreeEntry.cs ├── FnMatch │ ├── AbstractHead.cs │ ├── CharacterHead.cs │ ├── FileNameMatcher.cs │ ├── GroupHead.cs │ ├── IHead.cs │ ├── LastHead.cs │ ├── RestrictedWildCardHead.cs │ └── WildCardHead.cs ├── ForceModified.cs ├── GitException.cs ├── GitIndex.cs ├── GitSharp.Core.csproj ├── GitlinkTreeEntry.cs ├── IgnoreHandler.cs ├── IndexChangedEventArgs.cs ├── IndexDiff.cs ├── IndexTreeVisitor.cs ├── IndexTreeWalker.cs ├── InflaterCache.cs ├── LockFile.cs ├── Merge │ ├── MergeAlgorithm.cs │ ├── MergeChunk.cs │ ├── MergeFormatter.cs │ ├── MergeResult.cs │ ├── MergeStrategy.cs │ ├── Merger.cs │ ├── StrategyOneSided.cs │ ├── StrategySimpleTwoWayInCore.cs │ ├── ThreeWayMergeStrategy.cs │ └── ThreeWayMerger.cs ├── MutableObjectId.cs ├── NullProgressMonitor.cs ├── ObjectChecker.cs ├── ObjectDatabase.cs ├── ObjectDirectory.cs ├── ObjectId.cs ├── ObjectIdRef.cs ├── ObjectIdSubclassMap.cs ├── ObjectLoader.cs ├── ObjectType.cs ├── ObjectWriter.cs ├── OffsetCache.cs ├── PackFile.cs ├── PackIndex.cs ├── PackIndexV1.cs ├── PackIndexV2.cs ├── PackIndexWriter.cs ├── PackIndexWriterV1.cs ├── PackIndexWriterV2.cs ├── PackLock.cs ├── PackOutputStream.cs ├── PackReverseIndex.cs ├── PackWriter.cs ├── PackedObjectLoader.cs ├── Patch │ ├── BinaryHunk.cs │ ├── CombinedFileHeader.cs │ ├── CombinedHunkHeader.cs │ ├── FileHeader.cs │ ├── FormatError.cs │ ├── HunkHeader.cs │ └── Patch.cs ├── PersonIdent.cs ├── Platform │ ├── Linux.cs │ ├── Mac.cs │ ├── Platform.cs │ └── Windows.cs ├── ProgressMonitor.cs ├── Properties │ └── AssemblyInfo.cs ├── Ref.cs ├── RefComparator.cs ├── RefDatabase.cs ├── RefDirectory.cs ├── RefDirectoryRename.cs ├── RefDirectoryUpdate.cs ├── RefRename.cs ├── RefUpdate.cs ├── RefWriter.cs ├── ReflogReader.cs ├── RefsChangedEventArgs.cs ├── Repository.cs ├── RepositoryCache.cs ├── RepositoryChangedEventArgs.cs ├── RepositoryConfig.cs ├── RepositoryListener.cs ├── RepositoryState.cs ├── RevPlot │ ├── AbstractPlotRenderer.cs │ ├── PlotCommit.cs │ ├── PlotCommitList.cs │ ├── PlotLane.cs │ └── PlotWalk.cs ├── RevWalk │ ├── AbstractRevQueue.cs │ ├── BlockObjQueue.cs │ ├── BlockRevQueue.cs │ ├── BoundaryGenerator.cs │ ├── DateRevQueue.cs │ ├── DelayRevQueue.cs │ ├── EndGenerator.cs │ ├── FIFORevQueue.cs │ ├── Filter │ │ ├── AndRevFilter.cs │ │ ├── AuthorRevFilter.cs │ │ ├── CommitTimeRevFilter.cs │ │ ├── CommitterRevFilter.cs │ │ ├── MessageRevFilter.cs │ │ ├── NotRevFilter.cs │ │ ├── OrRevFilter.cs │ │ ├── PatternMatchRevFilter.cs │ │ ├── RevFilter.cs │ │ ├── RevFlagFilter.cs │ │ └── SubStringRevFilter.cs │ ├── FixUninterestingGenerator.cs │ ├── FooterKey.cs │ ├── FooterLine.cs │ ├── Generator.cs │ ├── LIFORevQueue.cs │ ├── MergeBaseGenerator.cs │ ├── ObjectWalk.cs │ ├── PendingGenerator.cs │ ├── RevBlob.cs │ ├── RevCommit.cs │ ├── RevCommitList.cs │ ├── RevFlag.cs │ ├── RevFlagSet.cs │ ├── RevObject.cs │ ├── RevObjectList.cs │ ├── RevSort.cs │ ├── RevTag.cs │ ├── RevTree.cs │ ├── RevWalk.cs │ ├── RewriteGenerator.cs │ ├── RewriteTreeFilter.cs │ ├── StartGenerator.cs │ └── TopoSortGenerator.cs ├── SubmoduleConfig.cs ├── SymbolicRef.cs ├── SymlinkTreeEntry.cs ├── SystemReader.cs ├── Tag.cs ├── TextProgressMonitor.cs ├── TransferConfig.cs ├── Transport │ ├── BaseConnection.cs │ ├── BaseFetchConnection.cs │ ├── BasePackConnection.cs │ ├── BasePackFetchConnection.cs │ ├── BasePackPushConnection.cs │ ├── BundleFetchConnection.cs │ ├── BundleWriter.cs │ ├── Daemon.cs │ ├── DaemonClient.cs │ ├── DaemonService.cs │ ├── DefaultSshSessionFactory.cs │ ├── FetchHeadRecord.cs │ ├── FetchProcess.cs │ ├── FetchResult.cs │ ├── HttpTransport.cs │ ├── IConnection.cs │ ├── IFetchConnection.cs │ ├── IPackTransport.cs │ ├── IPostReceiveHook.cs │ ├── IPreReceiveHook.cs │ ├── IPushConnection.cs │ ├── ITransportBundle.cs │ ├── IWalkTransport.cs │ ├── IndexPack.cs │ ├── LongMap.cs │ ├── OpenSshConfig.cs │ ├── OperationResult.cs │ ├── PackedObjectInfo.cs │ ├── PacketLineIn.cs │ ├── PacketLineOut.cs │ ├── PushProcess.cs │ ├── PushResult.cs │ ├── ReceiveCommand.cs │ ├── ReceivePack.cs │ ├── RefAdvertiser.cs │ ├── RefFilter.cs │ ├── RefSpec.cs │ ├── RemoteConfig.cs │ ├── RemoteRefUpdate.cs │ ├── SideBandInputStream.cs │ ├── SideBandOutputStream.cs │ ├── SideBandProgressMonitor.cs │ ├── SshConfigSessionFactory.cs │ ├── SshSessionFactory.cs │ ├── SshTransport.cs │ ├── TagOpt.cs │ ├── TcpTransport.cs │ ├── TrackingRefUpdate.cs │ ├── Transport.cs │ ├── TransportAmazonS3.cs │ ├── TransportBundleFile.cs │ ├── TransportBundleStream.cs │ ├── TransportGitAnon.cs │ ├── TransportGitSsh.cs │ ├── TransportHttp.cs │ ├── TransportLocal.cs │ ├── TransportSftp.cs │ ├── URIish.cs │ ├── UploadPack.cs │ ├── WalkEncryption.cs │ ├── WalkFetchConnection.cs │ ├── WalkPushConnection.cs │ └── WalkRemoteObjectDatabase.cs ├── Tree.cs ├── TreeEntry.cs ├── TreeIterator.cs ├── TreeVisitor.cs ├── TreeVisitorWithCurrentDirectory.cs ├── TreeWalk │ ├── AbstractTreeIterator.cs │ ├── CanonicalTreeParser.cs │ ├── EmptyTreeIterator.cs │ ├── FileTreeIterator.cs │ ├── Filter │ │ ├── AndTreeFilter.cs │ │ ├── NotTreeFilter.cs │ │ ├── OrTreeFilter.cs │ │ ├── PathFilter.cs │ │ ├── PathFilterGroup.cs │ │ ├── PathSuffixFilter.cs │ │ └── TreeFilter.cs │ ├── NameConflictTreeWalk.cs │ ├── TreeWalk.cs │ └── WorkingTreeIterator.cs ├── Treeish.cs ├── UnpackedObjectCache.cs ├── UnpackedObjectLoader.cs ├── UserConfig.cs ├── UserInfoProvider.cs ├── Util │ ├── ArrayExtensions.cs │ ├── AtomicReferenceArray.cs │ ├── BigEndianBitConverter.cs │ ├── CRC32.cs │ ├── CheckedOutputStream.cs │ ├── DateTimeExtensions.cs │ ├── DigestOutputStream.cs │ ├── EndianBinaryReader.cs │ ├── EndianBinaryWriter.cs │ ├── EndianBitConverter.cs │ ├── Endianness.cs │ ├── Extensions.cs │ ├── FS.cs │ ├── GenericComparer.cs │ ├── Hex.cs │ ├── ICharSequence.cs │ ├── IListUtil.cs │ ├── IO.cs │ ├── IO │ │ ├── InterruptTimer.cs │ │ ├── TimeoutStream.cs │ │ └── UnionInputStream.cs │ ├── Inspect.cs │ ├── Int32.cs │ ├── IntList.cs │ ├── JavaHelper │ │ ├── AtomicInteger.cs │ │ ├── AtomicReference.cs │ │ ├── AtomicValue.cs │ │ ├── Charset.cs │ │ └── Properties.cs │ ├── ListIterator.cs │ ├── LittleEndianBitConverter.cs │ ├── LongList.cs │ ├── MessageDigest.cs │ ├── MutableInteger.cs │ ├── NB.cs │ ├── NestedDictionary.cs │ ├── PathUtil.cs │ ├── PipeStream.cs │ ├── QuotedString.cs │ ├── RawCharSequence.cs │ ├── RawParseUtils.cs │ ├── RawSubstringPattern.cs │ ├── RefList.cs │ ├── RefMap.cs │ ├── Stream.cs │ ├── StringExtension.cs │ ├── StringUtils.cs │ ├── TemporaryBuffer.cs │ └── WeakReference.cs ├── WholePackedObjectLoader.cs ├── WindowCache.cs ├── WindowCacheConfig.cs ├── WindowCursor.cs ├── WorkDirCheckout.cs └── WriteTree.cs ├── GitSharp.Tests ├── Git │ └── CLI │ │ ├── CustomOptionTests.cs │ │ ├── OptionContextTest.cs │ │ ├── OptionSetTest.cs │ │ ├── OptionTest.cs │ │ └── Utils.cs ├── GitSharp.Core │ ├── AbbreviatedObjectIdTest.cs │ ├── CanReadMsysgitIndexFixture.cs │ ├── ConcurrentRepackTest.cs │ ├── ConstantsEncodingTest.cs │ ├── Crc32Tests.cs │ ├── Diff │ │ ├── DiffFormatterReflowTest.cs │ │ ├── DiffTestDataGenerator.cs │ │ ├── EditListTest.cs │ │ ├── EditTest.cs │ │ ├── MyersDiffPerformanceTest.cs │ │ ├── MyersDiffTest.cs │ │ └── RawTextTest.cs │ ├── DirectoryCache │ │ ├── DirCacheBasicTest.cs │ │ ├── DirCacheBuilderIteratorTest.cs │ │ ├── DirCacheBuilderTest.cs │ │ ├── DirCacheCGitCompatabilityTest.cs │ │ ├── DirCacheEntryTest.cs │ │ ├── DirCacheFindTest.cs │ │ ├── DirCacheIteratorTest.cs │ │ ├── DirCacheLargePathTest.cs │ │ └── DirCacheTreeTest.cs │ ├── FnMatch │ │ └── FileNameMatcherTest.cs │ ├── IgnoreHandlerTest.cs │ ├── IndexDiffTest.cs │ ├── IndexModifiedTests.cs │ ├── IndexTreeWalkerTest.cs │ ├── Merge │ │ ├── CherryPickTest.cs │ │ ├── MergeAlgorithmTest.cs │ │ └── SimpleMergeTest.cs │ ├── ObjectCheckerTests.cs │ ├── ObjectIdRefTest.cs │ ├── PackIndexTestCase.cs │ ├── PackIndexTests.cs │ ├── PackIndexV1Tests.cs │ ├── PackIndexV2Tests.cs │ ├── PackReverseIndexTest.cs │ ├── PackWriterTest.cs │ ├── Patch │ │ ├── BasePatchTest.cs │ │ ├── EditListTest.cs │ │ ├── FileHeaderTest.cs │ │ ├── GetTextTest.cs │ │ ├── PatchCcErrorTest.cs │ │ ├── PatchCcTest.cs │ │ ├── PatchErrorTest.cs │ │ └── PatchTest.cs │ ├── ReadTreeTest.cs │ ├── RefDirectoryTest.cs │ ├── RefTest.cs │ ├── RefUpdateTest.cs │ ├── ReflogConfigTest.cs │ ├── ReflogReaderTest.cs │ ├── RepositoryCacheTest.cs │ ├── RepositoryConfigTest.cs │ ├── RepositoryTestCase.cs │ ├── RevWalk │ │ ├── AlwaysEmptyRevQueueTest.cs │ │ ├── DateRevQueueTest.cs │ │ ├── FIFORevQueueTest.cs │ │ ├── FooterLineTest.cs │ │ ├── LIFORevQueueTest.cs │ │ ├── ObjectWalkTest.cs │ │ ├── RevCommitParseTest.cs │ │ ├── RevFlagSetTest.cs │ │ ├── RevObjectTest.cs │ │ ├── RevQueueTestCase.cs │ │ ├── RevTagParseTest.cs │ │ ├── RevWalkCullTest.cs │ │ ├── RevWalkFilterTest.cs │ │ ├── RevWalkMergeBaseTest.cs │ │ ├── RevWalkPathFilter1Test.cs │ │ ├── RevWalkPathFilter6012Test.cs │ │ ├── RevWalkSortTest.cs │ │ └── RevWalkTestCase.cs │ ├── SampleDataRepositoryTestCase.cs │ ├── SubmoduleTest.cs │ ├── SymbolicRefTest.cs │ ├── T0001_ObjectId.cs │ ├── T0001_PersonIdent.cs │ ├── T0002_Tree.cs │ ├── T0003_Basic_Config.cs │ ├── T0003_Basic_Write.cs │ ├── T0004_PackReader.cs │ ├── T0007_Index.cs │ ├── T0008_testparserev.cs │ ├── Transport │ │ ├── BaseConnectionTests.cs │ │ ├── BundleWriterTest.cs │ │ ├── IndexPackTests.cs │ │ ├── LongMapTest.cs │ │ ├── OpenSshConfigTest.cs │ │ ├── OperationResultTests.cs │ │ ├── PacketLineInTest.cs │ │ ├── PacketLineOutTest.cs │ │ ├── PushProcessTest.cs │ │ ├── RefSpecTests.cs │ │ ├── RemoteConfigTests.cs │ │ ├── SideBandOutputStreamTest.cs │ │ ├── TransportTest.cs │ │ └── URIishTests.cs │ ├── TreeIteratorLeafOnlyTest.cs │ ├── TreeIteratorPostOrderTest.cs │ ├── TreeIteratorPreOrderTest.cs │ ├── TreeWalk │ │ ├── AbstractTreeIteratorTest.cs │ │ ├── CanonicalTreeParserTest.cs │ │ ├── EmptyTreeIteratorTest.cs │ │ ├── FileTreeIteratorTest.cs │ │ ├── Filter │ │ │ ├── AlwaysCloneTreeFilter.cs │ │ │ ├── NotTreeFilterTest.cs │ │ │ ├── PathSuffixFilterTestCase.cs │ │ │ └── TreeFilterTest.cs │ │ ├── NameConflictTreeWalkTest.cs │ │ ├── PostOrderTreeWalkTest.cs │ │ └── TreeWalkBasicDiffTest.cs │ ├── Util │ │ ├── AssertHelper.cs │ │ ├── AssertHelperFixture.cs │ │ ├── ByteArrayExtensionsFixture.cs │ │ ├── CPUTimeStopWatch.cs │ │ ├── ExtensionsFixture.cs │ │ ├── IO │ │ │ └── TimeoutStreamTest.cs │ │ ├── IntListTest.cs │ │ ├── LinkedListFixture.cs │ │ ├── LocalDiskRepositoryTestCase.cs │ │ ├── Md5MessageDigestTest.cs │ │ ├── MockFileBasedConfig.cs │ │ ├── MockSystemReader.cs │ │ ├── NBTests.cs │ │ ├── PathUtils.cs │ │ ├── QuotedStringBourneStyleTest.cs │ │ ├── QuotedStringBourneUserPathStyleTest.cs │ │ ├── QuotedStringGitPathStyleTest.cs │ │ ├── RawParseUtils_HexParseTest.cs │ │ ├── RawParseUtils_LineMapTest.cs │ │ ├── RawParseUtils_MatchTest.cs │ │ ├── RefListTest.cs │ │ ├── RefMapTest.cs │ │ ├── Sha1MessageDigestTest.cs │ │ ├── StringExtensionsFixture.cs │ │ ├── StringUtilsTest.cs │ │ ├── TemporaryBufferTest.cs │ │ ├── TestRepository.cs │ │ ├── TestRng.cs │ │ ├── UnionInputStreamTest.cs │ │ └── VariousUtilityTests.cs │ ├── ValidRefNameTest.cs │ ├── WindowCacheGetTest.cs │ ├── WindowCacheReconfigureTest.cs │ ├── WorkDirCheckoutTest.cs │ ├── XInputStream.cs │ └── sample │ │ ├── README │ │ └── unpacked ├── GitSharp.Tests.csproj ├── GitSharp │ ├── AbstractTreeNodeTests.cs │ ├── ApiTestCase.cs │ ├── BlobTests.cs │ ├── BranchTest.cs │ ├── CloneTests.cs │ ├── CommitDateTests.cs │ ├── CommitTests.cs │ ├── DiffTests.cs │ ├── EncodingTests.cs │ ├── FindGitDirectoryTests.cs │ ├── IgnoreTests.cs │ ├── IndexTest.cs │ ├── InitTests.cs │ ├── MergeTests.cs │ ├── ObjectEqualityTests.cs │ ├── RefModelTests.cs │ ├── RepositoryConfigTest.cs │ ├── RepositoryStatusTests.cs │ ├── RepositoryTests.cs │ ├── StatusTests.cs │ └── TextTests.cs ├── Properties │ └── AssemblyInfo.cs ├── README.txt └── Resources │ ├── CorruptIndex │ ├── .gitted │ │ ├── COMMIT_EDITMSG │ │ ├── HEAD │ │ ├── config │ │ ├── description │ │ ├── hooks │ │ │ ├── applypatch-msg.sample │ │ │ ├── commit-msg.sample │ │ │ ├── post-commit.sample │ │ │ ├── post-receive.sample │ │ │ ├── post-update.sample │ │ │ ├── pre-applypatch.sample │ │ │ ├── pre-commit.sample │ │ │ ├── pre-rebase.sample │ │ │ ├── prepare-commit-msg.sample │ │ │ └── update.sample │ │ ├── index │ │ ├── info │ │ │ └── exclude │ │ ├── logs │ │ │ ├── HEAD │ │ │ └── refs │ │ │ │ └── heads │ │ │ │ └── master │ │ ├── objects │ │ │ ├── 63 │ │ │ │ └── d8dbd40c23542e740659a7168a0ce3138ea748 │ │ │ ├── 1a │ │ │ │ └── 602d9bd07ce5272ddaa64e21da12dbca2b8c9f │ │ │ ├── 2e │ │ │ │ └── 65efe2a145dda7ee51d1741299f848e5bf752e │ │ │ ├── dc │ │ │ │ └── 8d7f3d2d19bdf3a6daa007102bc7bef76aa8ac │ │ │ ├── info │ │ │ │ └── marker.txt │ │ │ └── pack │ │ │ │ └── marker.txt │ │ └── refs │ │ │ └── heads │ │ │ └── master │ ├── a.txt │ └── b.txt │ ├── Diff │ ├── .gitattributes │ ├── E.patch │ ├── E_PostImage │ ├── E_PreImage │ ├── X.patch │ ├── X_PostImage │ ├── X_PreImage │ ├── Y.patch │ ├── Y_PostImage │ ├── Y_PreImage │ ├── Z.patch │ ├── Z_PostImage │ ├── Z_PreImage │ ├── testContext0.out │ ├── testContext1.out │ ├── testContext10.out │ ├── testContext100.out │ ├── testContext3.out │ └── testContext5.out │ ├── JapaneseRepo │ └── .gitted │ │ ├── HEAD │ │ ├── config │ │ ├── description │ │ ├── hooks │ │ ├── applypatch-msg.sample │ │ ├── commit-msg.sample │ │ ├── post-commit.sample │ │ ├── post-receive.sample │ │ ├── post-update.sample │ │ ├── pre-applypatch.sample │ │ ├── pre-commit.sample │ │ ├── pre-rebase.sample │ │ ├── prepare-commit-msg.sample │ │ └── update.sample │ │ ├── index │ │ ├── info │ │ └── exclude │ │ ├── logs │ │ ├── HEAD │ │ └── refs │ │ │ └── heads │ │ │ └── master │ │ ├── objects │ │ ├── 24 │ │ │ └── ed0e20ceff5e2cdf768345b6853213f840ff8f │ │ ├── 54 │ │ │ └── 75030f2b57d9956d23ef4ead6f9a4983c234b5 │ │ ├── 2f │ │ │ └── 3c75408acf76bb7122b91c418d015252708552 │ │ ├── 4b │ │ │ └── 825dc642cb6eb9a060e54bf8d69288fbee4904 │ │ ├── 6d │ │ │ └── c9b6c490154e9627a8aed8ca74039a34084677 │ │ ├── 9b │ │ │ └── c63090dd221bace8b2e5f278580946be26efdd │ │ ├── a8 │ │ │ └── a51035f70bec2d3e00c0a11a33ff709a6ab40e │ │ ├── fe │ │ │ └── 0856a5873decc1a8e47f63c5707520121b2e9e │ │ ├── info │ │ │ └── marker.txt │ │ └── pack │ │ │ └── marker.txt │ │ └── refs │ │ └── heads │ │ └── master │ ├── OneFileRepository │ ├── .gitted │ │ ├── COMMIT_EDITMSG │ │ ├── HEAD │ │ ├── config │ │ ├── description │ │ ├── hooks │ │ │ ├── applypatch-msg.sample │ │ │ ├── commit-msg.sample │ │ │ ├── post-commit.sample │ │ │ ├── post-receive.sample │ │ │ ├── post-update.sample │ │ │ ├── pre-applypatch.sample │ │ │ ├── pre-commit.sample │ │ │ ├── pre-rebase.sample │ │ │ ├── prepare-commit-msg.sample │ │ │ └── update.sample │ │ ├── index │ │ ├── info │ │ │ └── exclude │ │ ├── logs │ │ │ ├── HEAD │ │ │ └── refs │ │ │ │ └── heads │ │ │ │ └── master │ │ ├── objects │ │ │ ├── 5a │ │ │ │ └── 44c05f31a48e1492e7b375e502d97c3e72a1bc │ │ │ ├── be │ │ │ │ └── cce7158b7ef8a86c4ddf2fe235df6923f94ec8 │ │ │ ├── f3 │ │ │ │ └── ca78a01f1baa4eaddcc349c97dcab95a379981 │ │ │ ├── info │ │ │ │ └── marker.txt │ │ │ └── pack │ │ │ │ └── marker.txt │ │ └── refs │ │ │ └── heads │ │ │ └── master │ └── dummy.txt │ ├── Patch │ ├── .gitattributes │ ├── testEditList_Types.patch │ ├── testError_BodyTooLong.patch │ ├── testError_CcTruncatedOld.patch │ ├── testError_DisconnectedHunk.patch │ ├── testError_GarbageBetweenFiles.patch │ ├── testError_GitBinaryNoForwardHunk.patch │ ├── testError_TruncatedNew.patch │ ├── testError_TruncatedOld.patch │ ├── testGetText_BothISO88591.patch │ ├── testGetText_Convert.patch │ ├── testGetText_DiffCc.patch │ ├── testGetText_NoBinary.patch │ ├── testParse_AddNoNewline.patch │ ├── testParse_CcDeleteFile.patch │ ├── testParse_CcNewFile.patch │ ├── testParse_ConfigCaseInsensitive.patch │ ├── testParse_FixNoNewline.patch │ ├── testParse_GitBinaryDelta.patch │ ├── testParse_GitBinaryLiteral.patch │ ├── testParse_NoBinary.patch │ └── testParse_OneFileCc.patch │ ├── SubmoduleRepository.git │ ├── COMMIT_EDITMSG │ ├── HEAD │ ├── config │ ├── description │ ├── hooks │ │ ├── applypatch-msg.sample │ │ ├── commit-msg.sample │ │ ├── post-commit.sample │ │ ├── post-receive.sample │ │ ├── post-update.sample │ │ ├── pre-applypatch.sample │ │ ├── pre-commit.sample │ │ ├── pre-rebase.sample │ │ ├── prepare-commit-msg.sample │ │ └── update.sample │ ├── index │ ├── info │ │ └── exclude │ ├── logs │ │ ├── HEAD │ │ └── refs │ │ │ └── heads │ │ │ └── master │ ├── objects │ │ ├── 16 │ │ │ └── 3678aef05371dc8636cbae9486233fddbede36 │ │ ├── 83 │ │ │ └── 36793a1b803478c1c654847373f0f106c467ce │ │ ├── 92 │ │ │ └── 2522d0a1c9a031f5c6e11d3e20423e44806a3b │ │ ├── 7c │ │ │ └── 0646bfd53c1f0ed45ffd81563f30017717ca58 │ │ ├── b8 │ │ │ └── 1197d9c02c98247424be82a7dd55dc419f39e5 │ │ ├── c3 │ │ │ └── 88fdefe1f4aa420eef11abd4e88fd38236dfb5 │ │ ├── info │ │ │ └── dummy │ │ └── pack │ │ │ └── dummy │ └── refs │ │ └── heads │ │ └── master │ ├── all_packed_objects.txt │ ├── create-second-pack │ ├── gitgit.index │ ├── gitgit.index.ZZZZ │ ├── gitgit.index.aaaa │ ├── gitgit.index.badchecksum │ ├── gitgit.lsfiles │ ├── gitgit.lstree │ ├── index_originating_from_msysgit │ ├── pack-3280af9c07ee18a87705ef50b0cc4cd20266cf12.idx │ ├── pack-3280af9c07ee18a87705ef50b0cc4cd20266cf12.pack │ ├── pack-34be9032ac282b11fa9babdc2b2a93ca996c9c2f.idx │ ├── pack-34be9032ac282b11fa9babdc2b2a93ca996c9c2f.idxV2 │ ├── pack-34be9032ac282b11fa9babdc2b2a93ca996c9c2f.pack │ ├── pack-546ff360fe3488adb20860ce3436a2d6373d2796.idx │ ├── pack-546ff360fe3488adb20860ce3436a2d6373d2796.pack │ ├── pack-9fb5b411fe6dfa89cc2e6b89d2bd8e5de02b5745.idx │ ├── pack-9fb5b411fe6dfa89cc2e6b89d2bd8e5de02b5745.pack │ ├── pack-cbdeda40019ae0e6e789088ea0f51f164f489d14.idx │ ├── pack-cbdeda40019ae0e6e789088ea0f51f164f489d14.pack │ ├── pack-df2982f284bbabb6bdb59ee3fcc6eb0983e20371.idx │ ├── pack-df2982f284bbabb6bdb59ee3fcc6eb0983e20371.idxV2 │ ├── pack-df2982f284bbabb6bdb59ee3fcc6eb0983e20371.pack │ ├── pack-e6d07037cbcf13376308a0a995d1fa48f8f76aaa.idx │ ├── pack-e6d07037cbcf13376308a0a995d1fa48f8f76aaa.pack │ ├── pack-huge.idx │ ├── packed-refs │ ├── sample.git │ ├── COMMIT_EDITMSG │ ├── HEAD │ ├── ORIG_HEAD │ ├── config │ ├── description │ ├── gitk.cache │ ├── hooks │ │ ├── applypatch-msg.sample │ │ ├── commit-msg.sample │ │ ├── post-commit.sample │ │ ├── post-receive.sample │ │ ├── post-update.sample │ │ ├── pre-applypatch.sample │ │ ├── pre-commit.sample │ │ ├── pre-rebase.sample │ │ ├── prepare-commit-msg.sample │ │ └── update.sample │ ├── index │ ├── info │ │ ├── exclude │ │ └── refs │ ├── logs │ │ ├── HEAD │ │ └── refs │ │ │ └── heads │ │ │ ├── first │ │ │ └── master │ ├── objects │ │ ├── 66 │ │ │ └── d7e337f35ff98d6bddd7e730655080454c3fdd │ │ ├── 76 │ │ │ └── e984096c69db581a6d48eb444e5490d727ebac │ │ ├── 3f │ │ │ └── a4c1907a23c8c345ba65bd9bc17336b012259b │ │ ├── a1 │ │ │ └── 3973bc29346193c4a023fc83cc5b0645784262 │ │ ├── info │ │ │ └── packs │ │ └── pack │ │ │ ├── pack-845b2ba3349cc201321e752b01c5ada8102a9a08.idx │ │ │ └── pack-845b2ba3349cc201321e752b01c5ada8102a9a08.pack │ ├── packed-refs │ └── refs │ │ ├── heads │ │ ├── first │ │ └── master │ │ └── tags │ │ └── my_tag │ └── single_file_commit │ ├── .gitattributes │ ├── 16c0beaf7523eb3ef5df45bd42dd4fc6343de864 │ ├── 917c130bd4fa5bf2df0c399dc1b03401860aa448 │ ├── 95ea6a6859af6791464bd8b6de76ad5a6f9fad81 │ └── i-am-a-file ├── GitSharp.build ├── GitSharp.sln ├── GitSharp ├── AbstractObject.cs ├── AbstractTreeNode.cs ├── Author.cs ├── Blob.cs ├── Branch.cs ├── Change.cs ├── Commands │ ├── AbstractCommand.cs │ ├── AbstractFetchCommand.cs │ ├── CloneCommand.cs │ ├── FetchCommand.cs │ ├── IGitCommand.cs │ ├── InitCommand.cs │ ├── LogCommand.cs │ ├── MergeCommand.cs │ ├── PushCommand.cs │ ├── StatusCommand.cs │ └── _NotSupportedCommands.txt ├── Commit.cs ├── Config.cs ├── Diff.cs ├── Examples.cs ├── Git.cs ├── GitSharp.csproj ├── IReferenceObject.cs ├── IgnoreRules.cs ├── Index.cs ├── Leaf.cs ├── Properties │ └── AssemblyInfo.cs ├── README.txt ├── Ref.cs ├── Remote.cs ├── Repository.cs ├── RepositoryStatus.cs ├── ResetBehavior.cs ├── Stash.cs ├── Stubs │ ├── AddCommand.cs │ ├── AmCommand.cs │ ├── AnnotateCommand.cs │ ├── ApplyCommand.cs │ ├── ArchiveCommand.cs │ ├── BlameCommand.cs │ ├── BranchCommand.cs │ ├── CatFileCommand.cs │ ├── CheckoutCommand.cs │ ├── CheckoutIndexCommand.cs │ ├── CherryCommand.cs │ ├── CherryPickCommand.cs │ ├── CleanCommand.cs │ ├── CommitCommand.cs │ ├── CommitTreeCommand.cs │ ├── ConfigCommand.cs │ ├── CountObjectsCommand.cs │ ├── DescribeCommand.cs │ ├── DiffCommand.cs │ ├── DiffFilesCommand.cs │ ├── DiffIndexCommand.cs │ ├── DiffTreeCommand.cs │ ├── DifftoolCommand.cs │ ├── FastExportCommand.cs │ ├── FastImportCommand.cs │ ├── FetchPackCommand.cs │ ├── FilterBranchCommand.cs │ ├── ForEachRefCommand.cs │ ├── FormatPatchCommand.cs │ ├── FsckCommand.cs │ ├── GcCommand.cs │ ├── GrepCommand.cs │ ├── HashObjectCommand.cs │ ├── IndexPackCommand.cs │ ├── LsFilesCommand.cs │ ├── LsRemoteCommand.cs │ ├── LsTreeCommand.cs │ ├── MailinfoCommand.cs │ ├── MailsplitCommand.cs │ ├── MergeBaseCommand.cs │ ├── MergeFileCommand.cs │ ├── MergeIndexCommand.cs │ ├── MergetoolCommand.cs │ ├── MktreeCommand.cs │ ├── MvCommand.cs │ ├── NameRevCommand.cs │ ├── NotesCommand.cs │ ├── PackObjectsCommand.cs │ ├── PackRedundantCommand.cs │ ├── PackRefsCommand.cs │ ├── PatchIdCommand.cs │ ├── PeekRemoteCommand.cs │ ├── PruneCommand.cs │ ├── PrunePackedCommand.cs │ ├── QuiltimportCommand.cs │ ├── ReadTreeCommand.cs │ ├── RebaseCommand.cs │ ├── ReceivePackCommand.cs │ ├── ReflogCommand.cs │ ├── RelinkCommand.cs │ ├── RemoteCommand.cs │ ├── RepackCommand.cs │ ├── ReplaceCommand.cs │ ├── RequestPullCommand.cs │ ├── ResetCommand.cs │ ├── RevParseCommand.cs │ ├── RevertCommand.cs │ ├── RmCommand.cs │ ├── SendPackCommand.cs │ ├── ShortlogCommand.cs │ ├── ShowBranchCommand.cs │ ├── ShowCommand.cs │ ├── ShowRefCommand.cs │ ├── StripspaceCommand.cs │ ├── SubmoduleCommand.cs │ ├── SvnCommand.cs │ ├── SymbolicRefCommand.cs │ ├── TagCommand.cs │ ├── TarTreeCommand.cs │ ├── UnpackFileCommand.cs │ ├── UnpackObjectsCommand.cs │ ├── UpdateIndexCommand.cs │ ├── UpdateServerInfoCommand.cs │ ├── UploadArchiveCommand.cs │ ├── UploadPackCommand.cs │ ├── VarCommand.cs │ ├── VerifyPackCommand.cs │ ├── VerifyTagCommand.cs │ └── WhatchangedCommand.cs ├── Tag.cs ├── Text.cs ├── Tree.cs └── UserInfoProvider.cs ├── Indentation.txt ├── Indentation.vssettings ├── JGit licence.txt ├── Logo ├── gitsharp.png └── logo.svg ├── MiscUtil licence.txt ├── README.txt ├── SharedAssemblyInfo.cs ├── Winterdom.IO.FileMap License.txt ├── generate-Docs.bat ├── lib ├── DiffieHellman.dll ├── ICSharpCode.SharpZipLib.dll ├── ICSharpCode.SharpZipLib.xml ├── Org.Mentalis.Security.dll ├── Tamir.SharpSSH.dll ├── Winterdom.IO.FileMap.dll └── Winterdom.IO.FileMap.pdb ├── package-GitSharp.cmd ├── runtests-GitSharp.cmd ├── tools ├── docu │ ├── .gitignore │ ├── Interop.SparkLanguagePackageLib.dll │ ├── Spark.dll │ ├── SparkLanguage.dll │ ├── StructureMap.dll │ ├── docu.XML │ ├── docu.exe │ ├── docu.pdb │ ├── generate_documentation.bat │ └── templates │ │ ├── !namespace │ │ ├── !type.htm.spark │ │ ├── _comment.spark │ │ ├── _events.spark │ │ ├── _fields.spark │ │ ├── _methods.spark │ │ ├── _namespaces.spark │ │ ├── _properties.spark │ │ ├── _remarks.spark │ │ ├── _types.spark │ │ ├── _value.spark │ │ └── index.html.spark │ │ ├── _footer.spark │ │ ├── _namespaces.spark │ │ ├── _types.spark │ │ ├── index.html.spark │ │ ├── js │ │ ├── jquery-1.3.2.min.js │ │ ├── jquery.scrollTo-min.js │ │ └── navigation.js │ │ └── main.css ├── nant │ ├── NAnt.CompressionTasks.dll │ ├── NAnt.CompressionTasks.pdb │ ├── NAnt.CompressionTasks.xml │ ├── NAnt.Core.dll │ ├── NAnt.Core.pdb │ ├── NAnt.Core.xml │ ├── NAnt.DotNetTasks.dll │ ├── NAnt.DotNetTasks.pdb │ ├── NAnt.DotNetTasks.xml │ ├── NAnt.MSNetTasks.dll │ ├── NAnt.MSNetTasks.pdb │ ├── NAnt.MSNetTasks.xml │ ├── NAnt.NUnit.dll │ ├── NAnt.NUnit.pdb │ ├── NAnt.NUnit.xml │ ├── NAnt.NUnit1Tasks.dll │ ├── NAnt.NUnit1Tasks.pdb │ ├── NAnt.NUnit1Tasks.xml │ ├── NAnt.NUnit2Tasks.dll │ ├── NAnt.NUnit2Tasks.pdb │ ├── NAnt.NUnit2Tasks.xml │ ├── NAnt.SourceControlTasks.dll │ ├── NAnt.SourceControlTasks.pdb │ ├── NAnt.SourceControlTasks.xml │ ├── NAnt.VSNetTasks.dll │ ├── NAnt.VSNetTasks.pdb │ ├── NAnt.VSNetTasks.xml │ ├── NAnt.VisualCppTasks.dll │ ├── NAnt.VisualCppTasks.pdb │ ├── NAnt.VisualCppTasks.xml │ ├── NAnt.Win32Tasks.dll │ ├── NAnt.Win32Tasks.pdb │ ├── NAnt.Win32Tasks.xml │ ├── NAnt.exe │ ├── NAnt.exe.config │ ├── NAnt.pdb │ ├── NAnt.xml │ ├── NDoc.Documenter.NAnt.dll │ ├── NDoc.Documenter.NAnt.pdb │ ├── extensions │ │ └── common │ │ │ └── 2.0 │ │ │ ├── NAnt.MSBuild.dll │ │ │ ├── NAnt.MSBuild.pdb │ │ │ └── NAnt.MSBuild.xml │ ├── lib │ │ ├── common │ │ │ ├── 1.1 │ │ │ │ ├── nunit-console-runner.dll │ │ │ │ ├── nunit-console.exe │ │ │ │ ├── nunit.core.dll │ │ │ │ ├── nunit.framework.dll │ │ │ │ └── nunit.util.dll │ │ │ ├── 2.0 │ │ │ │ ├── nunit-console-runner.dll │ │ │ │ ├── nunit-console.exe │ │ │ │ ├── nunit.core.dll │ │ │ │ ├── nunit.framework.dll │ │ │ │ └── nunit.util.dll │ │ │ └── neutral │ │ │ │ ├── ICSharpCode.SharpCvsLib.Console.dll │ │ │ │ ├── ICSharpCode.SharpCvsLib.dll │ │ │ │ ├── ICSharpCode.SharpZipLib.dll │ │ │ │ ├── NDoc.Core.dll │ │ │ │ ├── NDoc.Documenter.Msdn.dll │ │ │ │ ├── NDoc.ExtendedUI.dll │ │ │ │ └── NUnitCore.dll │ │ └── net │ │ │ └── 1.0 │ │ │ ├── NDoc.Core.dll │ │ │ ├── NDoc.Documenter.Msdn.dll │ │ │ ├── NDoc.ExtendedUI.dll │ │ │ ├── nunit-console-runner.dll │ │ │ ├── nunit-console.exe │ │ │ ├── nunit.core.dll │ │ │ ├── nunit.framework.dll │ │ │ └── nunit.util.dll │ ├── log4net.dll │ └── scvs.exe └── nunit │ ├── lib │ ├── fit.dll │ ├── log4net.dll │ ├── nunit-console-runner.dll │ ├── nunit.core.dll │ ├── nunit.core.interfaces.dll │ ├── nunit.fixtures.dll │ └── nunit.util.dll │ ├── nunit-console.exe │ ├── nunit-console.exe.config │ └── nunit.framework.dll └── version.txt /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | bin 3 | obj 4 | *.user 5 | *.suo 6 | *.bak 7 | *.sln.cache 8 | _ReSharper* 9 | Reports 10 | */build 11 | */test-results 12 | *.pidb 13 | *.usertasks 14 | *.userprefs 15 | *.orig 16 | test-results 17 | dist 18 | build 19 | SharedAssemblyInfo.cs 20 | VersionAssemblyInfo.cs -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- 1 | 2008-12-06 Miguel de Icaza 2 | 3 | * Lib/Constants.cs: Add a handful of extra contants. 4 | 5 | * Lib/Codec.cs: Put here the coding/encoding routines that were 6 | originally in egit's lib/Constants.java class 7 | 8 | * Lib/*: Align some API doc comments, add some API docs. 9 | 10 | * Lib/RefDatabase.cs (Peel): Implement. 11 | 12 | * Lib/Constants.cs: Put all the constants here (not sure where 13 | some new constants should have gone). 14 | 15 | * Lib/Ref.cs: Update to support `Peeled' property and 16 | `OriginalName' from newer eGits. 17 | 18 | 2008-12-03 Miguel de Icaza 19 | 20 | * test.cs: make the sample program dump all the refs. 21 | 22 | * Lib/Repository.cs: Expose GetAllRefs. 23 | 24 | * Lib/RefDatabase.cs (ReadOneLooseRef): Do not crash if the 25 | refName is not present in the looseKeys. 26 | 27 | (RefreshPackedRefs): If the packed-refs file does not exist, do 28 | not try to continue, it would otherwise crash. 29 | 30 | * Lib/WindowedFile.cs: Implement another file from the original 31 | Java implementation. 32 | 33 | * Lib/PackIndex.cs: Fix indentation of comment. 34 | 35 | * Lib/WindowCursor.cs: Implement. 36 | 37 | 2008-12-02 Miguel de Icaza 38 | 39 | * Lib/ByteArrayWindow.cs: Implement the functionality for 40 | ByteArrayWindow, do not derive from ByteWindow which is a design 41 | in the original Java implementation to use two different backends 42 | for storage. 43 | 44 | We could achieve the same in a cleaner way than the original 45 | implementation if we choose to do so using an interface. 46 | 47 | -------------------------------------------------------------------------------- /Demo.txt: -------------------------------------------------------------------------------- 1 | Git# demo browser (Windows only) has been moved to http://github.com/henon/GitSharp.Demo/tree -------------------------------------------------------------------------------- /Git/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | [assembly: AssemblyTitle("git")] 4 | [assembly: AssemblyDescription("Command line interface for GitSharp")] 5 | -------------------------------------------------------------------------------- /Git/README.txt: -------------------------------------------------------------------------------- 1 | CLI (Command Line Interface) is a not so close port of jgit's pgm-package and 2 | shall be equivalent to the original git command line. 3 | 4 | The implemented git commands are located in Commands 5 | The auto-generated command stubs are located in Stubs. They will be moved to Commands once implemented. 6 | 7 | The CLI commands rely on the command API in GitSharp.Commands -------------------------------------------------------------------------------- /GitSharp licence.txt: -------------------------------------------------------------------------------- 1 | Git# is Copyright (C) 2007-2009 by the Git Development Community 2 | See source file headers for specific contributor copyrights 3 | 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or 7 | without modification, are permitted provided that the following 8 | conditions are met: 9 | 10 | - Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | - Redistributions in binary form must reproduce the above 14 | copyright notice, this list of conditions and the following 15 | disclaimer in the documentation and/or other materials provided 16 | with the distribution. 17 | 18 | - Neither the name of the Git Development Community nor the 19 | names of its contributors may be used to endorse or promote 20 | products derived from this software without specific prior 21 | written permission. 22 | 23 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 24 | CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 25 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 26 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 29 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 30 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 31 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 32 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 33 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 35 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 | 37 | -------------------------------------------------------------------------------- /GitSharp.Core/CompleteAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace GitSharp.Core 4 | { 5 | [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)] 6 | sealed class CompleteAttribute : Attribute 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /GitSharp.Core/Ensure.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | 3 | namespace GitSharp.Core 4 | { 5 | public static class Ensure 6 | { 7 | public static void That(bool istrue) 8 | { 9 | Debug.Assert(istrue); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /GitSharp.Core/Exceptions/CancelledException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.Serialization; 3 | 4 | namespace GitSharp.Core.Exceptions 5 | { 6 | [Serializable] 7 | public class CancelledException : Exception 8 | { 9 | private const long serialVersionUID = 1L; 10 | 11 | // 12 | // For guidelines regarding the creation of new exception types, see 13 | // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp 14 | // and 15 | // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp 16 | // 17 | 18 | public CancelledException() 19 | { 20 | } 21 | 22 | public CancelledException(string message) : base(message) 23 | { 24 | } 25 | 26 | public CancelledException(string message, Exception inner) : base(message, inner) 27 | { 28 | } 29 | 30 | protected CancelledException(SerializationInfo info, StreamingContext context) 31 | : base(info, context) 32 | { 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /GitSharp.Core/Exceptions/CheckoutConflictException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Runtime.Serialization; 5 | 6 | namespace GitSharp.Core.Exceptions 7 | { 8 | [Serializable] 9 | public class CheckoutConflictException : Exception 10 | { 11 | /// 12 | /// Construct a for the specified file 13 | /// 14 | public CheckoutConflictException(string file) 15 | : base("Checkout conflict with file: " + file) 16 | { 17 | } 18 | /// 19 | /// Construct a for the specified file 20 | /// 21 | public CheckoutConflictException(string file, Exception inner) 22 | : base("Checkout conflict with file: " + file, inner) 23 | { 24 | } 25 | 26 | /// 27 | /// Construct a for the specified file 28 | /// 29 | /// 30 | public CheckoutConflictException(IEnumerable files) 31 | : base("Checkout conflict with files: " + BuildList(files)) 32 | { 33 | } 34 | 35 | private static string BuildList(IEnumerable files) 36 | { 37 | var builder = new StringBuilder(); 38 | foreach (string file in files) 39 | { 40 | builder.Append(Environment.NewLine); 41 | builder.Append(file); 42 | } 43 | 44 | return builder.ToString(); 45 | } 46 | 47 | protected CheckoutConflictException(SerializationInfo info, StreamingContext context) 48 | : base(info, context) 49 | { 50 | } 51 | } 52 | } -------------------------------------------------------------------------------- /GitSharp.Core/Exceptions/EntryExistsException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Runtime.Serialization; 6 | 7 | namespace GitSharp.Core.Exceptions 8 | { 9 | [Serializable] 10 | public class EntryExistsException : Exception 11 | { 12 | public EntryExistsException(string name) 13 | : base(string.Format("Tree entry \"{0}\" already exists.", name)) 14 | { 15 | } 16 | 17 | public EntryExistsException(string name, Exception inner) 18 | : base(string.Format("Tree entry \"{0}\" already exists.", name),inner) 19 | { 20 | } 21 | 22 | protected EntryExistsException(SerializationInfo info, StreamingContext context) 23 | : base(info, context) 24 | { 25 | } 26 | 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /GitSharp.Core/Exceptions/FileLockedException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.IO; 6 | 7 | namespace GitSharp.Core.Exceptions 8 | { 9 | [global::System.Serializable] 10 | public class FileLockedException : IOException 11 | { 12 | // 13 | // For guidelines regarding the creation of new exception types, see 14 | // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp 15 | // and 16 | // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp 17 | // 18 | 19 | public FileLockedException() { } 20 | public FileLockedException(string message) : base(message) { } 21 | public FileLockedException(string message, Exception inner) : base(message, inner) { } 22 | internal FileLockedException( 23 | System.Runtime.Serialization.SerializationInfo info, 24 | System.Runtime.Serialization.StreamingContext context) 25 | : base(info, context) { } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /GitSharp.Core/FnMatch/CharacterHead.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008, Florian Köberle 3 | * Copyright (C) 2009, Adriano Machado 4 | * 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or 8 | * without modification, are permitted provided that the following 9 | * conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 14 | * - Redistributions in binary form must reproduce the above 15 | * copyright notice, this list of conditions and the following 16 | * disclaimer in the documentation and/or other materials provided 17 | * with the distribution. 18 | * 19 | * - Neither the name of the Git Development Community nor the 20 | * names of its contributors may be used to endorse or promote 21 | * products derived from this software without specific prior 22 | * written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 25 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 26 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 31 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 34 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 36 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | */ 38 | 39 | namespace GitSharp.Core.FnMatch 40 | { 41 | internal class CharacterHead : AbstractHead 42 | { 43 | private readonly char _expectedChar; 44 | 45 | public CharacterHead(char expectedChar) 46 | : base(false) 47 | { 48 | _expectedChar = expectedChar; 49 | } 50 | 51 | protected internal override bool matches(char c) 52 | { 53 | return c == _expectedChar; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /GitSharp.Core/FnMatch/IHead.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008, Florian Köberle 3 | * Copyright (C) 2009, Adriano Machado 4 | * 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or 8 | * without modification, are permitted provided that the following 9 | * conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 14 | * - Redistributions in binary form must reproduce the above 15 | * copyright notice, this list of conditions and the following 16 | * disclaimer in the documentation and/or other materials provided 17 | * with the distribution. 18 | * 19 | * - Neither the name of the Git Development Community nor the 20 | * names of its contributors may be used to endorse or promote 21 | * products derived from this software without specific prior 22 | * written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 25 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 26 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 31 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 34 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 36 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | */ 38 | 39 | using System.Collections.Generic; 40 | 41 | namespace GitSharp.Core.FnMatch 42 | { 43 | public interface IHead 44 | { 45 | /// 46 | /// 47 | /// 48 | /// the character which decides which heads are returned. 49 | /// a list of heads based on the input. 50 | IList GetNextHeads(char c); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /GitSharp.Core/FnMatch/RestrictedWildCardHead.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008, Florian Köberle 3 | * Copyright (C) 2009, Adriano Machado 4 | * 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or 8 | * without modification, are permitted provided that the following 9 | * conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 14 | * - Redistributions in binary form must reproduce the above 15 | * copyright notice, this list of conditions and the following 16 | * disclaimer in the documentation and/or other materials provided 17 | * with the distribution. 18 | * 19 | * - Neither the name of the Git Development Community nor the 20 | * names of its contributors may be used to endorse or promote 21 | * products derived from this software without specific prior 22 | * written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 25 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 26 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 31 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 34 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 36 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | */ 38 | 39 | namespace GitSharp.Core.FnMatch 40 | { 41 | internal sealed class RestrictedWildCardHead : AbstractHead 42 | { 43 | private readonly char _excludedCharacter; 44 | 45 | internal RestrictedWildCardHead(char excludedCharacter, bool star) 46 | : base(star) 47 | { 48 | _excludedCharacter = excludedCharacter; 49 | } 50 | 51 | protected internal override bool matches(char c) 52 | { 53 | return c != _excludedCharacter; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /GitSharp.Core/FnMatch/WildCardHead.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008, Florian Köberle 3 | * Copyright (C) 2009, Adriano Machado 4 | * 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or 8 | * without modification, are permitted provided that the following 9 | * conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 14 | * - Redistributions in binary form must reproduce the above 15 | * copyright notice, this list of conditions and the following 16 | * disclaimer in the documentation and/or other materials provided 17 | * with the distribution. 18 | * 19 | * - Neither the name of the Git Development Community nor the 20 | * names of its contributors may be used to endorse or promote 21 | * products derived from this software without specific prior 22 | * written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 25 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 26 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 31 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 34 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 36 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | */ 38 | 39 | namespace GitSharp.Core.FnMatch 40 | { 41 | internal sealed class WildCardHead : AbstractHead 42 | { 43 | internal WildCardHead(bool star) 44 | : base(star) 45 | { 46 | } 47 | 48 | protected internal override bool matches(char c) 49 | { 50 | return true; 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /GitSharp.Core/GitException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace GitSharp.Core 4 | { 5 | [Serializable] 6 | public class GitException : Exception 7 | { 8 | // 9 | // For guidelines regarding the creation of new exception types, see 10 | // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp 11 | // and 12 | // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp 13 | // 14 | 15 | public GitException() { } 16 | public GitException(string message) : base(message) { } 17 | public GitException(string message, Exception inner) : base(message, inner) { } 18 | internal GitException( 19 | System.Runtime.Serialization.SerializationInfo info, 20 | System.Runtime.Serialization.StreamingContext context) 21 | : base(info, context) { } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /GitSharp.Core/IndexChangedEventArgs.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Copyright (C) 2008, Robin Rosenberg 4 | * Copyright (C) 2009, Robin Rosenberg 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or 9 | * without modification, are permitted provided that the following 10 | * conditions are met: 11 | * 12 | * - Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * 15 | * - Redistributions in binary form must reproduce the above 16 | * copyright notice, this list of conditions and the following 17 | * disclaimer in the documentation and/or other materials provided 18 | * with the distribution. 19 | * 20 | * - Neither the name of the Git Development Community nor the 21 | * names of its contributors may be used to endorse or promote 22 | * products derived from this software without specific prior 23 | * written permission. 24 | * 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 26 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 27 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 28 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 30 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 31 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 32 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 33 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 34 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 35 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 37 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 38 | */ 39 | 40 | namespace GitSharp.Core 41 | { 42 | public class IndexChangedEventArgs : RepositoryChangedEventArgs 43 | { 44 | public IndexChangedEventArgs(Repository repo) 45 | : base(repo) 46 | { 47 | } 48 | 49 | public override string ToString() 50 | { 51 | return string.Format("IndexChangedEventArgs[{0}]", Repository); 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /GitSharp.Core/Merge/ThreeWayMergeStrategy.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009, Google Inc. 3 | * Copyright (C) 2009, Dan Rigby 4 | * 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or 8 | * without modification, are permitted provided that the following 9 | * conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 14 | * - Redistributions in binary form must reproduce the above 15 | * copyright notice, this list of conditions and the following 16 | * disclaimer in the documentation and/or other materials provided 17 | * with the distribution. 18 | * 19 | * - Neither the name of the Git Development Community nor the 20 | * names of its contributors may be used to endorse or promote 21 | * products derived from this software without specific prior 22 | * written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 25 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 26 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 31 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 34 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 36 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | */ 38 | 39 | namespace GitSharp.Core.Merge 40 | { 41 | /// 42 | /// A merge strategy to merge 2 trees, using a common base ancestor tree. 43 | /// 44 | public abstract class ThreeWayMergeStrategy : MergeStrategy 45 | { 46 | public override abstract Merger NewMerger(Repository db); 47 | } 48 | } -------------------------------------------------------------------------------- /GitSharp.Core/ProgressMonitor.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007, Robin Rosenberg 3 | * Copyright (C) 2008, Shawn O. Pearce 4 | * Copyright (C) 2008, Kevin Thompson 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or 9 | * without modification, are permitted provided that the following 10 | * conditions are met: 11 | * 12 | * - Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * 15 | * - Redistributions in binary form must reproduce the above 16 | * copyright notice, this list of conditions and the following 17 | * disclaimer in the documentation and/or other materials provided 18 | * with the distribution. 19 | * 20 | * - Neither the name of the Git Development Community nor the 21 | * names of its contributors may be used to endorse or promote 22 | * products derived from this software without specific prior 23 | * written permission. 24 | * 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 26 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 27 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 28 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 30 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 31 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 32 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 33 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 34 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 35 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 37 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 38 | */ 39 | 40 | namespace GitSharp.Core 41 | { 42 | [Complete] 43 | public abstract class ProgressMonitor 44 | { 45 | public const int UNKNOWN = -1; 46 | 47 | public abstract void Start(int totalTasks); 48 | public abstract void BeginTask(string title, int totalWork); 49 | public abstract void Update(int completed); 50 | public abstract void EndTask(); 51 | 52 | public abstract bool IsCancelled{ get; } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /GitSharp.Core/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | [assembly: AssemblyTitle("GitSharp.Core")] 5 | [assembly: AssemblyDescription("")] 6 | 7 | [assembly: InternalsVisibleTo("GitSharp")] 8 | [assembly: InternalsVisibleTo("GitSharp.Tests")] 9 | -------------------------------------------------------------------------------- /GitSharp.Core/RefsChangedEventArgs.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Copyright (C) 2008, Robin Rosenberg 4 | * Copyright (C) 2009, Robin Rosenberg 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or 9 | * without modification, are permitted provided that the following 10 | * conditions are met: 11 | * 12 | * - Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * 15 | * - Redistributions in binary form must reproduce the above 16 | * copyright notice, this list of conditions and the following 17 | * disclaimer in the documentation and/or other materials provided 18 | * with the distribution. 19 | * 20 | * - Neither the name of the Git Development Community nor the 21 | * names of its contributors may be used to endorse or promote 22 | * products derived from this software without specific prior 23 | * written permission. 24 | * 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 26 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 27 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 28 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 30 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 31 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 32 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 33 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 34 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 35 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 37 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 38 | */ 39 | 40 | using System; 41 | 42 | namespace GitSharp.Core 43 | { 44 | 45 | 46 | public class RefsChangedEventArgs : RepositoryChangedEventArgs 47 | { 48 | 49 | public RefsChangedEventArgs(Repository repo) 50 | : base(repo) 51 | { 52 | } 53 | 54 | public override string ToString () 55 | { 56 | return string.Format("RefsChangedEventsArgs[{0}]", this.Repository); 57 | } 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /GitSharp.Core/RepositoryChangedEventArgs.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008, Robin Rosenberg 3 | * Copyright (C) 2009, Robin Rosenberg 4 | * 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or 8 | * without modification, are permitted provided that the following 9 | * conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 14 | * - Redistributions in binary form must reproduce the above 15 | * copyright notice, this list of conditions and the following 16 | * disclaimer in the documentation and/or other materials provided 17 | * with the distribution. 18 | * 19 | * - Neither the name of the Git Development Community nor the 20 | * names of its contributors may be used to endorse or promote 21 | * products derived from this software without specific prior 22 | * written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 25 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 26 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 31 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 34 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 36 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | */ 38 | 39 | using System; 40 | 41 | namespace GitSharp.Core 42 | { 43 | 44 | 45 | public class RepositoryChangedEventArgs : EventArgs 46 | { 47 | public Repository Repository { get; internal set;} 48 | 49 | public RepositoryChangedEventArgs(Repository repository) 50 | { 51 | this.Repository = repository; 52 | } 53 | 54 | public override string ToString () 55 | { 56 | return string.Format("RespositoryChangedEventArgs[{0}]", Repository); 57 | } 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /GitSharp.Core/RepositoryListener.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008, Robin Rosenberg 3 | * 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or 7 | * without modification, are permitted provided that the following 8 | * conditions are met: 9 | * 10 | * - Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 13 | * - Redistributions in binary form must reproduce the above 14 | * copyright notice, this list of conditions and the following 15 | * disclaimer in the documentation and/or other materials provided 16 | * with the distribution. 17 | * 18 | * - Neither the name of the Git Development Community nor the 19 | * names of its contributors may be used to endorse or promote 20 | * products derived from this software without specific prior 21 | * written permission. 22 | * 23 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 24 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 25 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 26 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 29 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 30 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 31 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 33 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 35 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 | */ 37 | 38 | namespace GitSharp.Core 39 | { 40 | public interface RepositoryListener 41 | { 42 | /** 43 | * Invoked when a ref changes 44 | * 45 | * @param e 46 | * information about the changes. 47 | */ 48 | void refsChanged(RefsChangedEventArgs e); 49 | 50 | /** 51 | * Invoked when the index changes 52 | * 53 | * @param e 54 | * information about the changes. 55 | */ 56 | void indexChanged(IndexChangedEventArgs e); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /GitSharp.Core/RevWalk/EndGenerator.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008, Shawn O. Pearce 3 | * Copyright (C) 2009, Henon 4 | * 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or 8 | * without modification, are permitted provided that the following 9 | * conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 14 | * - Redistributions in binary form must reproduce the above 15 | * copyright notice, this list of conditions and the following 16 | * disclaimer in the documentation and/or other materials provided 17 | * with the distribution. 18 | * 19 | * - Neither the name of the Git Development Community nor the 20 | * names of its contributors may be used to endorse or promote 21 | * products derived from this software without specific prior 22 | * written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 25 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 26 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 31 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 34 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 36 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | */ 38 | 39 | namespace GitSharp.Core.RevWalk 40 | { 41 | public class EndGenerator : Generator 42 | { 43 | public static readonly EndGenerator Instance = new EndGenerator(); 44 | 45 | public override RevCommit next() 46 | { 47 | return null; 48 | } 49 | 50 | public override GeneratorOutputType OutputType 51 | { 52 | get { return 0; } 53 | } 54 | } 55 | } -------------------------------------------------------------------------------- /GitSharp.Core/RevWalk/RevBlob.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008, Shawn O. Pearce 3 | * Copyright (C) 2009, Henon 4 | * 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or 8 | * without modification, are permitted provided that the following 9 | * conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 14 | * - Redistributions in binary form must reproduce the above 15 | * copyright notice, this list of conditions and the following 16 | * disclaimer in the documentation and/or other materials provided 17 | * with the distribution. 18 | * 19 | * - Neither the name of the Git Development Community nor the 20 | * names of its contributors may be used to endorse or promote 21 | * products derived from this software without specific prior 22 | * written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 25 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 26 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 31 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 34 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 36 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | */ 38 | 39 | namespace GitSharp.Core.RevWalk 40 | { 41 | /// 42 | /// A binary file, or a symbolic link. 43 | /// 44 | public class RevBlob : RevObject 45 | { 46 | /// 47 | /// Create a new blob reference. 48 | /// 49 | /// object name for the blob. 50 | internal RevBlob(AnyObjectId id) 51 | : base(id) 52 | { 53 | } 54 | 55 | public override int Type 56 | { 57 | get { return Constants.OBJ_BLOB; } 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /GitSharp.Core/RevWalk/RevTree.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008, Shawn O. Pearce 3 | * Copyright (C) 2009, Henon 4 | * 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or 8 | * without modification, are permitted provided that the following 9 | * conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 14 | * - Redistributions in binary form must reproduce the above 15 | * copyright notice, this list of conditions and the following 16 | * disclaimer in the documentation and/or other materials provided 17 | * with the distribution. 18 | * 19 | * - Neither the name of the Git Development Community nor the 20 | * names of its contributors may be used to endorse or promote 21 | * products derived from this software without specific prior 22 | * written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 25 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 26 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 31 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 34 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 36 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | */ 38 | 39 | namespace GitSharp.Core.RevWalk 40 | { 41 | /// 42 | /// A reference to a tree of subtrees/files. 43 | /// 44 | public class RevTree : RevObject 45 | { 46 | /// 47 | /// Create a new tree reference. 48 | /// 49 | /// Object name for the tree. 50 | internal RevTree(AnyObjectId id) 51 | : base(id) 52 | { 53 | } 54 | 55 | public override int Type 56 | { 57 | get { return Constants.OBJ_TREE; } 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /GitSharp.Core/Transport/IPackTransport.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008, Shawn O. Pearce 3 | * Copyright (C) 2009, JetBrains s.r.o. 4 | * 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or 8 | * without modification, are permitted provided that the following 9 | * conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 14 | * - Redistributions in binary form must reproduce the above 15 | * copyright notice, this list of conditions and the following 16 | * disclaimer in the documentation and/or other materials provided 17 | * with the distribution. 18 | * 19 | * - Neither the name of the Git Development Community nor the 20 | * names of its contributors may be used to endorse or promote 21 | * products derived from this software without specific prior 22 | * written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 25 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 26 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 31 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 34 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 36 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | */ 38 | 39 | namespace GitSharp.Core.Transport 40 | { 41 | 42 | /** 43 | * Marker interface an object transport using Git pack transfers. 44 | * 45 | * Implementations of PackTransport setup connections and move objects back and 46 | * forth by creating pack files on the source side and indexing them on the 47 | * receiving side. 48 | * 49 | * @see BasePackFetchConnection 50 | * @see BasePackPushConnection 51 | */ 52 | public interface IPackTransport 53 | { 54 | // no methods in marker interface 55 | } 56 | 57 | } -------------------------------------------------------------------------------- /GitSharp.Core/Transport/LongMap.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace GitSharp.Core.Transport 4 | { 5 | /// 6 | /// Simple Map<long,Object> helper for . 7 | /// 8 | /// type of the value instance 9 | public class LongMap 10 | { 11 | readonly Dictionary _map = new Dictionary(); 12 | 13 | public bool containsKey(long key) 14 | { 15 | return _map.ContainsKey(key); 16 | } 17 | 18 | public V get(long key) 19 | { 20 | return _map.get(key); 21 | } 22 | 23 | public V remove(long key) 24 | { 25 | return _map.remove(key); 26 | } 27 | 28 | public V put(long key, V value) 29 | { 30 | return _map.put(key, value); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /GitSharp.Core/Treeish.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007, Robin Rosenberg 3 | * Copyright (C) 2007, Shawn O. Pearce 4 | * Copyright (C) 2008, Kevin Thompson 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or 9 | * without modification, are permitted provided that the following 10 | * conditions are met: 11 | * 12 | * - Redistributions of source code must retain the above copyright 13 | * notice, this list of conditions and the following disclaimer. 14 | * 15 | * - Redistributions in binary form must reproduce the above 16 | * copyright notice, this list of conditions and the following 17 | * disclaimer in the documentation and/or other materials provided 18 | * with the distribution. 19 | * 20 | * - Neither the name of the Git Development Community nor the 21 | * names of its contributors may be used to endorse or promote 22 | * products derived from this software without specific prior 23 | * written permission. 24 | * 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 26 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 27 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 28 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 30 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 31 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 32 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 33 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 34 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 35 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 37 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 38 | */ 39 | 40 | using System; 41 | using System.Collections.Generic; 42 | using System.Linq; 43 | using System.Text; 44 | 45 | namespace GitSharp.Core 46 | { 47 | [Complete] 48 | public interface Treeish 49 | { 50 | ObjectId TreeId{ get; } 51 | Tree TreeEntry{ get; } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /GitSharp.Core/Util/GenericComparer.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009, Henon 3 | * 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or 7 | * without modification, are permitted provided that the following 8 | * conditions are met: 9 | * 10 | * - Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 13 | * - Redistributions in binary form must reproduce the above 14 | * copyright notice, this list of conditions and the following 15 | * disclaimer in the documentation and/or other materials provided 16 | * with the distribution. 17 | * 18 | * - Neither the name of the Git Development Community nor the 19 | * names of its contributors may be used to endorse or promote 20 | * products derived from this software without specific prior 21 | * written permission. 22 | * 23 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 24 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 25 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 26 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 29 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 30 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 31 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 33 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 35 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 | */ 37 | 38 | using System; 39 | using System.Collections.Generic; 40 | using System.Linq; 41 | using System.Text; 42 | 43 | namespace GitSharp.Core.Util 44 | { 45 | public class GenericComparer : IComparer 46 | { 47 | private Comparison cmp; 48 | public GenericComparer(Comparison comparison) 49 | { 50 | cmp = comparison; 51 | } 52 | 53 | #region IComparer Members 54 | 55 | public int Compare(T x, T y) 56 | { 57 | return cmp(x, y); 58 | } 59 | 60 | #endregion 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /GitSharp.Core/Util/IListUtil.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace GitSharp.Core.Util 4 | { 5 | public static class IListUtil 6 | { 7 | public static bool isEmpty(this ICollection l) 8 | { 9 | if (l == null) 10 | throw new System.ArgumentNullException ("l"); 11 | return l.Count == 0; 12 | } 13 | 14 | public static bool isEmpty(this IDictionary d) 15 | { 16 | if (d == null) 17 | throw new System.ArgumentNullException ("d"); 18 | return (d.Count == 0); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /GitSharp.Core/Util/JavaHelper/AtomicInteger.cs: -------------------------------------------------------------------------------- 1 | namespace GitSharp.Core.Util.JavaHelper 2 | { 3 | public class AtomicInteger : AtomicValue 4 | { 5 | public AtomicInteger(int init) 6 | : base(init) 7 | { 8 | } 9 | 10 | public AtomicInteger() 11 | { 12 | } 13 | 14 | protected override int InnerAdd(int value, int delta) 15 | { 16 | return value + delta; 17 | } 18 | 19 | protected override int One 20 | { 21 | get { return 1; } 22 | } 23 | 24 | protected override int MinusOne 25 | { 26 | get { return -1; } 27 | } 28 | } 29 | 30 | public class AtomicLong : AtomicValue 31 | { 32 | public AtomicLong(int init) 33 | : base(init) 34 | { 35 | } 36 | 37 | public AtomicLong() 38 | { 39 | } 40 | 41 | protected override long InnerAdd(long value, long delta) 42 | { 43 | return value + delta; 44 | } 45 | 46 | protected override long One 47 | { 48 | get { return 1; } 49 | } 50 | 51 | protected override long MinusOne 52 | { 53 | get { return -1; } 54 | } 55 | } 56 | } 57 | 58 | 59 | -------------------------------------------------------------------------------- /GitSharp.Core/Util/JavaHelper/Charset.cs: -------------------------------------------------------------------------------- 1 | using System.Text; 2 | 3 | namespace GitSharp.Core.Util.JavaHelper 4 | { 5 | public static class Charset 6 | { 7 | public static Encoding forName(string encodingAlias) 8 | { 9 | Encoding encoder; 10 | 11 | if (encodingAlias == "euc_JP") 12 | { 13 | encodingAlias = "EUC-JP"; // Hacked as euc_JP is not valid from the IANA perspective (http://www.iana.org/assignments/character-sets) 14 | // See also http://tagunov.tripod.com/i18n/jdk11enc.html for further historical information 15 | } 16 | 17 | switch (encodingAlias.ToUpperInvariant()) 18 | { 19 | case "UTF-8": 20 | encoder = new UTF8Encoding(false, true); 21 | break; 22 | 23 | default: 24 | encoder = Encoding.GetEncoding(encodingAlias, new EncoderExceptionFallback(), new DecoderExceptionFallback()); 25 | break; 26 | } 27 | 28 | return encoder; 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /GitSharp.Core/Util/JavaHelper/Properties.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace GitSharp.Core.Util.JavaHelper 4 | { 5 | public class Properties 6 | { 7 | public string getProperty(string key) 8 | { 9 | throw new NotImplementedException(); 10 | } 11 | 12 | public string getProperty(string key, string defaultValue) 13 | { 14 | throw new NotImplementedException(); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /GitSharp.Core/Util/MutableInteger.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008, Shawn O. Pearce 3 | * Copyright (C) 2009, Henon 4 | * 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or 8 | * without modification, are permitted provided that the following 9 | * conditions are met: 10 | * 11 | * - Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 14 | * - Redistributions in binary form must reproduce the above 15 | * copyright notice, this list of conditions and the following 16 | * disclaimer in the documentation and/or other materials provided 17 | * with the distribution. 18 | * 19 | * - Neither the name of the Git Development Community nor the 20 | * names of its contributors may be used to endorse or promote 21 | * products derived from this software without specific prior 22 | * written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 25 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 26 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 27 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 31 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 34 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 36 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37 | */ 38 | 39 | 40 | using System; 41 | using System.Collections.Generic; 42 | using System.Linq; 43 | using System.Text; 44 | 45 | namespace GitSharp.Core.Util 46 | { 47 | /** A boxed integer that can be modified. */ 48 | public class MutableInteger 49 | { 50 | /** Current value of this boxed value. */ 51 | public int value; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp.Core/Crc32Tests.cs: -------------------------------------------------------------------------------- 1 | using GitSharp.Core.Util; 2 | using NUnit.Framework; 3 | 4 | namespace GitSharp.Core.Tests 5 | { 6 | [TestFixture] 7 | public class Crc32Tests 8 | { 9 | [Test] 10 | public void Tests() 11 | { 12 | var crc = new Crc32(); 13 | Assert.AreEqual(0, crc.Value); 14 | crc.Update(145); 15 | Assert.AreEqual(1426738271, crc.Value); 16 | crc.Update(123456789); 17 | Assert.AreEqual(1147030863, crc.Value); 18 | var data = new byte[] { 145, 234, 156 }; 19 | crc.Update(data); 20 | Assert.AreEqual(3967437022, crc.Value); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp.Core/IndexDiffTest.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/GitSharp.Core/IndexDiffTest.cs -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp.Core/IndexModifiedTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Threading; 4 | using GitSharp.Core; 5 | using GitSharp.Core.Tests.Util; 6 | using GitSharp.Tests.GitSharp.Core.Util; 7 | using NUnit.Framework; 8 | using FileMode = GitSharp.Core.FileMode; 9 | 10 | namespace GitSharp.Core.Tests 11 | { 12 | [TestFixture] 13 | public class IndexModifiedTests : RepositoryTestCase 14 | { 15 | [Test] 16 | public void ShouldSupportExtensionlessFiles() 17 | { 18 | var index = new GitIndex(db); 19 | 20 | writeTrashFile("extensionless-file", "contents"); 21 | 22 | var file = new FileInfo(Path.Combine(trash.FullName, "extensionless-file")); 23 | 24 | index.add(trash, file); 25 | 26 | var entry = index.GetEntry("extensionless-file"); 27 | 28 | Assert.IsFalse(entry.IsModified(trash, true)); 29 | } 30 | 31 | [Test] 32 | public void ShouldSupportNotModifiedExtensionlessFilesWithoutContentChecking() 33 | { 34 | var index = new GitIndex(db); 35 | 36 | writeTrashFile("extensionless-file", "contents"); 37 | 38 | var file = new FileInfo(Path.Combine(trash.FullName, "extensionless-file")); 39 | 40 | index.add(trash, file); 41 | 42 | var entry = index.GetEntry("extensionless-file"); 43 | 44 | Assert.IsFalse(entry.IsModified(trash)); 45 | } 46 | 47 | [Test] 48 | public void ShouldAllowComparingOfAlreadyOpenedFile() 49 | { 50 | var index = new GitIndex(db); 51 | var file = writeTrashFile("extensionless-file", "contents"); 52 | 53 | index.add(trash, file); 54 | 55 | var entry = index.GetEntry("extensionless-file"); 56 | 57 | // [henon] failed on my windows box (originally only observed on mono/unix) when executed in resharper or with nunit without waiting a second! 58 | // as the timing is not the point of the test here let's wait a sec anyway. 59 | Thread.Sleep(TimeSpan.FromSeconds(1)); 60 | 61 | // replace contents of file (with same size so it passes the size check) 62 | using (var writer = file.CreateText()) 63 | writer.Write("stnetnoc"); 64 | 65 | // opening the file for reading shoudn't block us from checking the contents 66 | using (file.OpenRead()) 67 | Assert.IsTrue(entry.IsModified(trash, true)); 68 | } 69 | } 70 | } -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp.Core/Patch/BasePatchTest.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using System.Text; 3 | using GitSharp.Core.Patch; 4 | using NUnit.Framework; 5 | 6 | namespace GitSharp.Core.Tests.Patch 7 | { 8 | public class BasePatchTest 9 | { 10 | protected const string DiffsDir = "Resources/Diff/"; 11 | protected const string PatchsDir = "Resources/Patch/"; 12 | 13 | protected static GitSharp.Core.Patch.Patch ParseTestPatchFile(string patchFile) 14 | { 15 | try 16 | { 17 | using (var inStream = new FileStream(patchFile, System.IO.FileMode.Open)) 18 | { 19 | var p = new GitSharp.Core.Patch.Patch(); 20 | p.parse(inStream); 21 | return p; 22 | } 23 | } 24 | catch(IOException) 25 | { 26 | Assert.Fail("No " + patchFile + " test vector"); 27 | return null; // Never happens 28 | } 29 | } 30 | 31 | protected static string GetAllErrorsFromPatch(GitSharp.Core.Patch.Patch patch) 32 | { 33 | if (patch == null || patch.getErrors().Count == 0) 34 | { 35 | return string.Empty; 36 | } 37 | 38 | var sb = new StringBuilder(); 39 | 40 | foreach (FormatError formatError in patch.getErrors()) 41 | { 42 | sb.AppendLine(formatError.getMessage()); 43 | } 44 | 45 | return sb.ToString(); 46 | } 47 | } 48 | } -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp.Core/Transport/BaseConnectionTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using GitSharp.Core; 6 | using GitSharp.Core.Transport; 7 | using NUnit.Framework; 8 | 9 | namespace GitSharp.Core.Tests.Transport 10 | { 11 | [TestFixture] 12 | public class BaseConnectionTests 13 | { 14 | [Test] 15 | public void ShouldReturnNullForAnInvalidRef() 16 | { 17 | var connection = new StubConnection(); 18 | 19 | Assert.IsNull(connection.GetRef("invalid ref")); 20 | } 21 | 22 | [Test] 23 | public void ShouldReturnValueForAValidRef() 24 | { 25 | var connection = new StubConnection(); 26 | var r = new Unpeeled(null, "ref", ObjectId.ZeroId); 27 | 28 | connection.RefsMap.Add("ref", r); 29 | 30 | Assert.AreEqual(r, connection.GetRef("ref")); 31 | } 32 | 33 | private class StubConnection : BaseConnection, IPushConnection 34 | { 35 | public override void Close() 36 | {} 37 | 38 | public void Push(ProgressMonitor monitor, IDictionary refUpdates) 39 | {} 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp.Core/Transport/OperationResultTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using GitSharp.Core; 6 | using GitSharp.Core.Transport; 7 | using NUnit.Framework; 8 | 9 | namespace GitSharp.Core.Tests.Transport 10 | { 11 | [TestFixture] 12 | public class OperationResultTests 13 | { 14 | [Test] 15 | public void ShouldReturnNullForAnInvalidRef() 16 | { 17 | var result = new PushResult(); 18 | 19 | Assert.IsNull(result.GetAdvertisedRef("invalid ref")); 20 | } 21 | 22 | [Test] 23 | public void ShouldReturnValueForAValidRef() 24 | { 25 | var result = new PushResult(); 26 | var r = new Unpeeled(null, "ref", ObjectId.ZeroId); 27 | 28 | var refs = result.AdvertisedRefs; 29 | var advRefs = refs.ToDictionary(@ref => @ref.Name); 30 | 31 | advRefs.Add("ref", r); 32 | 33 | result.SetAdvertisedRefs(result.URI, advRefs); 34 | 35 | Assert.AreEqual(r, result.GetAdvertisedRef("ref")); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp.Core/Util/AssertHelperFixture.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using GitSharp.Tests.GitSharp.Core.Util; 3 | using NUnit.Framework; 4 | 5 | namespace GitSharp.Core.Tests.Util 6 | { 7 | [TestFixture] 8 | public class AssertHelperFixture 9 | { 10 | [Test] 11 | public void TestPassWhenThrowingTheCorrectException() 12 | { 13 | AssertHelper.Throws(() => { throw new InvalidOperationException(); }); 14 | } 15 | 16 | [Test] 17 | public void WhenOfTheCorrectTypeThrownExceptionCanBeFurtherExamined() 18 | { 19 | var e = AssertHelper.Throws(() => { throw new InvalidOperationException("Hi from below"); }); 20 | Assert.AreEqual("Hi from below", e.Message); 21 | } 22 | 23 | [Test] 24 | public void ThrownExceptionCanBeDerivedFromExpected() 25 | { 26 | var e = AssertHelper.Throws(() => { throw new InvalidOperationException("Was invalid."); }); 27 | 28 | var castE = (InvalidOperationException)e; 29 | Assert.AreEqual("Was invalid.", castE.Message); 30 | } 31 | 32 | [Test] 33 | public void ThrownExceptionHasToBeOfTheExactType() 34 | { 35 | try 36 | { 37 | AssertHelper.Throws(() => { throw new InvalidOperationException(); }); 38 | } 39 | catch (AssertionException e) 40 | { 41 | StringAssert.Contains(typeof (ArgumentOutOfRangeException).FullName, e.Message); 42 | StringAssert.Contains(typeof (InvalidOperationException).FullName, e.Message); 43 | return; 44 | } 45 | 46 | Assert.Fail(); 47 | } 48 | 49 | [Test] 50 | public void NotThrowingExceptionLeadsTheTestToFail() 51 | { 52 | try 53 | { 54 | AssertHelper.Throws(() => { return; }); 55 | } 56 | catch (AssertionException e) 57 | { 58 | StringAssert.Contains(typeof (ArgumentOutOfRangeException).FullName, e.Message); 59 | return; 60 | } 61 | 62 | Assert.Fail(); 63 | } 64 | } 65 | } -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp.Core/Util/MockFileBasedConfig.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009, Yann Simon 3 | * 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions are met: 8 | * 9 | * - Redistributions of source code must retain the above copyright notice, this 10 | * list of conditions and the following disclaimer. 11 | * 12 | * - Redistributions in binary form must reproduce the above copyright notice, 13 | * this list of conditions and the following disclaimer in the documentation 14 | * and/or other materials provided with the distribution. 15 | * 16 | * - Neither the name of the Eclipse Foundation, Inc. nor the 17 | * contributors may be used to endorse or promote products derived from this 18 | * software without specific prior written permission. 19 | * 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 24 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 | * POSSIBILITY OF SUCH DAMAGE. 31 | */ 32 | 33 | using System.IO; 34 | using GitSharp.Core; 35 | 36 | namespace GitSharp.Tests.GitSharp.Core.Util 37 | { 38 | public class MockFileBasedConfig : FileBasedConfig 39 | { 40 | public MockFileBasedConfig(FileInfo cfgLocation) : base(null) 41 | { 42 | } 43 | 44 | public override void load() 45 | { 46 | // Do nothing 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp.Core/Util/PathUtils.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Text; 6 | using GitSharp.Core.Util; 7 | using NUnit.Framework; 8 | 9 | namespace GitSharp.Tests.GitSharp.Core.Util 10 | { 11 | [TestFixture] 12 | public class PathUtilsTest 13 | { 14 | [Test] 15 | public void RelativePath() 16 | { 17 | Assert.AreEqual(Join("foo","bar","baz"), PathUtil.RelativePath(@"\foo\bar\baz", @"\foo\bar\baz\foo\bar\baz")); 18 | Assert.AreEqual(Join("foo", "bar", "baz"), PathUtil.RelativePath(@"/foo/bar/baz", @"/foo/bar/baz/foo/bar/\//\baz")); 19 | Assert.AreEqual(Join("..",".."), PathUtil.RelativePath(@"\foo\bar\baz", @"\foo")); 20 | Assert.AreEqual("path", PathUtil.RelativePath(@"foo/bar/baz", @"path")); 21 | Assert.AreEqual(Join("..", ".."), PathUtil.RelativePath(@"\foo\bar\baz", @"../..")); 22 | Assert.AreEqual("hmm.txt", PathUtil.RelativePath(@"\foo\bar\baz", @"hmm.txt")); 23 | Assert.AreEqual("", PathUtil.RelativePath(@"\foo\bar\baz", @"/foo/bar\baz")); 24 | Assert.AreEqual(Join("","foo","bar","baz"), PathUtil.RelativePath(@"foo\bar\baz", @"/foo/bar\baz")); 25 | } 26 | 27 | private string Join(params string[] parts) 28 | { 29 | return string.Join(Path.DirectorySeparatorChar.ToString(), parts); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp.Core/Util/VariousUtilityTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using NUnit.Framework; 6 | using GitSharp.Core.Util; 7 | 8 | namespace GitSharp.Core.Tests.Util 9 | { 10 | [TestFixture] 11 | public class VariousUtilityTests 12 | { 13 | [Test] 14 | public void TestBitCount() 15 | { 16 | Assert.AreEqual(1, (2 << 5).BitCount()); 17 | Assert.AreEqual(1, 1.BitCount()); 18 | Assert.AreEqual(2, 3.BitCount()); 19 | } 20 | 21 | [Test] 22 | public void TestNumberOfTrailingZeros() 23 | { 24 | Assert.AreEqual(0, 1.NumberOfTrailingZeros()); 25 | Assert.AreEqual(1, 2.NumberOfTrailingZeros()); 26 | Assert.AreEqual(6, (2 << 5).NumberOfTrailingZeros()); 27 | Assert.AreEqual(0, ((2 << 5)+1).NumberOfTrailingZeros()); 28 | } 29 | 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp.Core/sample/README: -------------------------------------------------------------------------------- 1 | Hello World 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp.Core/sample/unpacked: -------------------------------------------------------------------------------- 1 | hi this is a loose object 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp/CommitTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/GitSharp/CommitTests.cs -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp/IndexTest.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/GitSharp/IndexTest.cs -------------------------------------------------------------------------------- /GitSharp.Tests/GitSharp/RepositoryConfigTest.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using GitSharp.Tests.GitSharp; 3 | using NUnit.Framework; 4 | 5 | namespace GitSharp.API.Tests 6 | { 7 | [TestFixture] 8 | public class RepositoryConfigTest : ApiTestCase 9 | { 10 | [Test] 11 | public void PersistsSavesConfigChangesToDisk() 12 | { 13 | string workingDirectory = Path.Combine(trash.FullName, Path.GetRandomFileName()); 14 | 15 | // Creating a new repo 16 | using (var repo = Repository.Init(workingDirectory)) 17 | { 18 | // Setting the in-memory commitencoding configuration entry 19 | repo.Config["section.key"] = "value"; 20 | 21 | // Saving to disk 22 | repo.Config.Persist(); 23 | } 24 | 25 | using (var repo = new Repository(workingDirectory)) 26 | { 27 | Assert.AreEqual("value", repo.Config["section.key"]); 28 | } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /GitSharp.Tests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | [assembly: AssemblyTitle("GitSharp.Tests")] 4 | [assembly: AssemblyDescription("")] 5 | -------------------------------------------------------------------------------- /GitSharp.Tests/README.txt: -------------------------------------------------------------------------------- 1 | GitSharp.Tests holds all unit tests. Most of them are ported from jgit. 2 | You can run or debug this test suite by executing a test runner of your 3 | choice. We recommend Gallio Icarus (http://www.gallio.org/). 4 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | Commit made through msysgit. 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = false 4 | bare = false 5 | logallrefupdates = true 6 | symlinks = false 7 | ignorecase = true 8 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/description: -------------------------------------------------------------------------------- 1 | Unnamed repository; edit this file 'description' to name the repository. 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/hooks/applypatch-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message taken by 4 | # applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. The hook is 8 | # allowed to edit the commit message file. 9 | # 10 | # To enable this hook, rename this file to "applypatch-msg". 11 | 12 | . git-sh-setup 13 | test -x "$GIT_DIR/hooks/commit-msg" && 14 | exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} 15 | : 16 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/hooks/commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message. 4 | # Called by git-commit with one argument, the name of the file 5 | # that has the commit message. The hook should exit with non-zero 6 | # status after issuing an appropriate message if it wants to stop the 7 | # commit. The hook is allowed to edit the commit message file. 8 | # 9 | # To enable this hook, rename this file to "commit-msg". 10 | 11 | # Uncomment the below to add a Signed-off-by line to the message. 12 | # Doing this in a hook is a bad idea in general, but the prepare-commit-msg 13 | # hook is more suited to it. 14 | # 15 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 16 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 17 | 18 | # This example catches duplicate Signed-off-by lines. 19 | 20 | test "" = "$(grep '^Signed-off-by: ' "$1" | 21 | sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { 22 | echo >&2 Duplicate Signed-off-by lines. 23 | exit 1 24 | } 25 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/hooks/post-commit.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script that is called after a successful 4 | # commit is made. 5 | # 6 | # To enable this hook, rename this file to "post-commit". 7 | 8 | : Nothing 9 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/hooks/post-receive.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script for the "post-receive" event. 4 | # 5 | # The "post-receive" script is run after receive-pack has accepted a pack 6 | # and the repository has been updated. It is passed arguments in through 7 | # stdin in the form 8 | # 9 | # For example: 10 | # aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master 11 | # 12 | # see contrib/hooks/ for an sample, or uncomment the next line and 13 | # rename the file to "post-receive". 14 | 15 | #. /usr/share/doc/git-core/contrib/hooks/post-receive-email 16 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/hooks/post-update.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare a packed repository for use over 4 | # dumb transports. 5 | # 6 | # To enable this hook, rename this file to "post-update". 7 | 8 | exec git-update-server-info 9 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/hooks/pre-applypatch.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed 4 | # by applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. 8 | # 9 | # To enable this hook, rename this file to "pre-applypatch". 10 | 11 | . git-sh-setup 12 | test -x "$GIT_DIR/hooks/pre-commit" && 13 | exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"} 14 | : 15 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/hooks/pre-commit.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed. 4 | # Called by git-commit with no arguments. The hook should 5 | # exit with non-zero status after issuing an appropriate message if 6 | # it wants to stop the commit. 7 | # 8 | # To enable this hook, rename this file to "pre-commit". 9 | 10 | if git-rev-parse --verify HEAD >/dev/null 2>&1 11 | then 12 | against=HEAD 13 | else 14 | # Initial commit: diff against an empty tree object 15 | against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 16 | fi 17 | 18 | exec git diff-index --check --cached $against -- 19 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/hooks/prepare-commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare the commit log message. 4 | # Called by git-commit with the name of the file that has the 5 | # commit message, followed by the description of the commit 6 | # message's source. The hook's purpose is to edit the commit 7 | # message file. If the hook fails with a non-zero status, 8 | # the commit is aborted. 9 | # 10 | # To enable this hook, rename this file to "prepare-commit-msg". 11 | 12 | # This hook includes three examples. The first comments out the 13 | # "Conflicts:" part of a merge commit. 14 | # 15 | # The second includes the output of "git diff --name-status -r" 16 | # into the message, just before the "git status" output. It is 17 | # commented because it doesn't cope with --amend or with squashed 18 | # commits. 19 | # 20 | # The third example adds a Signed-off-by line to the message, that can 21 | # still be edited. This is rarely a good idea. 22 | 23 | case "$2,$3" in 24 | merge,) 25 | perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;; 26 | 27 | # ,|template,) 28 | # perl -i.bak -pe ' 29 | # print "\n" . `git diff --cached --name-status -r` 30 | # if /^#/ && $first++ == 0' "$1" ;; 31 | 32 | *) ;; 33 | esac 34 | 35 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 36 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 37 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/CorruptIndex/.gitted/index -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/info/exclude: -------------------------------------------------------------------------------- 1 | # git-ls-files --others --exclude-from=.git/info/exclude 2 | # Lines that start with '#' are comments. 3 | # For a project mostly in C, the following would be a good set of 4 | # exclude patterns (uncomment them if you want to use them): 5 | # *.[oa] 6 | # *~ 7 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/logs/HEAD: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 dc8d7f3d2d19bdf3a6daa007102bc7bef76aa8ac nulltoken 1256476701 +0100 commit (initial): Commit made through msysgit. 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 dc8d7f3d2d19bdf3a6daa007102bc7bef76aa8ac nulltoken 1256476701 +0100 commit (initial): Commit made through msysgit. 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/objects/1a/602d9bd07ce5272ddaa64e21da12dbca2b8c9f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/CorruptIndex/.gitted/objects/1a/602d9bd07ce5272ddaa64e21da12dbca2b8c9f -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/objects/2e/65efe2a145dda7ee51d1741299f848e5bf752e: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/CorruptIndex/.gitted/objects/2e/65efe2a145dda7ee51d1741299f848e5bf752e -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/objects/63/d8dbd40c23542e740659a7168a0ce3138ea748: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/CorruptIndex/.gitted/objects/63/d8dbd40c23542e740659a7168a0ce3138ea748 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/objects/dc/8d7f3d2d19bdf3a6daa007102bc7bef76aa8ac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/CorruptIndex/.gitted/objects/dc/8d7f3d2d19bdf3a6daa007102bc7bef76aa8ac -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/objects/info/marker.txt: -------------------------------------------------------------------------------- 1 | Nothing interesting here. Only a file to make sure parent directory is being considered by git. -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/objects/pack/marker.txt: -------------------------------------------------------------------------------- 1 | Nothing interesting here. Only a file to make sure parent directory is being considered by git. -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/.gitted/refs/heads/master: -------------------------------------------------------------------------------- 1 | dc8d7f3d2d19bdf3a6daa007102bc7bef76aa8ac 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/a.txt: -------------------------------------------------------------------------------- 1 | a -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/CorruptIndex/b.txt: -------------------------------------------------------------------------------- 1 | b -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/.gitattributes: -------------------------------------------------------------------------------- 1 | *.patch -crlf 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/E.patch: -------------------------------------------------------------------------------- 1 | diff --git a/E b/E 2 | index e69de29..7898192 100644 3 | --- a/E 4 | +++ b/E 5 | @@ -0,0 +1 @@ 6 | +a 7 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/E_PostImage: -------------------------------------------------------------------------------- 1 | a 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/E_PreImage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/Diff/E_PreImage -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/X.patch: -------------------------------------------------------------------------------- 1 | diff --git a/X b/X 2 | index a3648a1..2d44096 100644 3 | --- a/X 4 | +++ b/X 5 | @@ -2,2 +2,3 @@ a 6 | b 7 | +c 8 | d 9 | @@ -16,4 +17,2 @@ p 10 | q 11 | -r 12 | -s 13 | t 14 | @@ -22,4 +21,8 @@ v 15 | w 16 | -x 17 | -y 18 | +0 19 | +1 20 | +2 21 | +3 22 | +4 23 | +5 24 | z 25 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/X_PostImage: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | d 5 | e 6 | f 7 | g 8 | h 9 | i 10 | j 11 | k 12 | l 13 | m 14 | n 15 | o 16 | p 17 | q 18 | t 19 | u 20 | v 21 | w 22 | 0 23 | 1 24 | 2 25 | 3 26 | 4 27 | 5 28 | z 29 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/X_PreImage: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | d 4 | e 5 | f 6 | g 7 | h 8 | i 9 | j 10 | k 11 | l 12 | m 13 | n 14 | o 15 | p 16 | q 17 | r 18 | s 19 | t 20 | u 21 | v 22 | w 23 | x 24 | y 25 | z 26 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/Y.patch: -------------------------------------------------------------------------------- 1 | diff --git a/Y b/Y 2 | index 2e65efe..7898192 100644 3 | --- a/Y 4 | +++ b/Y 5 | @@ -1 +1 @@ 6 | -a 7 | \ No newline at end of file 8 | +a 9 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/Y_PostImage: -------------------------------------------------------------------------------- 1 | a 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/Y_PreImage: -------------------------------------------------------------------------------- 1 | a -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/Z.patch: -------------------------------------------------------------------------------- 1 | diff --git a/Z b/Z 2 | index 7898192..2e65efe 100644 3 | --- a/Z 4 | +++ b/Z 5 | @@ -1 +1 @@ 6 | -a 7 | +a 8 | \ No newline at end of file 9 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/Z_PostImage: -------------------------------------------------------------------------------- 1 | a -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/Z_PreImage: -------------------------------------------------------------------------------- 1 | a 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/testContext0.out: -------------------------------------------------------------------------------- 1 | diff --git a/X b/X 2 | index a3648a1..2d44096 100644 3 | --- a/X 4 | +++ b/X 5 | @@ -2,0 +3 @@ 6 | +c 7 | @@ -17,2 +17,0 @@ 8 | -r 9 | -s 10 | @@ -23,2 +22,6 @@ 11 | -x 12 | -y 13 | +0 14 | +1 15 | +2 16 | +3 17 | +4 18 | +5 19 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/testContext1.out: -------------------------------------------------------------------------------- 1 | diff --git a/X b/X 2 | index a3648a1..2d44096 100644 3 | --- a/X 4 | +++ b/X 5 | @@ -2,2 +2,3 @@ 6 | b 7 | +c 8 | d 9 | @@ -16,4 +17,2 @@ 10 | q 11 | -r 12 | -s 13 | t 14 | @@ -22,4 +21,8 @@ 15 | w 16 | -x 17 | -y 18 | +0 19 | +1 20 | +2 21 | +3 22 | +4 23 | +5 24 | z 25 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/testContext10.out: -------------------------------------------------------------------------------- 1 | diff --git a/X b/X 2 | index a3648a1..2d44096 100644 3 | --- a/X 4 | +++ b/X 5 | @@ -1,25 +1,28 @@ 6 | a 7 | b 8 | +c 9 | d 10 | e 11 | f 12 | g 13 | h 14 | i 15 | j 16 | k 17 | l 18 | m 19 | n 20 | o 21 | p 22 | q 23 | -r 24 | -s 25 | t 26 | u 27 | v 28 | w 29 | -x 30 | -y 31 | +0 32 | +1 33 | +2 34 | +3 35 | +4 36 | +5 37 | z 38 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/testContext100.out: -------------------------------------------------------------------------------- 1 | diff --git a/X b/X 2 | index a3648a1..2d44096 100644 3 | --- a/X 4 | +++ b/X 5 | @@ -1,25 +1,28 @@ 6 | a 7 | b 8 | +c 9 | d 10 | e 11 | f 12 | g 13 | h 14 | i 15 | j 16 | k 17 | l 18 | m 19 | n 20 | o 21 | p 22 | q 23 | -r 24 | -s 25 | t 26 | u 27 | v 28 | w 29 | -x 30 | -y 31 | +0 32 | +1 33 | +2 34 | +3 35 | +4 36 | +5 37 | z 38 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/testContext3.out: -------------------------------------------------------------------------------- 1 | diff --git a/X b/X 2 | index a3648a1..2d44096 100644 3 | --- a/X 4 | +++ b/X 5 | @@ -1,5 +1,6 @@ 6 | a 7 | b 8 | +c 9 | d 10 | e 11 | f 12 | @@ -14,12 +15,14 @@ 13 | o 14 | p 15 | q 16 | -r 17 | -s 18 | t 19 | u 20 | v 21 | w 22 | -x 23 | -y 24 | +0 25 | +1 26 | +2 27 | +3 28 | +4 29 | +5 30 | z 31 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Diff/testContext5.out: -------------------------------------------------------------------------------- 1 | diff --git a/X b/X 2 | index a3648a1..2d44096 100644 3 | --- a/X 4 | +++ b/X 5 | @@ -1,7 +1,8 @@ 6 | a 7 | b 8 | +c 9 | d 10 | e 11 | f 12 | g 13 | h 14 | @@ -12,14 +13,16 @@ 15 | m 16 | n 17 | o 18 | p 19 | q 20 | -r 21 | -s 22 | t 23 | u 24 | v 25 | w 26 | -x 27 | -y 28 | +0 29 | +1 30 | +2 31 | +3 32 | +4 33 | +5 34 | z 35 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = false 4 | bare = false 5 | logallrefupdates = true 6 | symlinks = false 7 | ignorecase = true 8 | [gui] 9 | geometry = 965x490+426+345 201 158 10 | [user] 11 | email = paupawsan-learning@yahoo.com 12 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/description: -------------------------------------------------------------------------------- 1 | Unnamed repository; edit this file 'description' to name the repository. 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/hooks/applypatch-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message taken by 4 | # applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. The hook is 8 | # allowed to edit the commit message file. 9 | # 10 | # To enable this hook, rename this file to "applypatch-msg". 11 | 12 | . git-sh-setup 13 | test -x "$GIT_DIR/hooks/commit-msg" && 14 | exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} 15 | : 16 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/hooks/commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message. 4 | # Called by git-commit with one argument, the name of the file 5 | # that has the commit message. The hook should exit with non-zero 6 | # status after issuing an appropriate message if it wants to stop the 7 | # commit. The hook is allowed to edit the commit message file. 8 | # 9 | # To enable this hook, rename this file to "commit-msg". 10 | 11 | # Uncomment the below to add a Signed-off-by line to the message. 12 | # Doing this in a hook is a bad idea in general, but the prepare-commit-msg 13 | # hook is more suited to it. 14 | # 15 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 16 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 17 | 18 | # This example catches duplicate Signed-off-by lines. 19 | 20 | test "" = "$(grep '^Signed-off-by: ' "$1" | 21 | sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { 22 | echo >&2 Duplicate Signed-off-by lines. 23 | exit 1 24 | } 25 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/hooks/post-commit.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script that is called after a successful 4 | # commit is made. 5 | # 6 | # To enable this hook, rename this file to "post-commit". 7 | 8 | : Nothing 9 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/hooks/post-receive.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script for the "post-receive" event. 4 | # 5 | # The "post-receive" script is run after receive-pack has accepted a pack 6 | # and the repository has been updated. It is passed arguments in through 7 | # stdin in the form 8 | # 9 | # For example: 10 | # aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master 11 | # 12 | # see contrib/hooks/ for an sample, or uncomment the next line and 13 | # rename the file to "post-receive". 14 | 15 | #. /usr/share/doc/git-core/contrib/hooks/post-receive-email 16 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/hooks/post-update.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare a packed repository for use over 4 | # dumb transports. 5 | # 6 | # To enable this hook, rename this file to "post-update". 7 | 8 | exec git-update-server-info 9 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/hooks/pre-applypatch.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed 4 | # by applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. 8 | # 9 | # To enable this hook, rename this file to "pre-applypatch". 10 | 11 | . git-sh-setup 12 | test -x "$GIT_DIR/hooks/pre-commit" && 13 | exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"} 14 | : 15 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/hooks/pre-commit.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed. 4 | # Called by git-commit with no arguments. The hook should 5 | # exit with non-zero status after issuing an appropriate message if 6 | # it wants to stop the commit. 7 | # 8 | # To enable this hook, rename this file to "pre-commit". 9 | 10 | # If you want to allow non-ascii filenames set this variable to true. 11 | allownonascii=$(git config hooks.allownonascii) 12 | 13 | # Cross platform projects tend to avoid non-ascii filenames; prevent 14 | # them from being added to the repository. We exploit the fact that the 15 | # printable range starts at the space character and ends with tilde. 16 | if [ "$allownonascii" != "true" ] && 17 | test "$(git diff --cached --name-only --diff-filter=A -z | 18 | LC_ALL=C tr -d '[ -~]\0')" 19 | then 20 | echo "Error: Attempt to add a non-ascii filename." 21 | echo 22 | echo "This can cause problems if you want to work together" 23 | echo "with people on other platforms than you." 24 | echo 25 | echo "To be portable it is adviseable to rename the file ..." 26 | echo 27 | echo "If you know what you are doing you can disable this" 28 | echo "check using:" 29 | echo 30 | echo " git config hooks.allownonascii true" 31 | echo 32 | exit 1 33 | fi 34 | 35 | if git-rev-parse --verify HEAD >/dev/null 2>&1 36 | then 37 | against=HEAD 38 | else 39 | # Initial commit: diff against an empty tree object 40 | against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 41 | fi 42 | 43 | exec git diff-index --check --cached $against -- 44 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/hooks/prepare-commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare the commit log message. 4 | # Called by git-commit with the name of the file that has the 5 | # commit message, followed by the description of the commit 6 | # message's source. The hook's purpose is to edit the commit 7 | # message file. If the hook fails with a non-zero status, 8 | # the commit is aborted. 9 | # 10 | # To enable this hook, rename this file to "prepare-commit-msg". 11 | 12 | # This hook includes three examples. The first comments out the 13 | # "Conflicts:" part of a merge commit. 14 | # 15 | # The second includes the output of "git diff --name-status -r" 16 | # into the message, just before the "git status" output. It is 17 | # commented because it doesn't cope with --amend or with squashed 18 | # commits. 19 | # 20 | # The third example adds a Signed-off-by line to the message, that can 21 | # still be edited. This is rarely a good idea. 22 | 23 | case "$2,$3" in 24 | merge,) 25 | perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;; 26 | 27 | # ,|template,) 28 | # perl -i.bak -pe ' 29 | # print "\n" . `git diff --cached --name-status -r` 30 | # if /^#/ && $first++ == 0' "$1" ;; 31 | 32 | *) ;; 33 | esac 34 | 35 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 36 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 37 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/JapaneseRepo/.gitted/index -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/info/exclude: -------------------------------------------------------------------------------- 1 | # git-ls-files --others --exclude-from=.git/info/exclude 2 | # Lines that start with '#' are comments. 3 | # For a project mostly in C, the following would be a good set of 4 | # exclude patterns (uncomment them if you want to use them): 5 | # *.[oa] 6 | # *~ 7 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/logs/HEAD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/JapaneseRepo/.gitted/logs/HEAD -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/logs/refs/heads/master: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/JapaneseRepo/.gitted/logs/refs/heads/master -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/24/ed0e20ceff5e2cdf768345b6853213f840ff8f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/24/ed0e20ceff5e2cdf768345b6853213f840ff8f -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/2f/3c75408acf76bb7122b91c418d015252708552: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/2f/3c75408acf76bb7122b91c418d015252708552 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904: -------------------------------------------------------------------------------- 1 | x+)JMU0` 2 | , -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/54/75030f2b57d9956d23ef4ead6f9a4983c234b5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/54/75030f2b57d9956d23ef4ead6f9a4983c234b5 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/6d/c9b6c490154e9627a8aed8ca74039a34084677: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/6d/c9b6c490154e9627a8aed8ca74039a34084677 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/9b/c63090dd221bace8b2e5f278580946be26efdd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/9b/c63090dd221bace8b2e5f278580946be26efdd -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/a8/a51035f70bec2d3e00c0a11a33ff709a6ab40e: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/a8/a51035f70bec2d3e00c0a11a33ff709a6ab40e -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/fe/0856a5873decc1a8e47f63c5707520121b2e9e: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/fe/0856a5873decc1a8e47f63c5707520121b2e9e -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/info/marker.txt: -------------------------------------------------------------------------------- 1 | Nothing interesting here. Only a file to make sure parent directory is being considered by git. -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/objects/pack/marker.txt: -------------------------------------------------------------------------------- 1 | Nothing interesting here. Only a file to make sure parent directory is being considered by git. -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/JapaneseRepo/.gitted/refs/heads/master: -------------------------------------------------------------------------------- 1 | 24ed0e20ceff5e2cdf768345b6853213f840ff8f 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | Adding one file. 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = false 4 | bare = false 5 | logallrefupdates = true 6 | symlinks = false 7 | ignorecase = true 8 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/description: -------------------------------------------------------------------------------- 1 | Unnamed repository; edit this file 'description' to name the repository. 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/hooks/applypatch-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message taken by 4 | # applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. The hook is 8 | # allowed to edit the commit message file. 9 | # 10 | # To enable this hook, rename this file to "applypatch-msg". 11 | 12 | . git-sh-setup 13 | test -x "$GIT_DIR/hooks/commit-msg" && 14 | exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} 15 | : 16 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/hooks/commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message. 4 | # Called by git-commit with one argument, the name of the file 5 | # that has the commit message. The hook should exit with non-zero 6 | # status after issuing an appropriate message if it wants to stop the 7 | # commit. The hook is allowed to edit the commit message file. 8 | # 9 | # To enable this hook, rename this file to "commit-msg". 10 | 11 | # Uncomment the below to add a Signed-off-by line to the message. 12 | # Doing this in a hook is a bad idea in general, but the prepare-commit-msg 13 | # hook is more suited to it. 14 | # 15 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 16 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 17 | 18 | # This example catches duplicate Signed-off-by lines. 19 | 20 | test "" = "$(grep '^Signed-off-by: ' "$1" | 21 | sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { 22 | echo >&2 Duplicate Signed-off-by lines. 23 | exit 1 24 | } 25 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/hooks/post-commit.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script that is called after a successful 4 | # commit is made. 5 | # 6 | # To enable this hook, rename this file to "post-commit". 7 | 8 | : Nothing 9 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/hooks/post-receive.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script for the "post-receive" event. 4 | # 5 | # The "post-receive" script is run after receive-pack has accepted a pack 6 | # and the repository has been updated. It is passed arguments in through 7 | # stdin in the form 8 | # 9 | # For example: 10 | # aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master 11 | # 12 | # see contrib/hooks/ for an sample, or uncomment the next line and 13 | # rename the file to "post-receive". 14 | 15 | #. /usr/share/doc/git-core/contrib/hooks/post-receive-email 16 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/hooks/post-update.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare a packed repository for use over 4 | # dumb transports. 5 | # 6 | # To enable this hook, rename this file to "post-update". 7 | 8 | exec git-update-server-info 9 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/hooks/pre-applypatch.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed 4 | # by applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. 8 | # 9 | # To enable this hook, rename this file to "pre-applypatch". 10 | 11 | . git-sh-setup 12 | test -x "$GIT_DIR/hooks/pre-commit" && 13 | exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"} 14 | : 15 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/hooks/pre-commit.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed. 4 | # Called by git-commit with no arguments. The hook should 5 | # exit with non-zero status after issuing an appropriate message if 6 | # it wants to stop the commit. 7 | # 8 | # To enable this hook, rename this file to "pre-commit". 9 | 10 | if git-rev-parse --verify HEAD >/dev/null 2>&1 11 | then 12 | against=HEAD 13 | else 14 | # Initial commit: diff against an empty tree object 15 | against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 16 | fi 17 | 18 | exec git diff-index --check --cached $against -- 19 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/hooks/prepare-commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare the commit log message. 4 | # Called by git-commit with the name of the file that has the 5 | # commit message, followed by the description of the commit 6 | # message's source. The hook's purpose is to edit the commit 7 | # message file. If the hook fails with a non-zero status, 8 | # the commit is aborted. 9 | # 10 | # To enable this hook, rename this file to "prepare-commit-msg". 11 | 12 | # This hook includes three examples. The first comments out the 13 | # "Conflicts:" part of a merge commit. 14 | # 15 | # The second includes the output of "git diff --name-status -r" 16 | # into the message, just before the "git status" output. It is 17 | # commented because it doesn't cope with --amend or with squashed 18 | # commits. 19 | # 20 | # The third example adds a Signed-off-by line to the message, that can 21 | # still be edited. This is rarely a good idea. 22 | 23 | case "$2,$3" in 24 | merge,) 25 | perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;; 26 | 27 | # ,|template,) 28 | # perl -i.bak -pe ' 29 | # print "\n" . `git diff --cached --name-status -r` 30 | # if /^#/ && $first++ == 0' "$1" ;; 31 | 32 | *) ;; 33 | esac 34 | 35 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 36 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 37 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/OneFileRepository/.gitted/index -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/info/exclude: -------------------------------------------------------------------------------- 1 | # git-ls-files --others --exclude-from=.git/info/exclude 2 | # Lines that start with '#' are comments. 3 | # For a project mostly in C, the following would be a good set of 4 | # exclude patterns (uncomment them if you want to use them): 5 | # *.[oa] 6 | # *~ 7 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/logs/HEAD: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 f3ca78a01f1baa4eaddcc349c97dcab95a379981 nulltoken 1255117188 +0200 commit (initial): Adding one file. 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 f3ca78a01f1baa4eaddcc349c97dcab95a379981 nulltoken 1255117188 +0200 commit (initial): Adding one file. 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/objects/5a/44c05f31a48e1492e7b375e502d97c3e72a1bc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/OneFileRepository/.gitted/objects/5a/44c05f31a48e1492e7b375e502d97c3e72a1bc -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/objects/be/cce7158b7ef8a86c4ddf2fe235df6923f94ec8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/OneFileRepository/.gitted/objects/be/cce7158b7ef8a86c4ddf2fe235df6923f94ec8 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/objects/f3/ca78a01f1baa4eaddcc349c97dcab95a379981: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/OneFileRepository/.gitted/objects/f3/ca78a01f1baa4eaddcc349c97dcab95a379981 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/objects/info/marker.txt: -------------------------------------------------------------------------------- 1 | Nothing interesting here. Only a file to make sure parent directory is being considered by git. -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/objects/pack/marker.txt: -------------------------------------------------------------------------------- 1 | Nothing interesting here. Only a file to make sure parent directory is being considered by git. -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/.gitted/refs/heads/master: -------------------------------------------------------------------------------- 1 | f3ca78a01f1baa4eaddcc349c97dcab95a379981 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/OneFileRepository/dummy.txt: -------------------------------------------------------------------------------- 1 | Dummy indeed -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/.gitattributes: -------------------------------------------------------------------------------- 1 | *.patch -crlf 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testEditList_Types.patch: -------------------------------------------------------------------------------- 1 | diff --git a/X b/X 2 | index a3648a1..2d44096 100644 3 | --- a/X 4 | +++ b/X 5 | @@ -2,2 +2,3 @@ a 6 | b 7 | +c 8 | d 9 | @@ -16,4 +17,2 @@ p 10 | q 11 | -r 12 | -s 13 | t 14 | @@ -22,4 +21,8 @@ v 15 | w 16 | -x 17 | -y 18 | +0 19 | +1 20 | +2 21 | +3 22 | +4 23 | +5 24 | z 25 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testError_BodyTooLong.patch: -------------------------------------------------------------------------------- 1 | diff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryConfigTest.java b/org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryConfigTest.java 2 | index da7e704..34ce04a 100644 3 | --- a/org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryConfigTest.java 4 | +++ b/org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryConfigTest.java 5 | @@ -109,4 +109,11 @@ assertTrue(Arrays.equals(values.toArray(), repositoryConfig 6 | .getStringList("my", null, "somename"))); 7 | checkFile(cfgFile, "[my]\n\tsomename = value1\n\tsomename = value2\n"); 8 | } 9 | + 10 | + public void test006_readCaseInsensitive() throws IOException { 11 | + final File path = writeTrashFile("config_001", "[Foo]\nBar\n"); 12 | + RepositoryConfig repositoryConfig = new RepositoryConfig(null, path); 13 | +BAD LINE 14 | + assertEquals(true, repositoryConfig.getBoolean("foo", null, "bar", false)); 15 | + assertEquals("", repositoryConfig.getString("foo", null, "bar")); 16 | + } 17 | } 18 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testError_CcTruncatedOld.patch: -------------------------------------------------------------------------------- 1 | commit 1a56639bbea8e8cbfbe5da87746de97f9217ce9b 2 | Date: Tue May 13 00:43:56 2008 +0200 3 | ... 4 | 5 | diff --cc org.spearce.egit.ui/src/org/spearce/egit/ui/UIText.java 6 | index 169356b,dd8c317..fd85931 7 | mode 100644,100644..100755 8 | --- a/org.spearce.egit.ui/src/org/spearce/egit/ui/UIText.java 9 | +++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/UIText.java 10 | @@@ -55,12 -163,13 +163,15 @@@ public class UIText extends NLS 11 | 12 | /** */ 13 | public static String ResourceHistory_toggleCommentWrap; 14 | + 15 | /** */ 16 | + /** */ 17 | public static String ResourceHistory_toggleRevDetail; 18 | /** */ 19 | public static String ResourceHistory_toggleRevComment; 20 | /** */ 21 | public static String ResourceHistory_toggleTooltips; 22 | 23 | 24 | commit 1a56639bbea8e8cbfbe5da87746de97f9217ce9b 25 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testError_DisconnectedHunk.patch: -------------------------------------------------------------------------------- 1 | From: A. U. Thor 2 | 3 | @@ -109,4 +109,11 @@ assertTrue(Arrays.equals(values.toArray(), repositoryConfig 4 | .getStringList("my", null, "somename"))); 5 | checkFile(cfgFile, "[my]\n\tsomename = value1\n\tsomename = value2\n"); 6 | } 7 | + 8 | + public void test006_readCaseInsensitive() throws IOException { 9 | + final File path = writeTrashFile("config_001", "[Foo]\nBar\n"); 10 | + RepositoryConfig repositoryConfig = new RepositoryConfig(null, path); 11 | + assertEquals(true, repositoryConfig.getBoolean("foo", null, "bar", false)); 12 | + assertEquals("", repositoryConfig.getString("foo", null, "bar")); 13 | + } 14 | } 15 | diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java b/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java 16 | index 45c2f8a..3291bba 100644 17 | --- a/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java 18 | +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java 19 | @@ -236,9 +236,9 @@ protected boolean getBoolean(final String section, String subsection, 20 | return defaultValue; 21 | 22 | n = n.toLowerCase(); 23 | - if (MAGIC_EMPTY_VALUE.equals(n) || "yes".equals(n) || "true".equals(n) || "1".equals(n)) { 24 | + if (MAGIC_EMPTY_VALUE.equals(n) || "yes".equalsIgnoreCase(n) || "true".equalsIgnoreCase(n) || "1".equals(n)) { 25 | return true; 26 | - } else if ("no".equals(n) || "false".equals(n) || "0".equals(n)) { 27 | + } else if ("no".equalsIgnoreCase(n) || "false".equalsIgnoreCase(n) || "0".equalsIgnoreCase(n)) { 28 | return false; 29 | } else { 30 | throw new IllegalArgumentException("Invalid boolean value: " 31 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testError_GarbageBetweenFiles.patch: -------------------------------------------------------------------------------- 1 | diff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryConfigTest.java b/org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryConfigTest.java 2 | index da7e704..34ce04a 100644 3 | --- a/org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryConfigTest.java 4 | +++ b/org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryConfigTest.java 5 | @@ -109,4 +109,11 @@ assertTrue(Arrays.equals(values.toArray(), repositoryConfig 6 | .getStringList("my", null, "somename"))); 7 | checkFile(cfgFile, "[my]\n\tsomename = value1\n\tsomename = value2\n"); 8 | } 9 | + 10 | + public void test006_readCaseInsensitive() throws IOException { 11 | + final File path = writeTrashFile("config_001", "[Foo]\nBar\n"); 12 | + RepositoryConfig repositoryConfig = new RepositoryConfig(null, path); 13 | + assertEquals(true, repositoryConfig.getBoolean("foo", null, "bar", false)); 14 | + assertEquals("", repositoryConfig.getString("foo", null, "bar")); 15 | + } 16 | } 17 | I AM NOT HERE 18 | diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java b/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java 19 | index 45c2f8a..3291bba 100644 20 | --- a/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java 21 | +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java 22 | @@ -236,9 +236,9 @@ protected boolean getBoolean(final String section, String subsection, 23 | return defaultValue; 24 | 25 | n = n.toLowerCase(); 26 | - if (MAGIC_EMPTY_VALUE.equals(n) || "yes".equals(n) || "true".equals(n) || "1".equals(n)) { 27 | + if (MAGIC_EMPTY_VALUE.equals(n) || "yes".equalsIgnoreCase(n) || "true".equalsIgnoreCase(n) || "1".equals(n)) { 28 | return true; 29 | - } else if ("no".equals(n) || "false".equals(n) || "0".equals(n)) { 30 | + } else if ("no".equalsIgnoreCase(n) || "false".equalsIgnoreCase(n) || "0".equalsIgnoreCase(n)) { 31 | return false; 32 | } else { 33 | throw new IllegalArgumentException("Invalid boolean value: " 34 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testError_GitBinaryNoForwardHunk.patch: -------------------------------------------------------------------------------- 1 | create mode 100644 org.spearce.egit.ui/icons/toolbar/pushe.png 2 | 3 | diff --git a/org.spearce.egit.ui/icons/toolbar/fetchd.png b/org.spearce.egit.ui/icons/toolbar/fetchd.png 4 | new file mode 100644 5 | index 0000000000000000000000000000000000000000..4433c543f2a52b586a3ed5e31b138244107bc239 6 | GIT binary patch 7 | 8 | diff --git a/org.spearce.egit.ui/icons/toolbar/fetche.png b/org.spearce.egit.ui/icons/toolbar/fetche.png 9 | new file mode 100644 10 | index 0000000000000000000000000000000000000000..0ffeb419e6ab302caa5e58661854b33853dc43dc 11 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testError_TruncatedNew.patch: -------------------------------------------------------------------------------- 1 | diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java b/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java 2 | index 45c2f8a..3291bba 100644 3 | --- a/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java 4 | +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java 5 | @@ -236,9 +236,9 @@ protected boolean getBoolean(final String section, String subsection, 6 | return defaultValue; 7 | 8 | n = n.toLowerCase(); 9 | - if (MAGIC_EMPTY_VALUE.equals(n) || "yes".equals(n) || "true".equals(n) || "1".equals(n)) { 10 | return true; 11 | - } else if ("no".equals(n) || "false".equals(n) || "0".equals(n)) { 12 | + } else if ("no".equalsIgnoreCase(n) || "false".equalsIgnoreCase(n) || "0".equalsIgnoreCase(n)) { 13 | return false; 14 | } else { 15 | throw new IllegalArgumentException("Invalid boolean value: " 16 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testError_TruncatedOld.patch: -------------------------------------------------------------------------------- 1 | diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java b/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java 2 | index 45c2f8a..3291bba 100644 3 | --- a/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java 4 | +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java 5 | @@ -236,9 +236,9 @@ protected boolean getBoolean(final String section, String subsection, 6 | return defaultValue; 7 | 8 | n = n.toLowerCase(); 9 | - if (MAGIC_EMPTY_VALUE.equals(n) || "yes".equals(n) || "true".equals(n) || "1".equals(n)) { 10 | + if (MAGIC_EMPTY_VALUE.equals(n) || "yes".equalsIgnoreCase(n) || "true".equalsIgnoreCase(n) || "1".equals(n)) { 11 | return true; 12 | + } else if ("no".equalsIgnoreCase(n) || "false".equalsIgnoreCase(n) || "0".equalsIgnoreCase(n)) { 13 | return false; 14 | } else { 15 | throw new IllegalArgumentException("Invalid boolean value: " 16 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testGetText_BothISO88591.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/Patch/testGetText_BothISO88591.patch -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testGetText_Convert.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/Patch/testGetText_Convert.patch -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testGetText_DiffCc.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/Patch/testGetText_DiffCc.patch -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testGetText_NoBinary.patch: -------------------------------------------------------------------------------- 1 | diff --git a/org.spearce.egit.ui/icons/toolbar/fetchd.png b/org.spearce.egit.ui/icons/toolbar/fetchd.png 2 | new file mode 100644 3 | index 0000000..4433c54 4 | Binary files /dev/null and b/org.spearce.egit.ui/icons/toolbar/fetchd.png differ 5 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testParse_AddNoNewline.patch: -------------------------------------------------------------------------------- 1 | From ca4719a4b2d93a469f61d1ddfb3e39ecbabfcd69 Mon Sep 17 00:00:00 2001 2 | From: Shawn O. Pearce 3 | Date: Fri, 12 Dec 2008 12:35:14 -0800 4 | Subject: [PATCH] introduce no lf again 5 | 6 | --- 7 | a | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/a b/a 11 | index f2ad6c7..c59d9b6 100644 12 | --- a/a 13 | +++ b/a 14 | @@ -1 +1 @@ 15 | -c 16 | +d 17 | \ No newline at end of file 18 | -- 19 | 1.6.1.rc2.306.ge5d5e 20 | 21 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testParse_CcDeleteFile.patch: -------------------------------------------------------------------------------- 1 | commit 740709ece2412856c0c3eabd4dc4a4cf115b0de6 2 | Merge: 5c19b43... 13a2c0d... 3 | Author: Shawn O. Pearce 4 | Date: Fri Dec 12 13:26:52 2008 -0800 5 | 6 | Merge branch 'b' into d 7 | 8 | diff --cc a 9 | index 7898192,2e65efe..0000000 10 | deleted file mode 100644,100644 11 | --- a/a 12 | +++ /dev/null 13 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testParse_CcNewFile.patch: -------------------------------------------------------------------------------- 1 | commit 6cb8160a4717d51fd3cc0baf721946daa60cf921 2 | Merge: 5c19b43... 13a2c0d... 3 | Author: Shawn O. Pearce 4 | Date: Fri Dec 12 13:26:52 2008 -0800 5 | 6 | Merge branch 'b' into d 7 | 8 | diff --cc d 9 | index 0000000,0000000..4bcfe98 10 | new file mode 100644 11 | --- /dev/null 12 | +++ b/d 13 | @@@ -1,0 -1,0 +1,1 @@@ 14 | ++d 15 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testParse_FixNoNewline.patch: -------------------------------------------------------------------------------- 1 | From 1beb3ec1fe68ff18b0287396096442e12c34787a Mon Sep 17 00:00:00 2001 2 | From: Shawn O. Pearce 3 | Date: Fri, 12 Dec 2008 12:29:45 -0800 4 | Subject: [PATCH] make c and add lf 5 | 6 | --- 7 | a | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/a b/a 11 | index 2e65efe..f2ad6c7 100644 12 | --- a/a 13 | +++ b/a 14 | @@ -1 +1 @@ 15 | -a 16 | \ No newline at end of file 17 | +c 18 | -- 19 | 1.6.1.rc2.306.ge5d5e 20 | 21 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testParse_GitBinaryDelta.patch: -------------------------------------------------------------------------------- 1 | From 7e49721ad0efdec3a81e20bc58e385ea5d2b87b7 Mon Sep 17 00:00:00 2001 2 | From: Shawn O. Pearce 3 | Date: Fri, 12 Dec 2008 12:45:17 -0800 4 | Subject: [PATCH] make zero have a 3 5 | 6 | --- 7 | zero.bin | Bin 4096 -> 4096 bytes 8 | 1 files changed, 0 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/zero.bin b/zero.bin 11 | index 08e7df176454f3ee5eeda13efa0adaa54828dfd8..d70d8710b6d32ff844af0ee7c247e4b4b051867f 100644 12 | GIT binary patch 13 | delta 12 14 | TcmZorXi%6C%4ociaTPxR8IA+R 15 | 16 | delta 11 17 | ScmZorXi(Uguz-JJK>`37u>@iO 18 | 19 | -- 20 | 1.6.1.rc2.306.ge5d5e 21 | 22 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/Patch/testParse_OneFileCc.patch: -------------------------------------------------------------------------------- 1 | commit 1a56639bbea8e8cbfbe5da87746de97f9217ce9b 2 | Date: Tue May 13 00:43:56 2008 +0200 3 | ... 4 | 5 | diff --cc org.spearce.egit.ui/src/org/spearce/egit/ui/UIText.java 6 | index 169356b,dd8c317..fd85931 7 | mode 100644,100644..100755 8 | --- a/org.spearce.egit.ui/src/org/spearce/egit/ui/UIText.java 9 | +++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/UIText.java 10 | @@@ -55,12 -163,13 +163,15 @@@ public class UIText extends NLS 11 | 12 | /** */ 13 | public static String ResourceHistory_toggleCommentWrap; 14 | + 15 | /** */ 16 | + public static String ResourceHistory_toggleCommentFill; 17 | + /** */ 18 | public static String ResourceHistory_toggleRevDetail; 19 | + 20 | /** */ 21 | public static String ResourceHistory_toggleRevComment; 22 | + 23 | /** */ 24 | public static String ResourceHistory_toggleTooltips; 25 | 26 | 27 | commit 1a56639bbea8e8cbfbe5da87746de97f9217ce9b 28 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | Add Submodule 2 | 3 | Signed-off-by: caytchen 4 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = false 4 | bare = false 5 | logallrefupdates = true 6 | ignorecase = true 7 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/description: -------------------------------------------------------------------------------- 1 | Unnamed repository; edit this file 'description' to name the repository. 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/hooks/applypatch-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message taken by 4 | # applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. The hook is 8 | # allowed to edit the commit message file. 9 | # 10 | # To enable this hook, rename this file to "applypatch-msg". 11 | 12 | . git-sh-setup 13 | test -x "$GIT_DIR/hooks/commit-msg" && 14 | exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} 15 | : 16 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/hooks/commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message. 4 | # Called by git-commit with one argument, the name of the file 5 | # that has the commit message. The hook should exit with non-zero 6 | # status after issuing an appropriate message if it wants to stop the 7 | # commit. The hook is allowed to edit the commit message file. 8 | # 9 | # To enable this hook, rename this file to "commit-msg". 10 | 11 | # Uncomment the below to add a Signed-off-by line to the message. 12 | # Doing this in a hook is a bad idea in general, but the prepare-commit-msg 13 | # hook is more suited to it. 14 | # 15 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 16 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 17 | 18 | # This example catches duplicate Signed-off-by lines. 19 | 20 | test "" = "$(grep '^Signed-off-by: ' "$1" | 21 | sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { 22 | echo >&2 Duplicate Signed-off-by lines. 23 | exit 1 24 | } 25 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/hooks/post-commit.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script that is called after a successful 4 | # commit is made. 5 | # 6 | # To enable this hook, rename this file to "post-commit". 7 | 8 | : Nothing 9 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/hooks/post-receive.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script for the "post-receive" event. 4 | # 5 | # The "post-receive" script is run after receive-pack has accepted a pack 6 | # and the repository has been updated. It is passed arguments in through 7 | # stdin in the form 8 | # 9 | # For example: 10 | # aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master 11 | # 12 | # see contrib/hooks/ for a sample, or uncomment the next line and 13 | # rename the file to "post-receive". 14 | 15 | #. /usr/share/doc/git-core/contrib/hooks/post-receive-email 16 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/hooks/post-update.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare a packed repository for use over 4 | # dumb transports. 5 | # 6 | # To enable this hook, rename this file to "post-update". 7 | 8 | exec git-update-server-info 9 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/hooks/pre-applypatch.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed 4 | # by applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. 8 | # 9 | # To enable this hook, rename this file to "pre-applypatch". 10 | 11 | . git-sh-setup 12 | test -x "$GIT_DIR/hooks/pre-commit" && 13 | exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"} 14 | : 15 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/hooks/pre-commit.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed. 4 | # Called by git-commit with no arguments. The hook should 5 | # exit with non-zero status after issuing an appropriate message if 6 | # it wants to stop the commit. 7 | # 8 | # To enable this hook, rename this file to "pre-commit". 9 | 10 | # If you want to allow non-ascii filenames set this variable to true. 11 | allownonascii=$(git config hooks.allownonascii) 12 | 13 | # Cross platform projects tend to avoid non-ascii filenames; prevent 14 | # them from being added to the repository. We exploit the fact that the 15 | # printable range starts at the space character and ends with tilde. 16 | if [ "$allownonascii" != "true" ] && 17 | # Note that the use of brackets around a tr range is ok here, (it's 18 | # even required, for portability to Solaris 10's /usr/bin/tr), since 19 | # the square bracket bytes happen to fall in the designated range. 20 | test "$(git diff --cached --name-only --diff-filter=A -z | 21 | LC_ALL=C tr -d '[ -~]\0')" 22 | then 23 | echo "Error: Attempt to add a non-ascii file name." 24 | echo 25 | echo "This can cause problems if you want to work" 26 | echo "with people on other platforms." 27 | echo 28 | echo "To be portable it is advisable to rename the file ..." 29 | echo 30 | echo "If you know what you are doing you can disable this" 31 | echo "check using:" 32 | echo 33 | echo " git config hooks.allownonascii true" 34 | echo 35 | exit 1 36 | fi 37 | 38 | if git-rev-parse --verify HEAD >/dev/null 2>&1 39 | then 40 | against=HEAD 41 | else 42 | # Initial commit: diff against an empty tree object 43 | against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 44 | fi 45 | 46 | exec git diff-index --check --cached $against -- 47 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/hooks/prepare-commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare the commit log message. 4 | # Called by git-commit with the name of the file that has the 5 | # commit message, followed by the description of the commit 6 | # message's source. The hook's purpose is to edit the commit 7 | # message file. If the hook fails with a non-zero status, 8 | # the commit is aborted. 9 | # 10 | # To enable this hook, rename this file to "prepare-commit-msg". 11 | 12 | # This hook includes three examples. The first comments out the 13 | # "Conflicts:" part of a merge commit. 14 | # 15 | # The second includes the output of "git diff --name-status -r" 16 | # into the message, just before the "git status" output. It is 17 | # commented because it doesn't cope with --amend or with squashed 18 | # commits. 19 | # 20 | # The third example adds a Signed-off-by line to the message, that can 21 | # still be edited. This is rarely a good idea. 22 | 23 | case "$2,$3" in 24 | merge,) 25 | perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;; 26 | 27 | # ,|template,) 28 | # perl -i.bak -pe ' 29 | # print "\n" . `git diff --cached --name-status -r` 30 | # if /^#/ && $first++ == 0' "$1" ;; 31 | 32 | *) ;; 33 | esac 34 | 35 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 36 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 37 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/SubmoduleRepository.git/index -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/info/exclude: -------------------------------------------------------------------------------- 1 | # git-ls-files --others --exclude-from=.git/info/exclude 2 | # Lines that start with '#' are comments. 3 | # For a project mostly in C, the following would be a good set of 4 | # exclude patterns (uncomment them if you want to use them): 5 | # *.[oa] 6 | # *~ 7 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/logs/HEAD: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 163678aef05371dc8636cbae9486233fddbede36 caytchen 1261183508 +0100 commit (initial): Some data 2 | 163678aef05371dc8636cbae9486233fddbede36 b81197d9c02c98247424be82a7dd55dc419f39e5 caytchen 1261183880 +0100 commit: Add Submodule 3 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 163678aef05371dc8636cbae9486233fddbede36 caytchen 1261183508 +0100 commit (initial): Some data 2 | 163678aef05371dc8636cbae9486233fddbede36 b81197d9c02c98247424be82a7dd55dc419f39e5 caytchen 1261183880 +0100 commit: Add Submodule 3 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/objects/16/3678aef05371dc8636cbae9486233fddbede36: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/SubmoduleRepository.git/objects/16/3678aef05371dc8636cbae9486233fddbede36 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/objects/7c/0646bfd53c1f0ed45ffd81563f30017717ca58: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/SubmoduleRepository.git/objects/7c/0646bfd53c1f0ed45ffd81563f30017717ca58 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/objects/83/36793a1b803478c1c654847373f0f106c467ce: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/SubmoduleRepository.git/objects/83/36793a1b803478c1c654847373f0f106c467ce -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/objects/92/2522d0a1c9a031f5c6e11d3e20423e44806a3b: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/SubmoduleRepository.git/objects/92/2522d0a1c9a031f5c6e11d3e20423e44806a3b -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/objects/b8/1197d9c02c98247424be82a7dd55dc419f39e5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/SubmoduleRepository.git/objects/b8/1197d9c02c98247424be82a7dd55dc419f39e5 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/objects/c3/88fdefe1f4aa420eef11abd4e88fd38236dfb5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/SubmoduleRepository.git/objects/c3/88fdefe1f4aa420eef11abd4e88fd38236dfb5 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/objects/info/dummy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/SubmoduleRepository.git/objects/info/dummy -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/objects/pack/dummy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/SubmoduleRepository.git/objects/pack/dummy -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/SubmoduleRepository.git/refs/heads/master: -------------------------------------------------------------------------------- 1 | b81197d9c02c98247424be82a7dd55dc419f39e5 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/gitgit.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/gitgit.index -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/gitgit.index.ZZZZ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/gitgit.index.ZZZZ -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/gitgit.index.aaaa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/gitgit.index.aaaa -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/gitgit.index.badchecksum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/gitgit.index.badchecksum -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/index_originating_from_msysgit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/index_originating_from_msysgit -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-3280af9c07ee18a87705ef50b0cc4cd20266cf12.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-3280af9c07ee18a87705ef50b0cc4cd20266cf12.idx -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-3280af9c07ee18a87705ef50b0cc4cd20266cf12.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-3280af9c07ee18a87705ef50b0cc4cd20266cf12.pack -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-34be9032ac282b11fa9babdc2b2a93ca996c9c2f.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-34be9032ac282b11fa9babdc2b2a93ca996c9c2f.idx -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-34be9032ac282b11fa9babdc2b2a93ca996c9c2f.idxV2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-34be9032ac282b11fa9babdc2b2a93ca996c9c2f.idxV2 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-34be9032ac282b11fa9babdc2b2a93ca996c9c2f.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-34be9032ac282b11fa9babdc2b2a93ca996c9c2f.pack -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-546ff360fe3488adb20860ce3436a2d6373d2796.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-546ff360fe3488adb20860ce3436a2d6373d2796.idx -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-546ff360fe3488adb20860ce3436a2d6373d2796.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-546ff360fe3488adb20860ce3436a2d6373d2796.pack -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-9fb5b411fe6dfa89cc2e6b89d2bd8e5de02b5745.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-9fb5b411fe6dfa89cc2e6b89d2bd8e5de02b5745.idx -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-9fb5b411fe6dfa89cc2e6b89d2bd8e5de02b5745.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-9fb5b411fe6dfa89cc2e6b89d2bd8e5de02b5745.pack -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-cbdeda40019ae0e6e789088ea0f51f164f489d14.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-cbdeda40019ae0e6e789088ea0f51f164f489d14.idx -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-cbdeda40019ae0e6e789088ea0f51f164f489d14.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-cbdeda40019ae0e6e789088ea0f51f164f489d14.pack -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-df2982f284bbabb6bdb59ee3fcc6eb0983e20371.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-df2982f284bbabb6bdb59ee3fcc6eb0983e20371.idx -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-df2982f284bbabb6bdb59ee3fcc6eb0983e20371.idxV2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-df2982f284bbabb6bdb59ee3fcc6eb0983e20371.idxV2 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-df2982f284bbabb6bdb59ee3fcc6eb0983e20371.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-df2982f284bbabb6bdb59ee3fcc6eb0983e20371.pack -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-e6d07037cbcf13376308a0a995d1fa48f8f76aaa.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-e6d07037cbcf13376308a0a995d1fa48f8f76aaa.idx -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-e6d07037cbcf13376308a0a995d1fa48f8f76aaa.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-e6d07037cbcf13376308a0a995d1fa48f8f76aaa.pack -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/pack-huge.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/pack-huge.idx -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/packed-refs: -------------------------------------------------------------------------------- 1 | # pack-refs with: peeled 2 | 6db9c2ebf75590eef973081736730a9ea169a0c4 refs/heads/a 3 | 7f822839a2fe9760f386cbbbcb3f92c5fe81def7 refs/heads/b 4 | 6e1475206e57110fcef4b92320436c1e9872a322 refs/heads/c 5 | f73b95671f326616d66b2afb3bdfcdbbce110b44 refs/heads/d 6 | d0114ab8ac326bab30e3a657a0397578c5a1af88 refs/heads/e 7 | 47d3697c3747e8184e0dc479ccbd01e359023577 refs/heads/f 8 | 175d5b80bd9768884d8fced02e9bd33488174396 refs/heads/g 9 | 175d5b80bd9768884d8fced02e9bd33488174396 refs/heads/prefix/a 10 | 68cb1f232964f3cd698afc1dafe583937203c587 refs/heads/gitlink 11 | 49322bb17d3acc9146f98c97d078513228bbf3c0 refs/heads/master 12 | d86a2aada2f5e7ccf6f11880bfb9ab404e8a8864 refs/heads/pa 13 | 5ce00008cf3fb8f194f52742020bd40d78f3f1b3 refs/heads/symlink 14 | 6db9c2ebf75590eef973081736730a9ea169a0c4 refs/tags/A 15 | 17768080a2318cd89bba4c8b87834401e2095703 refs/tags/B 16 | ^d86a2aada2f5e7ccf6f11880bfb9ab404e8a8864 17 | 032c063ce34486359e3ee3d4f9e5c225b9e1a4c2 refs/tags/B10th 18 | ^d86a2aada2f5e7ccf6f11880bfb9ab404e8a8864 19 | 214cae792433672d28b3aeb9f75c1ae84fd54628 refs/tags/B2nd 20 | ^d86a2aada2f5e7ccf6f11880bfb9ab404e8a8864 21 | 1170b77a48d3ea2d58b043648b1ec63d606e3efa refs/tags/B3rd 22 | ^d86a2aada2f5e7ccf6f11880bfb9ab404e8a8864 23 | 8dfd42699e7b10e568fa1eaebe249e33e98da81e refs/tags/B4th 24 | ^d86a2aada2f5e7ccf6f11880bfb9ab404e8a8864 25 | efee904c794b943a06931c76c576dd552212e8bc refs/tags/B5th 26 | ^d86a2aada2f5e7ccf6f11880bfb9ab404e8a8864 27 | d54e006ebbef94b7d3a5cd56d154f1e6f08efb94 refs/tags/B6th 28 | ^d86a2aada2f5e7ccf6f11880bfb9ab404e8a8864 29 | a773cd2d9dbca00d08793dac0d7002a49f0428c0 refs/tags/B7th 30 | ^d86a2aada2f5e7ccf6f11880bfb9ab404e8a8864 31 | bf5123bb77c7b5a379f7de9c1293558e3e24dfb8 refs/tags/B8th 32 | ^d86a2aada2f5e7ccf6f11880bfb9ab404e8a8864 33 | dd144af286452bfd6a1ea02b0d3745bcdb555e9d refs/tags/B9th 34 | ^d86a2aada2f5e7ccf6f11880bfb9ab404e8a8864 35 | 8bbde7aacf771a9afb6992434f1ae413e010c6d8 refs/tags/spearce-gpg-pub 36 | ^fd608fbe625a2b456d9f15c2b1dc41f252057dd7 37 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | this is a commit of an unpacked object 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/ORIG_HEAD: -------------------------------------------------------------------------------- 1 | a13973bc29346193c4a023fc83cc5b0645784262 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = true 4 | bare = false 5 | logallrefupdates = true 6 | ignorecase = true 7 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/description: -------------------------------------------------------------------------------- 1 | Unnamed repository; edit this file to name it for gitweb. 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/gitk.cache: -------------------------------------------------------------------------------- 1 | 1 1 2 | a13973bc29346193c4a023fc83cc5b0645784262 e41517d564000311f3d7a54f1390ee82f5f1a55b {a48b402f61eb8ed445dacaa3af80a2e9796dcb3b e41517d564000311f3d7a54f1390ee82f5f1a55b} 3 | 1 4 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/hooks/applypatch-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message taken by 4 | # applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. The hook is 8 | # allowed to edit the commit message file. 9 | # 10 | # To enable this hook, rename this file to "applypatch-msg". 11 | 12 | . git-sh-setup 13 | test -x "$GIT_DIR/hooks/commit-msg" && 14 | exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} 15 | : 16 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/hooks/commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message. 4 | # Called by git-commit with one argument, the name of the file 5 | # that has the commit message. The hook should exit with non-zero 6 | # status after issuing an appropriate message if it wants to stop the 7 | # commit. The hook is allowed to edit the commit message file. 8 | # 9 | # To enable this hook, rename this file to "commit-msg". 10 | 11 | # Uncomment the below to add a Signed-off-by line to the message. 12 | # Doing this in a hook is a bad idea in general, but the prepare-commit-msg 13 | # hook is more suited to it. 14 | # 15 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 16 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 17 | 18 | # This example catches duplicate Signed-off-by lines. 19 | 20 | test "" = "$(grep '^Signed-off-by: ' "$1" | 21 | sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { 22 | echo >&2 Duplicate Signed-off-by lines. 23 | exit 1 24 | } 25 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/hooks/post-commit.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script that is called after a successful 4 | # commit is made. 5 | # 6 | # To enable this hook, rename this file to "post-commit". 7 | 8 | : Nothing 9 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/hooks/post-receive.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script for the "post-receive" event. 4 | # 5 | # The "post-receive" script is run after receive-pack has accepted a pack 6 | # and the repository has been updated. It is passed arguments in through 7 | # stdin in the form 8 | # 9 | # For example: 10 | # aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master 11 | # 12 | # see contrib/hooks/ for an sample, or uncomment the next line and 13 | # rename the file to "post-receive". 14 | 15 | #. /usr/share/doc/git-core/contrib/hooks/post-receive-email 16 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/hooks/post-update.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare a packed repository for use over 4 | # dumb transports. 5 | # 6 | # To enable this hook, rename this file to "post-update". 7 | 8 | exec git-update-server-info 9 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/hooks/pre-applypatch.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed 4 | # by applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. 8 | # 9 | # To enable this hook, rename this file to "pre-applypatch". 10 | 11 | . git-sh-setup 12 | test -x "$GIT_DIR/hooks/pre-commit" && 13 | exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"} 14 | : 15 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/hooks/pre-commit.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed. 4 | # Called by git-commit with no arguments. The hook should 5 | # exit with non-zero status after issuing an appropriate message if 6 | # it wants to stop the commit. 7 | # 8 | # To enable this hook, rename this file to "pre-commit". 9 | 10 | if git-rev-parse --verify HEAD 2>/dev/null 11 | then 12 | against=HEAD 13 | else 14 | # Initial commit: diff against an empty tree object 15 | against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 16 | fi 17 | 18 | exec git diff-index --check --cached $against -- 19 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/hooks/prepare-commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare the commit log message. 4 | # Called by git-commit with the name of the file that has the 5 | # commit message, followed by the description of the commit 6 | # message's source. The hook's purpose is to edit the commit 7 | # message file. If the hook fails with a non-zero status, 8 | # the commit is aborted. 9 | # 10 | # To enable this hook, rename this file to "prepare-commit-msg". 11 | 12 | # This hook includes three examples. The first comments out the 13 | # "Conflicts:" part of a merge commit. 14 | # 15 | # The second includes the output of "git diff --name-status -r" 16 | # into the message, just before the "git status" output. It is 17 | # commented because it doesn't cope with --amend or with squashed 18 | # commits. 19 | # 20 | # The third example adds a Signed-off-by line to the message, that can 21 | # still be edited. This is rarely a good idea. 22 | 23 | case "$2,$3" in 24 | merge,) 25 | perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;; 26 | 27 | # ,|template,) 28 | # perl -i.bak -pe ' 29 | # print "\n" . `git diff --cached --name-status -r` 30 | # if /^#/ && $first++ == 0' "$1" ;; 31 | 32 | *) ;; 33 | esac 34 | 35 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 36 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 37 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/sample.git/index -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/info/exclude: -------------------------------------------------------------------------------- 1 | # git-ls-files --others --exclude-from=.git/info/exclude 2 | # Lines that start with '#' are comments. 3 | # For a project mostly in C, the following would be a good set of 4 | # exclude patterns (uncomment them if you want to use them): 5 | # *.[oa] 6 | # *~ 7 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/info/refs: -------------------------------------------------------------------------------- 1 | e41517d564000311f3d7a54f1390ee82f5f1a55b refs/heads/first 2 | a48b402f61eb8ed445dacaa3af80a2e9796dcb3b refs/heads/master 3 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/logs/HEAD: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 e41517d564000311f3d7a54f1390ee82f5f1a55b Kevin Thompson 1239405799 -0700 commit (initial): Initial Commit 2 | e41517d564000311f3d7a54f1390ee82f5f1a55b a48b402f61eb8ed445dacaa3af80a2e9796dcb3b Kevin Thompson 1239405850 -0700 commit: Updated README 3 | a48b402f61eb8ed445dacaa3af80a2e9796dcb3b a13973bc29346193c4a023fc83cc5b0645784262 Kevin Thompson 1239405984 -0700 commit: this is a commit of an unpacked object 4 | a13973bc29346193c4a023fc83cc5b0645784262 a48b402f61eb8ed445dacaa3af80a2e9796dcb3b Kevin Thompson 1239748622 -0700 checkout: moving from master to a48b402f61e 5 | a48b402f61eb8ed445dacaa3af80a2e9796dcb3b a13973bc29346193c4a023fc83cc5b0645784262 Kevin Thompson 1239748647 -0700 checkout: moving from a48b402f61eb8ed445dacaa3af80a2e9796dcb3b to master 6 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/logs/refs/heads/first: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 e41517d564000311f3d7a54f1390ee82f5f1a55b Kevin Thompson 1239405819 -0700 branch: Created from master 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 e41517d564000311f3d7a54f1390ee82f5f1a55b Kevin Thompson 1239405799 -0700 commit (initial): Initial Commit 2 | e41517d564000311f3d7a54f1390ee82f5f1a55b a48b402f61eb8ed445dacaa3af80a2e9796dcb3b Kevin Thompson 1239405850 -0700 commit: Updated README 3 | a48b402f61eb8ed445dacaa3af80a2e9796dcb3b a13973bc29346193c4a023fc83cc5b0645784262 Kevin Thompson 1239405984 -0700 commit: this is a commit of an unpacked object 4 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/objects/3f/a4c1907a23c8c345ba65bd9bc17336b012259b: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/sample.git/objects/3f/a4c1907a23c8c345ba65bd9bc17336b012259b -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/objects/66/d7e337f35ff98d6bddd7e730655080454c3fdd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/sample.git/objects/66/d7e337f35ff98d6bddd7e730655080454c3fdd -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/objects/76/e984096c69db581a6d48eb444e5490d727ebac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/sample.git/objects/76/e984096c69db581a6d48eb444e5490d727ebac -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/objects/a1/3973bc29346193c4a023fc83cc5b0645784262: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/sample.git/objects/a1/3973bc29346193c4a023fc83cc5b0645784262 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/objects/info/packs: -------------------------------------------------------------------------------- 1 | P pack-845b2ba3349cc201321e752b01c5ada8102a9a08.pack 2 | 3 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/objects/pack/pack-845b2ba3349cc201321e752b01c5ada8102a9a08.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/sample.git/objects/pack/pack-845b2ba3349cc201321e752b01c5ada8102a9a08.idx -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/objects/pack/pack-845b2ba3349cc201321e752b01c5ada8102a9a08.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/sample.git/objects/pack/pack-845b2ba3349cc201321e752b01c5ada8102a9a08.pack -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/packed-refs: -------------------------------------------------------------------------------- 1 | # pack-refs with: peeled 2 | e41517d564000311f3d7a54f1390ee82f5f1a55b refs/heads/first 3 | a48b402f61eb8ed445dacaa3af80a2e9796dcb3b refs/heads/master 4 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/refs/heads/first: -------------------------------------------------------------------------------- 1 | e41517d564000311f3d7a54f1390ee82f5f1a55b 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/refs/heads/master: -------------------------------------------------------------------------------- 1 | a13973bc29346193c4a023fc83cc5b0645784262 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/sample.git/refs/tags/my_tag: -------------------------------------------------------------------------------- 1 | 76e984096c69db581a6d48eb444e5490d727ebac 2 | -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/single_file_commit/.gitattributes: -------------------------------------------------------------------------------- 1 | i-am-a-file -crlf -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/single_file_commit/16c0beaf7523eb3ef5df45bd42dd4fc6343de864: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/single_file_commit/16c0beaf7523eb3ef5df45bd42dd4fc6343de864 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/single_file_commit/917c130bd4fa5bf2df0c399dc1b03401860aa448: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/single_file_commit/917c130bd4fa5bf2df0c399dc1b03401860aa448 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/single_file_commit/95ea6a6859af6791464bd8b6de76ad5a6f9fad81: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/GitSharp.Tests/Resources/single_file_commit/95ea6a6859af6791464bd8b6de76ad5a6f9fad81 -------------------------------------------------------------------------------- /GitSharp.Tests/Resources/single_file_commit/i-am-a-file: -------------------------------------------------------------------------------- 1 | and this is the data in me 2 | 3 | -------------------------------------------------------------------------------- /GitSharp/Commands/IGitCommand.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009, Henon 3 | * 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or 7 | * without modification, are permitted provided that the following 8 | * conditions are met: 9 | * 10 | * - Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 13 | * - Redistributions in binary form must reproduce the above 14 | * copyright notice, this list of conditions and the following 15 | * disclaimer in the documentation and/or other materials provided 16 | * with the distribution. 17 | * 18 | * - Neither the name of the Git Development Community nor the 19 | * names of its contributors may be used to endorse or promote 20 | * products derived from this software without specific prior 21 | * written permission. 22 | * 23 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 24 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 25 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 26 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 29 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 30 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 31 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 33 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 35 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 | */ 37 | 38 | using System; 39 | using System.Collections.Generic; 40 | using System.Linq; 41 | using System.Text; 42 | 43 | namespace GitSharp.Commands 44 | { 45 | public interface IGitCommand 46 | { 47 | void Execute(); 48 | } 49 | } -------------------------------------------------------------------------------- /GitSharp/Commands/_NotSupportedCommands.txt: -------------------------------------------------------------------------------- 1 | The following git commands are not supported by the command api 2 | 3 | fmt-merge-msg: see MergeCommand.FormatMergeMessage -------------------------------------------------------------------------------- /GitSharp/IReferenceObject.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009, Henon 3 | * 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or 7 | * without modification, are permitted provided that the following 8 | * conditions are met: 9 | * 10 | * - Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 13 | * - Redistributions in binary form must reproduce the above 14 | * copyright notice, this list of conditions and the following 15 | * disclaimer in the documentation and/or other materials provided 16 | * with the distribution. 17 | * 18 | * - Neither the name of the Git Development Community nor the 19 | * names of its contributors may be used to endorse or promote 20 | * products derived from this software without specific prior 21 | * written permission. 22 | * 23 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 24 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 25 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 26 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 29 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 30 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 31 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 33 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 35 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 | */ 37 | 38 | using System; 39 | using System.Collections.Generic; 40 | using System.Linq; 41 | using System.Text; 42 | 43 | namespace GitSharp 44 | { 45 | /// 46 | /// Interface for objects like Ref and Tag, which point to a different object. 47 | /// 48 | public interface IReferenceObject 49 | { 50 | string Name { get; } 51 | AbstractObject Target { get; } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /GitSharp/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | [assembly: AssemblyTitle("GitSharp")] 4 | [assembly: AssemblyDescription("")] 5 | -------------------------------------------------------------------------------- /GitSharp/README.txt: -------------------------------------------------------------------------------- 1 | GitSharp.API shall not only provide user friendly access to git's objects and commands but also decouple CLI and any other apps from the internals which are potentially changing all the time 2 | This is especially when we continue to track jgit's commits -------------------------------------------------------------------------------- /GitSharp/UserInfoProvider.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2009, Stefan Schake 3 | * 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or 7 | * without modification, are permitted provided that the following 8 | * conditions are met: 9 | * 10 | * - Redistributions of source code must retain the above copyright 11 | * notice, this list of conditions and the following disclaimer. 12 | * 13 | * - Redistributions in binary form must reproduce the above 14 | * copyright notice, this list of conditions and the following 15 | * disclaimer in the documentation and/or other materials provided 16 | * with the distribution. 17 | * 18 | * - Neither the name of the Git Development Community nor the 19 | * names of its contributors may be used to endorse or promote 20 | * products derived from this software without specific prior 21 | * written permission. 22 | * 23 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 24 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 25 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 26 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 28 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 29 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 30 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 31 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 33 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 35 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 | */ 37 | 38 | namespace GitSharp 39 | { 40 | 41 | public static class UserInfoProvider 42 | { 43 | public static Core.UserInfoProvider Provider 44 | { 45 | get 46 | { 47 | return Core.UserInfoProvider.Provider; 48 | } 49 | 50 | set 51 | { 52 | Core.UserInfoProvider.Provider = value; 53 | } 54 | } 55 | } 56 | 57 | } -------------------------------------------------------------------------------- /Indentation.vssettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | true 13 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /JGit licence.txt: -------------------------------------------------------------------------------- 1 | /* 2 | * All rights reserved. 3 | * 4 | * Redistribution and use in source and binary forms, with or 5 | * without modification, are permitted provided that the following 6 | * conditions are met: 7 | * 8 | * - Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 11 | * - Redistributions in binary form must reproduce the above 12 | * copyright notice, this list of conditions and the following 13 | * disclaimer in the documentation and/or other materials provided 14 | * with the distribution. 15 | * 16 | * - Neither the name of the Eclipse Foundation, Inc. nor the 17 | * names of its contributors may be used to endorse or promote 18 | * products derived from this software without specific prior 19 | * written permission. 20 | * 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 22 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 23 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 24 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 26 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 27 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 28 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 31 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 33 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | */ 35 | -------------------------------------------------------------------------------- /Logo/gitsharp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/Logo/gitsharp.png -------------------------------------------------------------------------------- /MiscUtil licence.txt: -------------------------------------------------------------------------------- 1 | "Miscellaneous Utility Library" Software Licence 2 | 3 | Version 1.0 4 | 5 | Copyright (c) 2004-2008 Jon Skeet and Marc Gravell. 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions 10 | are met: 11 | 12 | 1. Redistributions of source code must retain the above copyright 13 | notice, this list of conditions and the following disclaimer. 14 | 15 | 2. Redistributions in binary form must reproduce the above copyright 16 | notice, this list of conditions and the following disclaimer in the 17 | documentation and/or other materials provided with the distribution. 18 | 19 | 3. The end-user documentation included with the redistribution, if 20 | any, must include the following acknowledgment: 21 | 22 | "This product includes software developed by Jon Skeet 23 | and Marc Gravell. Contact skeet@pobox.com, or see 24 | http://www.pobox.com/~skeet/)." 25 | 26 | Alternately, this acknowledgment may appear in the software itself, 27 | if and wherever such third-party acknowledgments normally appear. 28 | 29 | 4. The name "Miscellaneous Utility Library" must not be used to endorse 30 | or promote products derived from this software without prior written 31 | permission. For written permission, please contact skeet@pobox.com. 32 | 33 | 5. Products derived from this software may not be called 34 | "Miscellaneous Utility Library", nor may "Miscellaneous Utility Library" 35 | appear in their name, without prior written permission of Jon Skeet. 36 | 37 | THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED 38 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 39 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 40 | IN NO EVENT SHALL JON SKEET BE LIABLE FOR ANY DIRECT, INDIRECT, 41 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 42 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 43 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 44 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 45 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 46 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 47 | POSSIBILITY OF SUCH DAMAGE. 48 | -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | # GitSharp 2 | 3 | It was a fun project but was never fully completed. If you are seeking for a good 4 | C# git library please go to: https://github.com/libgit2/libgit2sharp 5 | 6 | -------------------------------------------------------------------------------- /SharedAssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyCompany("The Git Development Community")] 6 | [assembly: AssemblyCopyright("Copyright © 2009 The GitSharp Team")] 7 | [assembly: ComVisible(false)] 8 | 9 | #if DEBUG 10 | [assembly: AssemblyConfiguration("Debug")] 11 | #else 12 | [assembly: AssemblyConfiguration("Release")] 13 | #endif 14 | -------------------------------------------------------------------------------- /generate-Docs.bat: -------------------------------------------------------------------------------- 1 | rem ========================== 2 | rem Generates the documentation 3 | rem ========================== 4 | rem 5 | 6 | tools\nant\nant.exe -buildfile:GitSharp.build %1 -t:net-3.5 -D:build.config=release -D:build.vcs.number.1=%BUILD_VCS_NUMBER% compile-gitsharp 7 | cd tools\docu 8 | docu ..\..\build\net-3.5-release\bin\GitSharp.dll 9 | 10 | rem The docs are generated into tools\docu\output -------------------------------------------------------------------------------- /lib/DiffieHellman.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/lib/DiffieHellman.dll -------------------------------------------------------------------------------- /lib/ICSharpCode.SharpZipLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/lib/ICSharpCode.SharpZipLib.dll -------------------------------------------------------------------------------- /lib/Org.Mentalis.Security.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/lib/Org.Mentalis.Security.dll -------------------------------------------------------------------------------- /lib/Tamir.SharpSSH.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/lib/Tamir.SharpSSH.dll -------------------------------------------------------------------------------- /lib/Winterdom.IO.FileMap.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/lib/Winterdom.IO.FileMap.dll -------------------------------------------------------------------------------- /lib/Winterdom.IO.FileMap.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/lib/Winterdom.IO.FileMap.pdb -------------------------------------------------------------------------------- /package-GitSharp.cmd: -------------------------------------------------------------------------------- 1 | tools\nant\nant.exe -buildfile:GitSharp.build %1 -t:net-3.5 -D:build.config=release -D:build.vcs.number.1=%BUILD_VCS_NUMBER% clean dist 2 | -------------------------------------------------------------------------------- /runtests-GitSharp.cmd: -------------------------------------------------------------------------------- 1 | tools\nant\nant.exe -buildfile:GitSharp.build %1 -t:net-3.5 -D:build.config=debug -D:build.vcs.number.1=%BUILD_VCS_NUMBER% -------------------------------------------------------------------------------- /tools/docu/.gitignore: -------------------------------------------------------------------------------- 1 | output 2 | -------------------------------------------------------------------------------- /tools/docu/Interop.SparkLanguagePackageLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/docu/Interop.SparkLanguagePackageLib.dll -------------------------------------------------------------------------------- /tools/docu/Spark.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/docu/Spark.dll -------------------------------------------------------------------------------- /tools/docu/SparkLanguage.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/docu/SparkLanguage.dll -------------------------------------------------------------------------------- /tools/docu/StructureMap.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/docu/StructureMap.dll -------------------------------------------------------------------------------- /tools/docu/docu.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/docu/docu.exe -------------------------------------------------------------------------------- /tools/docu/docu.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/docu/docu.pdb -------------------------------------------------------------------------------- /tools/docu/generate_documentation.bat: -------------------------------------------------------------------------------- 1 | rem ========================== 2 | rem Generates the documentation 3 | rem ========================== 4 | rem 5 | rem Note: this assumes, that you have built the debug version of gitsharp with visual studio. 6 | 7 | docu ../GitSharp/bin/Debug/GitSharp.dll 8 | rem xcopy /S /Y output\*.* .. -------------------------------------------------------------------------------- /tools/docu/templates/!namespace/_comment.spark: -------------------------------------------------------------------------------- 1 | ${Format(content)} -------------------------------------------------------------------------------- /tools/docu/templates/!namespace/_events.spark: -------------------------------------------------------------------------------- 1 |  2 |

${title}

3 | 4 |
5 |

${h(ev.Name)}

6 |
7 | 8 | 9 |
10 |
11 |
-------------------------------------------------------------------------------- /tools/docu/templates/!namespace/_fields.spark: -------------------------------------------------------------------------------- 1 |  2 |

${title}

3 | 4 |
5 |

${h(field.ReturnType.PrettyName)} ${h(field.Name)}

6 |
7 | 8 | 9 | 10 | 11 | 14 | 15 |
12 | return ${Format(field.ReturnType)} 13 |
16 |
17 |
18 |
-------------------------------------------------------------------------------- /tools/docu/templates/!namespace/_methods.spark: -------------------------------------------------------------------------------- 1 |  2 |

${title}

3 | 4 |
5 |

${Format(method.ReturnType)} ${h(method.PrettyName)}(${OutputMethodParams(method)})

6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
Parameters
15 | 16 | 17 |
${Format(param.Reference)} ${param.Name}
18 |

19 |
20 |
21 | 22 |
23 |
Return
24 |
${Format(method.ReturnType)}
25 |

26 |
27 | 28 | 29 |
30 |
31 |
-------------------------------------------------------------------------------- /tools/docu/templates/!namespace/_namespaces.spark: -------------------------------------------------------------------------------- 1 | #Formatter.NamespaceUrlFormat = "~/{namespace}/index.html"; 2 |
3 |

Namespaces

4 |
5 |
    6 |
  • 7 | 8 | ${Format(ns, class => "current")} 9 | 10 | ${Format(ns)} 11 | 12 |
  • 13 |
14 |
15 |
-------------------------------------------------------------------------------- /tools/docu/templates/!namespace/_properties.spark: -------------------------------------------------------------------------------- 1 |  2 |

${title}

3 | 4 |
5 |

${Format(property.ReturnType)} ${h(property.Name)} get; set;

6 |
7 | 8 | 9 | 10 |
11 |
Property type
12 |
${Format(property.ReturnType)}
13 |

14 |
15 | 16 |
17 |
18 |
-------------------------------------------------------------------------------- /tools/docu/templates/!namespace/_remarks.spark: -------------------------------------------------------------------------------- 1 | 
2 | ${Format(content)} 3 |
-------------------------------------------------------------------------------- /tools/docu/templates/!namespace/_types.spark: -------------------------------------------------------------------------------- 1 | 
2 |

Types in ${Namespace.PrettyName}

3 |
4 |
    5 |
  • 6 | 7 | ${Format(type, class => "current")} 8 | 9 | ${Format(type)} 10 | 11 |
  • 12 |
13 |
14 |
-------------------------------------------------------------------------------- /tools/docu/templates/!namespace/_value.spark: -------------------------------------------------------------------------------- 1 | 
2 | Value: ${Format(content)} 3 |
-------------------------------------------------------------------------------- /tools/docu/templates/!namespace/index.html.spark: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | ${Namespace.Name} - ${WriteProductName(Assemblies[0])} Documentation 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |

Namespace ${Namespace.Name}

16 |
17 |
18 | 19 |

Classes

20 |
    21 | 22 |
  • ${Format(type)}
  • 23 |
    24 |
25 |
26 | 27 | 28 |

Interfaces

29 |
    30 | 31 |
  • ${Format(type)}
  • 32 |
    33 |
34 |
35 |

This namespace is empty.

36 |
37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /tools/docu/templates/_footer.spark: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /tools/docu/templates/_namespaces.spark: -------------------------------------------------------------------------------- 1 | #Formatter.NamespaceUrlFormat = "~/{namespace}/index.html"; 2 |
3 |

Namespaces

4 |
5 |
    6 |
  • ${Format(ns)}
  • 7 |
8 |
9 |
-------------------------------------------------------------------------------- /tools/docu/templates/_types.spark: -------------------------------------------------------------------------------- 1 | 
2 |

All Types

3 |
4 |
    5 | 6 |
  • ${Format(type)}
  • 7 |
    8 |
9 |
10 |
-------------------------------------------------------------------------------- /tools/docu/templates/index.html.spark: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | ${WriteProductName(Assemblies[0])} Documentation 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |

${WriteProductName(Assemblies[0])} Documentation

13 |
14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tools/docu/templates/js/jquery.scrollTo-min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * jQuery.ScrollTo - Easy element scrolling using jQuery. 3 | * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com 4 | * Dual licensed under MIT and GPL. 5 | * Date: 5/25/2009 6 | * @author Ariel Flesler 7 | * @version 1.4.2 8 | * 9 | * http://flesler.blogspot.com/2007/10/jqueryscrollto.html 10 | */ 11 | ;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery); -------------------------------------------------------------------------------- /tools/docu/templates/js/navigation.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | var scroll = function(selector) { 3 | var currentItem = $(selector + ' .current'); 4 | 5 | if (currentItem) 6 | $(selector + ' div.scroll').scrollTo(currentItem); 7 | }; 8 | 9 | scroll('#namespaces'); 10 | scroll('#types'); 11 | }); -------------------------------------------------------------------------------- /tools/nant/NAnt.CompressionTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.CompressionTasks.dll -------------------------------------------------------------------------------- /tools/nant/NAnt.CompressionTasks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.CompressionTasks.pdb -------------------------------------------------------------------------------- /tools/nant/NAnt.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.Core.dll -------------------------------------------------------------------------------- /tools/nant/NAnt.Core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.Core.pdb -------------------------------------------------------------------------------- /tools/nant/NAnt.DotNetTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.DotNetTasks.dll -------------------------------------------------------------------------------- /tools/nant/NAnt.DotNetTasks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.DotNetTasks.pdb -------------------------------------------------------------------------------- /tools/nant/NAnt.MSNetTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.MSNetTasks.dll -------------------------------------------------------------------------------- /tools/nant/NAnt.MSNetTasks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.MSNetTasks.pdb -------------------------------------------------------------------------------- /tools/nant/NAnt.NUnit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.NUnit.dll -------------------------------------------------------------------------------- /tools/nant/NAnt.NUnit.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.NUnit.pdb -------------------------------------------------------------------------------- /tools/nant/NAnt.NUnit1Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.NUnit1Tasks.dll -------------------------------------------------------------------------------- /tools/nant/NAnt.NUnit1Tasks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.NUnit1Tasks.pdb -------------------------------------------------------------------------------- /tools/nant/NAnt.NUnit2Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.NUnit2Tasks.dll -------------------------------------------------------------------------------- /tools/nant/NAnt.NUnit2Tasks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.NUnit2Tasks.pdb -------------------------------------------------------------------------------- /tools/nant/NAnt.SourceControlTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.SourceControlTasks.dll -------------------------------------------------------------------------------- /tools/nant/NAnt.SourceControlTasks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.SourceControlTasks.pdb -------------------------------------------------------------------------------- /tools/nant/NAnt.VSNetTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.VSNetTasks.dll -------------------------------------------------------------------------------- /tools/nant/NAnt.VSNetTasks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.VSNetTasks.pdb -------------------------------------------------------------------------------- /tools/nant/NAnt.VisualCppTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.VisualCppTasks.dll -------------------------------------------------------------------------------- /tools/nant/NAnt.VisualCppTasks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.VisualCppTasks.pdb -------------------------------------------------------------------------------- /tools/nant/NAnt.Win32Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.Win32Tasks.dll -------------------------------------------------------------------------------- /tools/nant/NAnt.Win32Tasks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.Win32Tasks.pdb -------------------------------------------------------------------------------- /tools/nant/NAnt.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.exe -------------------------------------------------------------------------------- /tools/nant/NAnt.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NAnt.pdb -------------------------------------------------------------------------------- /tools/nant/NDoc.Documenter.NAnt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NDoc.Documenter.NAnt.dll -------------------------------------------------------------------------------- /tools/nant/NDoc.Documenter.NAnt.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/NDoc.Documenter.NAnt.pdb -------------------------------------------------------------------------------- /tools/nant/extensions/common/2.0/NAnt.MSBuild.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/extensions/common/2.0/NAnt.MSBuild.dll -------------------------------------------------------------------------------- /tools/nant/extensions/common/2.0/NAnt.MSBuild.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/extensions/common/2.0/NAnt.MSBuild.pdb -------------------------------------------------------------------------------- /tools/nant/extensions/common/2.0/NAnt.MSBuild.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | NAnt.MSBuild 5 | 6 | 7 | 8 | 9 | Functions to return information for MSBuild system. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Test whether project is VS2005 project and could be built using <msbuild> 18 | 19 | The name or path of the project file (csproj, vbproj, ...). 20 | 21 | True, if it is msbuild project, False otherwise. 22 | 23 | 24 | 25 | 26 | Initialize is guaranteed to be called by MSBuild at the start of the build 27 | before any events are raised. 28 | 29 | 30 | 31 | 32 | Analyses Microsoft Visual Studio .NET 2005 (Whidbey) solution files. 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /tools/nant/lib/common/1.1/nunit-console-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/1.1/nunit-console-runner.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/1.1/nunit-console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/1.1/nunit-console.exe -------------------------------------------------------------------------------- /tools/nant/lib/common/1.1/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/1.1/nunit.core.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/1.1/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/1.1/nunit.framework.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/1.1/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/1.1/nunit.util.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/2.0/nunit-console-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/2.0/nunit-console-runner.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/2.0/nunit-console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/2.0/nunit-console.exe -------------------------------------------------------------------------------- /tools/nant/lib/common/2.0/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/2.0/nunit.core.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/2.0/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/2.0/nunit.framework.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/2.0/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/2.0/nunit.util.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/neutral/ICSharpCode.SharpCvsLib.Console.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/neutral/ICSharpCode.SharpCvsLib.Console.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/neutral/ICSharpCode.SharpCvsLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/neutral/ICSharpCode.SharpCvsLib.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/neutral/ICSharpCode.SharpZipLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/neutral/ICSharpCode.SharpZipLib.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/neutral/NDoc.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/neutral/NDoc.Core.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/neutral/NDoc.Documenter.Msdn.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/neutral/NDoc.Documenter.Msdn.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/neutral/NDoc.ExtendedUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/neutral/NDoc.ExtendedUI.dll -------------------------------------------------------------------------------- /tools/nant/lib/common/neutral/NUnitCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/common/neutral/NUnitCore.dll -------------------------------------------------------------------------------- /tools/nant/lib/net/1.0/NDoc.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/net/1.0/NDoc.Core.dll -------------------------------------------------------------------------------- /tools/nant/lib/net/1.0/NDoc.Documenter.Msdn.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/net/1.0/NDoc.Documenter.Msdn.dll -------------------------------------------------------------------------------- /tools/nant/lib/net/1.0/NDoc.ExtendedUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/net/1.0/NDoc.ExtendedUI.dll -------------------------------------------------------------------------------- /tools/nant/lib/net/1.0/nunit-console-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/net/1.0/nunit-console-runner.dll -------------------------------------------------------------------------------- /tools/nant/lib/net/1.0/nunit-console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/net/1.0/nunit-console.exe -------------------------------------------------------------------------------- /tools/nant/lib/net/1.0/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/net/1.0/nunit.core.dll -------------------------------------------------------------------------------- /tools/nant/lib/net/1.0/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/net/1.0/nunit.framework.dll -------------------------------------------------------------------------------- /tools/nant/lib/net/1.0/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/lib/net/1.0/nunit.util.dll -------------------------------------------------------------------------------- /tools/nant/log4net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/log4net.dll -------------------------------------------------------------------------------- /tools/nant/scvs.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nant/scvs.exe -------------------------------------------------------------------------------- /tools/nunit/lib/fit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nunit/lib/fit.dll -------------------------------------------------------------------------------- /tools/nunit/lib/log4net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nunit/lib/log4net.dll -------------------------------------------------------------------------------- /tools/nunit/lib/nunit-console-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nunit/lib/nunit-console-runner.dll -------------------------------------------------------------------------------- /tools/nunit/lib/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nunit/lib/nunit.core.dll -------------------------------------------------------------------------------- /tools/nunit/lib/nunit.core.interfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nunit/lib/nunit.core.interfaces.dll -------------------------------------------------------------------------------- /tools/nunit/lib/nunit.fixtures.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nunit/lib/nunit.fixtures.dll -------------------------------------------------------------------------------- /tools/nunit/lib/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nunit/lib/nunit.util.dll -------------------------------------------------------------------------------- /tools/nunit/nunit-console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nunit/nunit-console.exe -------------------------------------------------------------------------------- /tools/nunit/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henon/GitSharp/2c88c957cde04f5126f9e4a68a0aa6f31dcf01b5/tools/nunit/nunit.framework.dll -------------------------------------------------------------------------------- /version.txt: -------------------------------------------------------------------------------- 1 | 0.3.0.0 --------------------------------------------------------------------------------