summaryrefslogtreecommitdiff
path: root/git/repo/base.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Added `Repo.merge_base(...)` implementation, including test-case.Sebastian Thiel2015-01-131-1/+35
| | | | Fixes #169
* Removed all previously added invocations of os.path.realpath as it wasn't ↵Sebastian Thiel2015-01-121-3/+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 Thiel2015-01-121-4/+4
| | | | | | | | | 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 Thiel2015-01-121-1/+1
| | | | | | | 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 @jzempelSebastian Thiel2015-01-121-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 Thiel2015-01-101-1/+8
| | | | Fixes #160
* Repo.init() now supports paths with a '~' in it, or environment variables in ↵Sebastian Thiel2015-01-101-3/+8
| | | | | | general. Fixes #83
* Added search_parent_directories keyword argument to Repo type.Sebastian Thiel2015-01-101-6/+4
| | | | | | | | 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
* Added test to assure blame can deal with binary patches.Sebastian Thiel2015-01-091-7/+29
| | | | Fixes #74
* Fixed PY3 support.Sebastian Thiel2015-01-081-1/+1
| | | | | | | | 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)
* Added Remote.exists() method, and test. Fixes #229Sebastian Thiel2015-01-081-1/+4
|
* Improve error handling of fetch/pull line parsingSebastian Thiel2015-01-081-1/+1
| | | | Fixes #48
* Made improvements to assure test-cases don't leak file handlesSebastian Thiel2015-01-071-0/+4
| | | | | | | | 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
* Implemented non-blocking operations using poll()Sebastian Thiel2015-01-071-5/+8
| | | | Next up is using threads
* test_repo worksSebastian Thiel2015-01-061-2/+3
|
* test_index worksSebastian Thiel2015-01-061-1/+4
|
* test_commit works once againSebastian Thiel2015-01-051-7/+10
|
* Dum brute force conversion of all types.Sebastian Thiel2015-01-041-4/+5
| | | | | | However, StringIO really is ByteIO in most cases, and py2.7 should run but doesn't. This should be made work first.
* initial set of adjustments to make (most) imports work.Sebastian Thiel2015-01-041-1/+1
| | | | More to come, especially when it's about strings
* Removed unnecessary (non-gitpython) tests and fixed flake80.3.3Sebastian Thiel2015-01-041-3/+12
|
* Bumped version, updated changelog, reduced code smellSebastian Thiel2015-01-041-4/+1
| | | | | There is more work to do though, as many imports are still incorrect. Also, there are still print statements
* Applied autopep8Sebastian Thiel2014-11-191-28/+33
| | | | | Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
* Minor fix to make read_gitfile work .Sebastian Thiel2014-11-191-3/+3
|
* Merge branch 'separate-git-dir' of https://github.com/niyaton/GitPython into ↵Sebastian Thiel2014-11-191-2/+7
|\ | | | | | | | | | | | | niyaton-separate-git-dir Conflicts: git/repo/base.py
| * Added support for separeted git dir.niyaton2013-02-271-0/+6
| |
* | pep8 linting (trailing whitespace)Antoine Musso2014-11-161-41/+41
| | | | | | | | W291 trailing whitespace
* | pep8 linting (whitespace before/after)Antoine Musso2014-11-161-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | E201 whitespace after '(' E202 whitespace before ')' E203 whitespace before ':' E225 missing whitespace around operator E226 missing whitespace around arithmetic operator E227 missing whitespace around bitwise or shift operator E228 missing whitespace around modulo operator E231 missing whitespace after ',' E241 multiple spaces after ',' E251 unexpected spaces around keyword / parameter equals
* | pep8 linting (blank lines expectations)Antoine Musso2014-11-161-2/+1
| | | | | | | | | | | | E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
* | pep8 linting (whitespaces)Antoine Musso2014-11-161-71/+71
| | | | | | | | | | | | | | | | | | | | | | W191 indentation contains tabs E221 multiple spaces before operator E222 multiple spaces after operator E225 missing whitespace around operator E271 multiple spaces after keyword W292 no newline at end of file W293 blank line contains whitespace W391 blank line at end of file
* | Merge branch 'sf-master' of https://github.com/johnsca/GitPython into ↵Sebastian Thiel2014-11-151-2/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | johnsca-sf-master Conflicts: git/cmd.py git/objects/commit.py git/objects/fun.py git/objects/util.py git/remote.py git/repo/base.py git/test/lib/helper.py git/test/test_commit.py git/test/test_fun.py git/util.py
| * | [#5330] Ensure wait() is called on git processesCory Johns2013-10-091-2/+5
| | |
* | | Merge pull request #194 from maxyz/fix-issue-41_0.3Sebastian Thiel2014-11-141-2/+2
|\ \ \ | | | | | | | | Fix issue #41: repo.is_dirty() on empty repository with stashed files
| * | | Fix issue #41: repo.is_dirty() on empty repository with stashed filesJan Vcelak2014-09-291-2/+2
| | | |
* | | | Merge pull request #200 from dbaxa/0.3-with-unicode-fixesSebastian Thiel2014-11-121-2/+2
|\ \ \ \ | |/ / / |/| | | 0.3 with unicode fixes
| * | | Fix the Repo commit and tree methods to work with unicode revs.David Black2014-11-121-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: David Black <dblack@atlassian.com>
* | | | Fixed two minor typos.Marios Zindilis2014-06-131-2/+2
|/ / /
* | | Fix typo in untracked_filess13412014-05-091-1/+1
| | |
* | | Fix for untracked_files no longer detected #138Maximiliano Curia2014-05-061-18/+16
| | |
* | | Fixes creating a Repo for a submoduleRemi Rampin2014-04-241-3/+4
| | | | | | | | | | | | Fixes #155.
* | | tabs to 4 spaces - this won't make integrating the patches easier, but it's ↵Sebastian Thiel2014-02-091-735/+735
| |/ |/| | | | | probably a good idea to go a little more pep8 (and fix sins of my youth ;) )
* | Fixed consecutive lines with same blame info not appearing in blame.Mark Nevill2011-07-181-2/+5
|/ | | | | | | | | This fixes a bug when parsing blame -p output: Full commit info headers only appear for the first line from a particular commit, but other lines were ignored as the blame info dict was reset after each line. This patch handles both multiple consecutive lines from a commit and interleaved lines from multiple commits.
* Added conditional usage of the --progress flag to all relevant methods, that ↵Sebastian Thiel2011-06-071-10/+11
| | | | is push, fetch, pull and clone. This allows progress information to be sent in newer git versions without breaking older ones (ideally)
* Add progress tracking for git-clone.jez2011-06-071-6/+17
|
* git.repo.base: substituted all usages of the active_branch property with ↵Sebastian Thiel2011-01-171-4/+4
| | | | self.head.* in order to more safely get the current commit. active_branch would only work on non-detached heads
* Moved everything into the git subdirectory - some tests still need to be ↵Sebastian Thiel2010-11-251-0/+753
adjusted