aboutsummaryrefslogtreecommitdiff
path: root/git/repo/base.py
AgeCommit message (Collapse)Author
2016-02-14fix(cmd): allow improved errors during clone operationSebastian Thiel
Related to #383
2016-02-07fix(clone): call communicate if there is no progress handlerSebastian Thiel
Previously, it could have happened that pipes ran full, deadlocking the operation Related to #72
2015-08-22fix(repo): use GitCmdObjectDB by defaultSebastian Thiel
This should fix resource leaking issues once and for all. Related #304
2015-07-21Implement is_ancestorSandy Carter
Wrap `git merge-base --is-ancestor` into its own function because it acts as a boolean check unlike base `git merge-base call`
2015-07-20fix(flake8): remove unused importSebastian Thiel
I knew that flake would eventually get me, especially when least suspected. This time it's even useful, as it is a non-whitespace related issue.
2015-07-20fix(encoding): in `untracked_files()`Sebastian Thiel
I have no idea why PY3 requires such a mess of encoding/decoding statements, but let's just be happy it works. Also let's be sure I never ever write python code again ... EVER.
2015-07-20fix(encoding): in untracked_files() and indexSebastian Thiel
* untracked_files could, if there were spaces in the path returned, re-rencode the previously decoded unicode string thanks to a `decode("string_escape")` call. Now re-encode into utf-8 afterwards - added test to assure this works indeed * IndexFile.add() didn't handle unicode correctly and would write broken index files. The solution was to compute the path length after encoding it into utf-8 bytes, not before ... . Closes #320
2015-07-16Correct doc errorsMarian Wieczorek
revA..revB → revA...revB (three instead of two dots) [base.py, line 467](https://github.com/gitpython-developers/GitPython/blob/master/git/repo/base.py#L467) rorepo is a ~~a~~ Repo instance [test_docs.py, line 21](https://github.com/gitpython-developers/GitPython/blob/master/git/test/test_docs.py#L21) closes #314
2015-06-30Add env parameter to Repo.clone_from() for setting environment variablesJon Lund Steffensen
Adds the optional keyword parameter env to Repo.clone_from(). The parameter is a dictionary containing the desired environment variables for the git clone invocation. The environment is applied to the temporary Git instance before calling Repo._clone().
2015-06-29Fix docstring of Repo.clone_from()Jon Lund Steffensen
2015-06-10Merge pull request #291 from hvnsweeting/support-init-choosing-backendSebastian Thiel
support passing odbt for using with Repo
2015-06-10refactor(repo): parameter renaming and cleanupSebastian Thiel
* renamed `consider_submodules` to `submodules` to be in line with the existing parameters. Nowadays I would prefer the `consider_` prefix, but can't change the existing API and thus stick to the current naming scheme. * reduced amount of code in one portion to make it more maintainable. Related to #294
2015-06-05Allow submodules to be ignored in is_dirtyjavex
There are cases when might not consider a directory dirty when a submodule has changes. Particular case was git-up stashing changes where submodules are irrelevant.
2015-06-01add docstring for new argHung Nguyen Viet
2015-06-01support passing odbt for using with RepoHung Nguyen Viet
2015-02-09Added previously missing parameter documentation for Repo.__init__ .Sebastian Thiel
Related to #255
2015-01-22Added test for `sshkey` context manager.Sebastian Thiel
It verifies that the script is actually called. Interestingly, the shell script version works within an msysgit environment on windows. Fixes #234
2015-01-22Overhauled all tutorials, and placed them in a unit-test.Sebastian Thiel
That way they are protected from regression. Fixes #239
2015-01-21Added advance usage examples to tutorial and made minor fixes.Sebastian Thiel
GIT_PYTHON_TRACE would actually fail (now) if we debugged archive operations. Related to #239
2015-01-19Improved installation docs to mention `pip`, not `easy_install`Sebastian Thiel
Fixes #235 [ci skip]
2015-01-19Implemented Submodule.rename()Sebastian Thiel
A test verifies it's truly working. Related to #238
2015-01-17Submodule.remove() now seems to work properly, nearly all tests are back.Sebastian Thiel
This also means that now we seem to be able to properly handle .git files in submodules Related to #233
2015-01-17Submodule.remove() now deals with .git files correctly.Sebastian Thiel
A simple test verifies this at least.
2015-01-14Fixed some doc strings to build correctly with sphinxSebastian Thiel
Fixes #7 [ci skip]
2015-01-14Added 'path' keyword argument to Repo.archive().Sebastian Thiel
This allows sub-trees to be archived as well, and makes `.archive()` feature complete. Fixes #67
2015-01-14GitConfigParser now respects and merges 'include' sectionsSebastian Thiel
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
2015-01-13Added `Repo.merge_base(...)` implementation, including test-case.Sebastian Thiel
Fixes #169
2015-01-12Removed all previously added invocations of os.path.realpath as it wasn't ↵Sebastian Thiel
required afterall. Turns out that the now removed `read_gitfile` functions applied os.path.realpath which caused the issue described in #224. Fixes #224
2015-01-12Repo paths are now converted to real paths, as well as all paths involved in ↵Sebastian Thiel
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
2015-01-12Added specific test for roughly checking configuration paths.Sebastian Thiel
For some reason, I didn't trust the existing one as it tests that code more indirectly. Related to #160
2015-01-12Re-implemented 'user' config level based on suggestion by @jzempelSebastian Thiel
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
2015-01-10Added 'user' configuration level.Sebastian Thiel
Fixes #160
2015-01-10Repo.init() now supports paths with a '~' in it, or environment variables in ↵Sebastian Thiel
general. Fixes #83
2015-01-10Added search_parent_directories keyword argument to Repo type.Sebastian Thiel
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
2015-01-09Added test to assure blame can deal with binary patches.Sebastian Thiel
Fixes #74
2015-01-08Fixed PY3 support.Sebastian Thiel
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)
2015-01-08Added Remote.exists() method, and test. Fixes #229Sebastian Thiel
2015-01-08Improve error handling of fetch/pull line parsingSebastian Thiel
Fixes #48
2015-01-07Made improvements to assure test-cases don't leak file handlesSebastian Thiel
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
2015-01-07Implemented non-blocking operations using poll()Sebastian Thiel
Next up is using threads
2015-01-06test_repo worksSebastian Thiel
2015-01-06test_index worksSebastian Thiel
2015-01-05test_commit works once againSebastian Thiel
2015-01-04Dum brute force conversion of all types.Sebastian Thiel
However, StringIO really is ByteIO in most cases, and py2.7 should run but doesn't. This should be made work first.
2015-01-04initial set of adjustments to make (most) imports work.Sebastian Thiel
More to come, especially when it's about strings
2015-01-04Removed unnecessary (non-gitpython) tests and fixed flake80.3.3Sebastian Thiel
2015-01-04Bumped version, updated changelog, reduced code smellSebastian Thiel
There is more work to do though, as many imports are still incorrect. Also, there are still print statements
2014-11-19Applied autopep8Sebastian Thiel
Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
2014-11-19Minor fix to make read_gitfile work .Sebastian Thiel
2014-11-19Merge branch 'separate-git-dir' of https://github.com/niyaton/GitPython into ↵Sebastian Thiel
niyaton-separate-git-dir Conflicts: git/repo/base.py