summaryrefslogtreecommitdiff
path: root/lib/git/index
Commit message (Collapse)AuthorAgeFilesLines
* moved all contents, incl. submodule gitdb, up to the root directorySebastian Thiel2010-11-215-1729/+0
|
* Inital implementation of Submodule.move including a very simple and ↵Sebastian Thiel2010-11-171-1/+2
| | | | to-be-improved test
* index: Sped up reading and writing of the index file by reducing the amount ↵Sebastian Thiel2010-11-172-38/+34
| | | | of attribute lookups considerably
* Initial implementation of submodule.add without any tests. These are to come ↵Sebastian Thiel2010-11-161-3/+5
| | | | next
* index.reset: updated parameter docs, but most importantly, the method now ↵Sebastian Thiel2010-10-271-28/+32
| | | | has better testing for the use of paths during reset. The IndexFile now implements this on its own, which also allows for something equivalent to git-reset --hard -- <paths>, which is not possible in the git command for some probably very good reason
* cmd: improved error handling and debug printingSebastian Thiel2010-10-271-0/+4
| | | | head.reset: will now handle resets with paths much better, especially in the --mixed case, see http://github.com/Byron/GitPython/issues#issue/2
* BaseIndexEntry: Added to_blob method, refactored functionality sligthlySebastian Thiel2010-07-203-26/+39
| | | | repo.clone: assured backslashes won't reach the remote configuration, as it can cause trouble when re-reading the file later on. Some git commands don't appear to be able to properly deal with backslashes, other's do
* index: Fixed bug which caused incorrect separators in output files of the ↵Sebastian Thiel2010-07-191-5/+5
| | | | | | return value remote: fixed evil bug that was caused by some inconsistency of python when __getattr__ and __slots__ are invovled - namely it calles getattr before checking for a slot of the same name, in an alternating fashion
* Index._iter_expand_paths: fixed tiny error with large impact, there was code ↵Sebastian Thiel2010-07-151-2/+1
| | | | using a / in a hardcoded fashion, leading to absolute paths where the caller expected relative ones
* Addiitonal win32 fixes related to, guess it, backslashes in pathsSebastian Thiel2010-07-151-2/+4
|
* Fixed the missing Repo type documentation thanks to a hint of gasche, fixed ↵Sebastian Thiel2010-07-142-2/+4
| | | | a few more resT syntax errors on the way
* Fixed python < 2.6 windows specific issue when reading in the index using a ↵Sebastian Thiel2010-07-111-1/+7
| | | | memory map. Its totally ridiculous, but fixed
* Adjusted previous object creators to use the rev_parse method directly. ↵Sebastian Thiel2010-07-071-1/+1
| | | | rev_parse could be adjusted not to return Objects anymore, providing better performance for those who just want a sha only. On the other hand, the method is high-level and should be convenient to use as well, its a starting point for more usually, hence its unlikely to call it in tight loops
* Made repo.py a package to allow better localization of functions and ↵Sebastian Thiel2010-07-061-1/+1
| | | | utilities - the repo module got rather large
* Renamed modules utils to util, and errors to exc to be more conforming to ↵Sebastian Thiel2010-06-292-5/+5
| | | | the submodules's naming conventions
* Updated and fixed sphinx API docs, which included one quick skim-throughSebastian Thiel2010-06-293-19/+25
|
* Diff: fixed bug that caused a string to end up as a blob modeSebastian Thiel2010-06-291-1/+1
|
* Adjusted all files to (hopefully) deal with the fact that all objects now ↵Sebastian Thiel2010-06-253-74/+50
| | | | | | | use 20 byte sha's internally as it is closer to the GitDB implementation Switched all remaining files back to tabs Adjusted all remaining docstrings to suit the sphinx doc convention - its likely that there are many of docstring syntax errors though
* index.reset is now partly implemented using python, but in fact it resorts ↵Sebastian Thiel2010-06-251-20/+34
| | | | to using git-read-tree to keep the stat information when merging one tree in. After all this is what needed to be implemented in python as well
* IndexFile.add: writing of the index file can now optionally be turned off. ↵Sebastian Thiel2010-06-241-6/+12
| | | | The default is to write the physical index, which is the behaviour you would expect
* aggressive_tree_merge: fixed incorrect handling of one branch, it was just ↵Sebastian Thiel2010-06-242-5/+11
| | | | | | not implemented causing incorrect merge results. Added test to cover this issue Diff: added NULL_BIN_SHA constant for completeness
* Multiple partly critical bugfixes related to index handlingSebastian Thiel2010-06-242-8/+33
|
* fixed critical bug in traverse_trees_recursive, implemented IndexFile.new ↵Sebastian Thiel2010-06-232-10/+18
| | | | including simple test, it may be simple as the methods it uses are throroughly tested
* Added test for aggressive_tree_mergeSebastian Thiel2010-06-232-64/+68
|
* Implemented simple tree merging and a simple test, more elaborate testing is ↵Sebastian Thiel2010-06-231-8/+78
| | | | in progress
* Initial frame for implementing read_tree using pure python. As git-read-tree ↵Sebastian Thiel2010-06-222-7/+46
| | | | | | | can do much more than we can ( and faster assumably ), the .new method is used to create new index instances from up to 3 trees. Implemented multi-tree traversal to facilitate building a stage list more efficiently ( although I am not sure whether it could be faster to use a dictionary together with some intensive lookup ), including test Added performance to learn how fast certain operations are, and whether one should be preferred over another
* index.write_tree: now uses MemoryDB, making tree handling more efficient as ↵Sebastian Thiel2010-06-221-3/+7
| | | | IO will only be done when required. A possible disadvantage though is that time is spent on compressing the trees, although only the raw data and their shas would theoretically be needed. On the other hand, compressing their data uses less memory. An optimal implementation would just sha the data, check for existance, and compress it to write it to the database right away. This would mean more specialized code though, introducing redundancy. If IStreams would know whether they contain compressed or uncompressed data, and if there was a method to get a sha from data, this would work nicely in the existing framework though
* Tree-Writing now works after fixing an off-by-one errorSebastian Thiel2010-06-222-12/+13
|
* index.write_tree: initial version implemented, although its not yet working ↵Sebastian Thiel2010-06-223-53/+117
| | | | | | | correctly, a test to explicitly compare the git version with the python implementation is still missing Tree and Index internally use 20 byte shas, converting them only as needed to reduce memory footprint and processing time objects: started own 'fun' module containing the most important tree functions, more are likely to be added soon
* index: put serialization methods into new 'fun' module, this makes the calls ↵Sebastian Thiel2010-06-212-137/+183
| | | | faster as it removes one level of indirection, and makes the main file smaller, improving maintainability
* index.add does not need the git clt anymoreSebastian Thiel2010-06-212-24/+9
|
* index: Entries are now using flags internally, instead of reducing the flag ↵Sebastian Thiel2010-06-213-59/+82
| | | | information to just the stage ( just to be closer to the git-original )
* index.add: now uses gitdb.store functionality instead of git-hash-file. The ↵Sebastian Thiel2010-06-211-44/+46
| | | | python version is about as fast, but could support multithreading using async
* Move LazyMixin type to gitdb, index reading now uses file_contents_ro from ↵Sebastian Thiel2010-06-151-8/+4
| | | | gitdb as well
* Reimplemented Lock handling to be conforming to the git lock protocol, which ↵Sebastian Thiel2010-06-151-15/+11
| | | | | | is actually more efficient than the previous implementation Index now locks its file for reading, and properly uses LockedFD when writing
* Implemented the serializable interface - by refactoring codeSebastian Thiel2010-06-141-32/+47
|
* index: split index file into multiple files of a single package. This didn't ↵Sebastian Thiel2010-06-144-0/+1414
reduce the file size as much as I would have liked, but certainly is a start for further 'outsourcing'