aboutsummaryrefslogtreecommitdiff
path: root/git
AgeCommit message (Collapse)Author
2014-11-14Merge pull request #192 from maxyz/masterSebastian Thiel
test_fetch_info error, FETCH_HEAD uses tabs
2014-09-29Fix issue #41: repo.is_dirty() on empty repository with stashed filesJan Vcelak
2014-09-29test_fetch_info error, FETCH_HEAD uses tabsMaximiliano Curia
2014-08-17Merge pull request #183 from kmosher/masterSebastian Thiel
Update the config parser using code from python2.7
2014-08-13Fix `git push` hanging when stdout/stderr is bigMarc Abramowitz
Fixes GH-145
2014-08-12Update the config parser using code from python2.7Keith Mosher
Notably this adds support for valueless options ( e.x. the option "required" which can be added to filters which must succeed.)
2014-07-25Autopep8 fixes with maximum line length 120Craig Northway
2014-07-25Merge pull request #175 from craigez/feature/handle_utf8Sebastian Thiel
Handling unicode arguments
2014-07-25Closing file handles/streamsCraig Northway
2014-07-25Basic test for __unpack_args to verify unicode handling worksCraig Northway
2014-07-18Fixing unicode typesCraig Northway
2014-05-06Fix for untracked_files no longer detected #138Maximiliano Curia
2014-02-10Basic fixes to get tests back on track. Of course there is much more work to ↵Sebastian Thiel
be done here
2014-02-10removed leftover gitdb - I thought it was merged into gitSebastian Thiel
2014-02-09tabs to 4 spaces - overall state of this branch is desolate, but fixable. ↵Sebastian Thiel
Needs plenty of work
2012-10-18Add an output_strip kwarg to Git.executeLorenz Schori
Strip the last line of the output if it is empty (default). Stripping should be disabled whenever it is important that the output is not modified in any way. For example when retrieving patch files using git-diff.
2012-07-24Make GitPython work on non English systemsFlorian Ludwig
2012-06-16add tests for git.diff.Diff._index_from_raw_format()Patrick Pfeifer
2012-06-16detect renames in "git diff --raw" outputPatrick Pfeifer
potentially fixes https://github.com/gitpython-developers/GitPython/issues/36
2012-05-30Merge pull request #46 from ereOn/masterSebastian Thiel
Incorrect handling of backslashes and quotes in GitConfigParser Steps to reproduce the issue: import git config = git.Repo().config_writer() config.add_section('test') config.set_value('test', 'test', r'some\data') Now if you try to read this value using a regular (non Python) git config, Git complains that the configuration file is invalid: fatal: bad config file line 11 in .git/config Indeed, if you open .git/config you can see that the value is written as: [test] test = some\data While the git-config configuration states that: String values may be entirely or partially enclosed in double quotes. You need to enclose variable values in double quotes if you want to preserve leading or trailing whitespace, or if the variable value contains comment characters (i.e. it contains # or ;). Double quote " and backslash \ characters in variable values must be escaped: use \" for " and \ for . That is, the backslashes are not escaped in the configuration file. This also causes issues while reading, because values are not un-escaped. This pull request fixes both those issues and also fixes unescaped quotes pairs. A test-case has been provided along with the fixes.
2012-05-17Merge pull request #43 from swallat/masterSebastian Thiel
Fixed 'Inappropriate ioctl for device' problem on posix systems Without an active login shell on linux or osx, we now use the password database to obtain the active login, instead of relying on environment variables).
2012-05-08Ignore signal exception on AutoInterrupt destructor.Tatsuki Sugiura
When command run as subprocess, AutoInterrupt will kill the process on destructor. However, if process already finished, it raise OSError exception. This fix just ignore OSError on os.kill.
2012-05-08Fix fd leak on git cmd.Tatsuki Sugiura
Currently if command is called with as_proces=True, pipes for the command will not be closed. This change makes sure to close command file descriptors.
2012-02-08Fixed a case were values containing \\" were not properly escapedJulien Kauffmann
2012-02-08Fixed quotes and backslashes handling in GitConfigParserJulien Kauffmann
2012-02-08Added test for backslahed/quoted valuesJulien Kauffmann
2012-02-02Fixed 'Inappropriate ioctl for device' problem on posix systemsSebastian Wallat
2011-07-18Fixed consecutive lines with same blame info not appearing in blame.Mark Nevill
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 real test to verify blame works against the actual commit, not only a mock of what was produced by blame in old git releases
2011-07-08Fixed up tests to actually use pygit2. Its worth noting that the performance ↵Sebastian Thiel
tests only work reliably in a patched up version, or the next point release.
2011-07-08Added basic frame for pygit2 - it just needs some basic methods to be ↵Sebastian Thiel
implemented now - depending on the performance, it might actually receive some more work
2011-07-07Added store support. Now the basic object IO is implemented, which shall be ↵Sebastian Thiel
enough for the first batch of work
2011-07-07Removed cache in PureCompoundDB as it had the tendency to slow things down ↵Sebastian Thiel
actually
2011-07-07Added trivial implementation for info and stream methods - info is very ↵Sebastian Thiel
inefficient, but can't help it. Basic repo tests don't work as dulwich ignores alternate files
2011-07-07Fixed submodule related issues once again - is it ever going to end ?Sebastian Thiel
2011-07-07Added default performance tests - these should help to measure something at ↵Sebastian Thiel
least, which implicitly includes pack handling. For the pack specific tests to work, one would need a pack interface though, which is currently not planned to be specifically exposed
2011-07-07Initial version of the DulwichType inheritance. For now, it inherits ↵Sebastian Thiel
everything from the existing implementation, but one by one things can be reimplmented to use dulwich. It also shows that py 2.6 is quite plagued from its new feature, which is actually a bug, as objects inability to accept any args makes mixins hard to use ...
2011-07-07removed now superfluous InstanceDecorator, as it was just complicating ↵Sebastian Thiel
things after all
2011-07-07Added auto-skip mixin metacls, some serious brainfuck, if the required ↵Sebastian Thiel
module was not found. Its actually a nice mix between decorators which are class types, and a mixin as a metaclass, which applies said decorator. The InstanceDecorator wouldn't actually be needed, but it adds flexibility. Maybe it should be removed ...
2011-07-06Added basis for initial dulwich integration. Many basic issues should ↵Sebastian Thiel
surface while integrating this
2011-07-06cmd: on windows, we will now fallback to using git.cmd, as the default ↵Sebastian Thiel
installation puts it into the path, instead of git.exe. Of course we warn about the performance penalty that goes with it. Fortunately, using a wrapped git.exe works when creating pipes to the process, admittedly I was a bit surprised by this. fixes #26
2011-07-05Implemented GIT_PYTHON_GIT_EXECUTABLE including test and docsSebastian Thiel
2011-07-05fixes python 2.6 compatibility issuesSebastian Thiel
2011-07-05util: pick the type of memory manager based on the python version, to have ↵Sebastian Thiel
optimal results in all cases (at least the ones I can test) pack: now works properly with a sliding memory manager test_packedodb_pure: fixed very memory hungry implementation by using an iterator. This will of course reduce the measured performance a bit, but 750MB of memory is just a little bit too much for an ordinary test. Maybe it would be alright to just reduce the number of items ... but performance isn't a strength of python after all
2011-07-05util: added global sliding memory managerSebastian Thiel
pack: now using the global sliding memory manager. The current implementation uses assumes that packs are small enough to fit into memory right away, where the window size will be about 1 GB, as it never calls use_window() to assure the required offset actually exists. It will need to change to set the window appropriately.
2011-07-05Added smmap as submodule, package initialization adjusted to assure it is ↵Sebastian Thiel
available
2011-07-04Fetch info can now deal much better with non-default ref specs, see #23, ↵Sebastian Thiel
#24, #25
2011-07-04Basic remote functionality moved to Reference type, as it can in fact be ↵Sebastian Thiel
useful for tags as well, which might end up somewhere in the refs/remotes space. Its not likely that it will ever be used on a pure Reference instance though, but it is the smallest common base
2011-07-04refs: added constructor flag to allow refs to be instatiated from any path, ↵Sebastian Thiel
including simple test
2011-06-13Fixed implementation of _version_info which didn't work for python 2.4 ↵Sebastian Thiel
thanks to the rpartition method. omg
2011-06-13fixed submodule test to work on windowsSebastian Thiel