…tead of a string containing the path of the repository This instance has to be released by a call to Dispose() or through usage of the using() statement.
…lob object ids
…orking directory Fixes issue #95 - 2/2. One can't GitRemove a modified file. $ mkdir test $ cd test $ git init . $ echo "a" > a.txt $ git add . $ git commit -m "Initial commit" $ echo "b" >> a.txt $ git status no changes added to commit (use "git add" and/or "git commit -a") $ git rm a.txt error: 'a.txt' has local modifications (use --cached to keep the file, or -f to force removal)
…working directory Fixes issue #95 - 1/2. One can GitRemove a file which has been deleted from the workdir $ mkdir test $ cd test $ git init . $ echo "a" > a.txt $ git add . $ git commit -m "Initial commit" $ git status nothing to commit (working directory clean) $ rm a.txt $ git status On branch master Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) deleted: a.txt $ git rm a.txt $ git status On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage) deleted: a.txt
…plementedException when being passed a path that leads to a directory
Those new methods manipulate the index in memory when doing bulk operations before writing the index to disk. For 750 files the performance of Index.Stage(path) is ~14seconds, for Index.Stage(paths) it's ~7seconds.
…y of two instances
This fixes what has been a huge pain for me in running the libgit2sharp unit tests lately. I think the issue is that different test runners end up preventing the Resources directory from getting cleaned/deleted. You often end up having to run the test(s) 2 or 3 times before they will actually run. The solution in this commit is to create a unique resources directory for each test run while still trying to cleanup the directories from the previous run. If there are still issues, we could let the cleanup step gracefully fail (leaving behind the previous run temp dir) and defer that cleanup until the next time the tests are run.
…g when the location of the .gitconfig file should be retreived through the HOME environment variable Should fix issue #82.
…able to cope with native Windows directory separator char Should temporarily fix issue #74.