Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | An attempt to help the threaded reading to not show spurious errors anymore. | Sebastian Thiel | 2015-01-14 | 1 | -8/+8 |
| | | | | | It does not necessarily seem to work, but at least we don't access a dict concurrently anymore. | ||||
* | Added 'path' keyword argument to Repo.archive(). | Sebastian Thiel | 2015-01-14 | 2 | -3/+10 |
| | | | | | | | This allows sub-trees to be archived as well, and makes `.archive()` feature complete. Fixes #67 | ||||
* | GitConfigParser now respects and merges 'include' sections | Sebastian Thiel | 2015-01-14 | 4 | -16/+142 |
| | | | | | | | | | | | | | We implement it as described in this article: http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig Thus we handle * cycles * relative and absolute include paths * write-backs in case of writable GitConfigParser instances Fixes #201 | ||||
* | Added `Repo.merge_base(...)` implementation, including test-case. | Sebastian Thiel | 2015-01-13 | 2 | -2/+58 |
| | | | | Fixes #169 | ||||
* | IndexFile.commit() now runs pre-commit and post-commit hooks. | Sebastian Thiel | 2015-01-12 | 5 | -11/+87 |
| | | | | | | | | | However, it does so only on posix. The test-case will run on posix only as well. Please note that in theory, even on windows we will attempt to run hooks, even though I am not sure that this will actually work. Fixes #81 | ||||
* | Removed os.path.realpath invocations as they are not necessary if paths are ↵ | Sebastian Thiel | 2015-01-12 | 3 | -5/+11 |
| | | | | | | | | used consistently. This will save IOPs, and make the code easier to understand (I suppose). Related to #224 | ||||
* | Removed all previously added invocations of os.path.realpath as it wasn't ↵ | Sebastian Thiel | 2015-01-12 | 2 | -4/+3 |
| | | | | | | | | | required afterall. Turns out that the now removed `read_gitfile` functions applied os.path.realpath which caused the issue described in #224. Fixes #224 | ||||
* | Repo paths are now converted to real paths, as well as all paths involved in ↵ | Sebastian Thiel | 2015-01-12 | 3 | -7/+12 |
| | | | | | | | | | index related work. That way, we don't try to compare a real-path to a non-real one, which would make the implementation think a file is not actually part of the repository. Fixes #224 | ||||
* | Added specific test for roughly checking configuration paths. | Sebastian Thiel | 2015-01-12 | 2 | -1/+6 |
| | | | | | | | For some reason, I didn't trust the existing one as it tests that code more indirectly. Related to #160 | ||||
* | Re-implemented 'user' config level based on suggestion by @jzempel | Sebastian Thiel | 2015-01-12 | 1 | -6/+2 |
| | | | | | | | The point is that XDG_CONFIG_HOME is meant to point at the '.config' directory, whereas '.config' has to be added only if HOME is used instead. Fixes #160 | ||||
* | Added 'user' configuration level. | Sebastian Thiel | 2015-01-10 | 1 | -1/+8 |
| | | | | Fixes #160 | ||||
* | Fixed test to actually use tilde and environment variables respectively. | Sebastian Thiel | 2015-01-10 | 1 | -2/+6 |
| | | | | Related to #83 | ||||
* | Repo.init() now supports paths with a '~' in it, or environment variables in ↵ | Sebastian Thiel | 2015-01-10 | 3 | -6/+23 |
| | | | | | | general. Fixes #83 | ||||
* | Added search_parent_directories keyword argument to Repo type. | Sebastian Thiel | 2015-01-10 | 3 | -28/+15 |
| | | | | | | | | Now by default, we will not walk up the directory structure and possibly find git directories that the user didn't intend to find. If required, that kind of behaviour can be turned back on. Fixes #65 | ||||
* | rewrote test-string to have a chance to make flake8 happy. | Sebastian Thiel | 2015-01-10 | 1 | -10/+9 |
| | | | | | That way, flake won't have to completely ignore issues it might have in other portions of this file. | ||||
* | Implemented multi-line parsing of git-config to the point where a sepcific ↵ | Sebastian Thiel | 2015-01-10 | 3 | -39/+271 |
| | | | | | | | | | | test-file is working. This brings us much closer to what git can do, and should at least prevent errors while reading configuration files (which would break a lot of features, like handling of remotes since these rely reading configuration files). Fixes #112 | ||||
* | Added test for complex blame revision query. | Sebastian Thiel | 2015-01-09 | 2 | -0/+184 |
| | | | | | It works as expected by me at least. Related to #71 | ||||
* | Now Diff.__str__ works correctly in all python versions. | Sebastian Thiel | 2015-01-09 | 2 | -9/+31 |
| | | | | | | | | | Additionally, unicode handling was improved to the point where we deal with all diff(create_path=True) data as binary. Therefore we don't claim to know all encodings of all textfiles in the world, even though we still assume that everything git throws at us is utf-8 encoded. Fixes #113 | ||||
* | Fixed mode-handling in Diff creation, and added assertions to catch this in ↵ | Sebastian Thiel | 2015-01-09 | 2 | -3/+10 |
| | | | | | | future There is still some work todo in terms of how we handle the encoding | ||||
* | Added test to verify binary diffs are working as well. | Sebastian Thiel | 2015-01-09 | 4 | -11/+134 |
| | | | | Related to #74 | ||||
* | Added test to verify binary diffs are working as well. | Sebastian Thiel | 2015-01-09 | 3 | -0/+14 |
| | | | | Related to #74 | ||||
* | Added test to assure blame can deal with binary patches. | Sebastian Thiel | 2015-01-09 | 4 | -15/+44 |
| | | | | Fixes #74 | ||||
* | Now finally, tests should be working on travis too. | Sebastian Thiel | 2015-01-08 | 1 | -3/+6 |
| | | | | Now handling the new exception BadName as well | ||||
* | Updated submodule to latest commit, hopefully fixing travis | Sebastian Thiel | 2015-01-08 | 1 | -0/+0 |
| | |||||
* | Improved empty-repo test | Sebastian Thiel | 2015-01-08 | 1 | -2/+5 |
| | | | | Helps to clarify #55 | ||||
* | Improved handling of name-resolution, which will not mangle names anymore. | Sebastian Thiel | 2015-01-08 | 2 | -4/+32 |
| | | | | | | | | | Previously, an unresolvable ref name like HEAD would end up as HEX and was presented as BadObject error, even though that exception is for invalid shas only. Now BadName is thrown, which converts into a more useful error message. Improves #105 | ||||
* | And finally, PY3 support should be restored. | Sebastian Thiel | 2015-01-08 | 1 | -1/+1 |
| | | | | Forgot to fix the test, which used the same broken version_info condition | ||||
* | Fixed PY3 support. | Sebastian Thiel | 2015-01-08 | 2 | -3/+5 |
| | | | | | | | | Apparently, thanks to an incorrect version check, PY3 ended up using a git command object database by default. This is now fixed. Additionally, the update_cache code was adjusted to check for method-existence, as it's valid to use object databases which simply don't have a caching mechanism (like the git command object database) | ||||
* | Auto-update odb caches after fetch or pull. | Sebastian Thiel | 2015-01-08 | 1 | -2/+6 |
| | | | | Fixes #34 | ||||
* | Added test to verify blame commits can have multiple lines. | Sebastian Thiel | 2015-01-08 | 1 | -2/+6 |
| | | | | See #47 | ||||
* | Added support for rename detection in raw mode (which is the default). | Sebastian Thiel | 2015-01-08 | 3 | -6/+18 |
| | | | | Fixes #36 | ||||
* | Added assertion to better detect diff issues. | Sebastian Thiel | 2015-01-08 | 3 | -2/+3 |
| | | | | | | | Helps fixing #35 Also, the production status was changed to 'stable', which should have been done much earlier. | ||||
* | Added Remote.exists() method, and test. Fixes #229 | Sebastian Thiel | 2015-01-08 | 3 | -2/+23 |
| | |||||
* | Improve error handling of fetch/pull line parsing | Sebastian Thiel | 2015-01-08 | 3 | -3/+8 |
| | | | | Fixes #48 | ||||
* | Made improvements to assure test-cases don't leak file handles | Sebastian Thiel | 2015-01-07 | 6 | -6/+54 |
| | | | | | | | | At least leakage is considerably reduced. Additionally, a test-case was added which triggers failure if auto-disposal of resources wouldn't work. Fixes #60 | ||||
* | Made sure commits accept unicode or unicode characters | Sebastian Thiel | 2015-01-07 | 3 | -10/+23 |
| | |||||
* | Merge branch 'commit_by_actor' of https://github.com/firm1/GitPython into ↵ | Sebastian Thiel | 2015-01-07 | 3 | -5/+25 |
|\ | | | | | | | firm1-commit_by_actor | ||||
| * | fix pep8 | firm1 | 2015-01-07 | 2 | -4/+11 |
| | | |||||
| * | add tests for commit by actor | firm1 | 2015-01-07 | 1 | -0/+16 |
| | | |||||
| * | suppression des prefixes de commit | firm1 | 2015-01-07 | 1 | -1/+1 |
| | | |||||
| * | add support of utf8 | firm1 | 2015-01-07 | 1 | -5/+2 |
| | | |||||
* | | Fix flake8 | Sebastian Thiel | 2015-01-07 | 3 | -17/+19 |
| | | |||||
* | | Using a wait-group seems to properly sync the threads for buffer depletion | Sebastian Thiel | 2015-01-07 | 2 | -9/+43 |
| | | |||||
* | | Implemented threaded version of pipe-draining | Sebastian Thiel | 2015-01-07 | 1 | -15/+30 |
| | | |||||
* | | Implemented non-blocking operations using poll() | Sebastian Thiel | 2015-01-07 | 5 | -58/+144 |
|/ | | | | Next up is using threads | ||||
* | Make sure we ignore WindowsErrors too, in case the process is already dead | Sebastian Thiel | 2015-01-07 | 1 | -1/+1 |
| | | | | Fixes #140 | ||||
* | Once again, make flake8 happy | Sebastian Thiel | 2015-01-07 | 1 | -1/+1 |
| | |||||
* | This should fix flake8 on py3 | Sebastian Thiel | 2015-01-07 | 4 | -3/+7 |
| | | | | See #177 | ||||
* | Bumped gitdb requirement.0.3.4 | Sebastian Thiel | 2015-01-06 | 1 | -2/+1 |
| | | | | This should help getting the latest version | ||||
* | Improved windows test suite. | Sebastian Thiel | 2015-01-06 | 2 | -2/+18 |
| | | | | Also added code to show how to deal with #147 |