summaryrefslogtreecommitdiff
path: root/lib/git
Commit message (Collapse)AuthorAgeFilesLines
* utils: Added LockFile including testSebastian Thiel2009-10-222-68/+169
| | | | | GitConfigFile is now derived from LockFile using its capabilities Implemented ConcurrentWriteOperation, test is yet to be done
* Index now behaves more like the default index if no explicit stream is ↵Sebastian Thiel2009-10-221-8/+21
| | | | given. It will lazily read its data on first access
* Added reset method to Head - its a class method due to the very general ↵Sebastian Thiel2009-10-221-0/+46
| | | | nature of the command. Yet I don't really like the way you have to call it as repo has to be ṕassed as first arg
* git cmd fix: After removing the with_raw_output flag, I actually did the ↵Sebastian Thiel2009-10-221-2/+2
| | | | wrong thing by _not_ stripping the final newline at the end of all git commands we use. This is the default now which cannot be changed - perhaps its wrong to remove it, but in way you'd always want the final newline stripped unless you get data directly, but there are better ways to do that ( blob.data, blob.data_stream, blob.stream_data )
* Merge branch 'index' into improvementsSebastian Thiel2009-10-225-11/+577
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * index: Removed index test marker for custom commits as this boils down to a good way to add files to the index/remove them and make commits which are possibly customized with custom parents index writing now creates a sha on the content making it possible to write valid indices after manually removing or altering entriesgst Implemented merge/resolve handling , but realized that index writing is not yet working properly as it is sha1 checked as well. This explains what my 20 byte 'extension_data' actually is ;) index: Added write_tree method including test index.iter_blobs method added including tests ( which have been improved generally for more coverage ) tree.traverse: Added prune functionality - previously the predciate did both, pruning and preventing to return items Improved testing of index against trees, tests succeed with next commit Initial version of merge including tests for one-way, two-way and tree-way merge index writing added including simple test, improved docs of IndexEntry improved IndexEntry type and added test for parsing of the stage Improved tuple access of EntryIndex class including test, stage and type access still needs to be decoded though Added initial version of the index reading from file - IndexEntry interface is to be improved though, writing needs to be implemented as well Added frame for index implementation and testing
| * index writing now creates a sha on the content making it possible to write ↵Sebastian Thiel2009-10-222-3/+71
| | | | | | | | valid indices after manually removing or altering entriesgst
| * Implemented merge/resolve handling , but realized that index writing is not ↵Sebastian Thiel2009-10-221-4/+74
| | | | | | | | yet working properly as it is sha1 checked as well. This explains what my 20 byte 'extension_data' actually is ;)
| * index: Added write_tree method including testSebastian Thiel2009-10-211-12/+41
| |
| * index.iter_blobs method added including tests ( which have been improved ↵Sebastian Thiel2009-10-211-8/+52
| | | | | | | | generally for more coverage )
| * tree.traverse: Added prune functionality - previously the predciate did ↵Sebastian Thiel2009-10-212-9/+17
| | | | | | | | both, pruning and preventing to return items
| * Improved testing of index against trees, tests succeed with next commitSebastian Thiel2009-10-211-1/+1
| |
| * Initial version of merge including tests for one-way, two-way and tree-way mergeSebastian Thiel2009-10-212-5/+80
| |
| * index writing added including simple test, improved docs of IndexEntrySebastian Thiel2009-10-211-25/+127
| |
| * improved IndexEntry type and added test for parsing of the stageSebastian Thiel2009-10-201-4/+4
| |
| * Improved tuple access of EntryIndex class including test, stage and type ↵Sebastian Thiel2009-10-201-0/+55
| | | | | | | | access still needs to be decoded though
| * Added initial version of the index reading from file - IndexEntry interface ↵Sebastian Thiel2009-10-201-1/+99
| | | | | | | | is to be improved though, writing needs to be implemented as well
| * Added frame for index implementation and testingSebastian Thiel2009-10-202-1/+18
| |
* | Stream_data streams data to a given output stream most efficiently with a ↵Sebastian Thiel2009-10-222-1/+12
| | | | | | | | | | | | | | | | | | | | | | low memory footprint. Still, the git-cat-file command keeps all data in an interal buffer instead of streaming it directly. This is a git design issue though, and will be hard to address without some proper git-hacking. Conflicts: lib/git/cmd.py
* | Git.cmd: removed with_raw_output optionSebastian Thiel2009-10-222-35/+33
| | | | | | | | | | repo.archive: made it work with new way of custom output streams added test for repo.archive which was missing for some reason
* | added Object.data_stream property allowing to stream object data ↵Sebastian Thiel2009-10-223-0/+31
| | | | | | | | directly.Considering the implementation of the git commnd which temporarily keeps it in a cache, it doesnt make a huge diffence as the data is kept in memory while streaming. Only good thing is that it is in a different process so python will never see it if done properly
* | remote: Added fetch, pull, push methods to the interface to make these ↵Sebastian Thiel2009-10-212-3/+65
| | | | | | | | operations more convenient, like repo.remotes.origin.fetch
* | remote.refs now returns an IterableList allowing easier access to the ↵Sebastian Thiel2009-10-211-2/+2
| | | | | | | | remotes, and conforming it to the way repo returns its references as well
* | repo.is_dirty: fixed incorrect check of a dirty working tree, previously it ↵Sebastian Thiel2009-10-211-1/+3
| | | | | | | | would compare HEAD against the working tree, not the index which was intended
* | touch method improved to open for appending which would not clear the file ↵Sebastian Thiel2009-10-211-1/+1
|/ | | | and be like an actual touch
* repo.alternates test cheked for correctness and bugfixed - totally mocked ↵Sebastian Thiel2009-10-201-6/+10
| | | | tests bare the risk that things do not work properly outside of the sandbox.
* Added slots to Repo type to be sure we do not accidentally set values on it, ↵Sebastian Thiel2009-10-201-0/+1
| | | | | | and to be more efficient of course ;) TODO: Added info about possible config improvement
* Fixed bare repository handling - bare is now a property to prevent writing itSebastian Thiel2009-10-202-9/+35
|
* Moved specialized methods like dashify, touch and is_git_dir to module to ↵Sebastian Thiel2009-10-204-23/+20
| | | | | | the respective modules that use them fixed repo.daemon_export which did not work anymore due to incorrect touch implementation and wrong property names
* Improved is_dirty including testSebastian Thiel2009-10-201-10/+20
|
* Implemneted IterableLists for refs, commits and remote objects including ↵Sebastian Thiel2009-10-195-8/+47
| | | | simple tests
* commit.count: is an instance method nowSebastian Thiel2009-10-194-29/+43
| | | | | repo: added head , tag and iter_trees methods for completeness changes: headlines now sorted chronologically
* repo.remote method addedSebastian Thiel2009-10-191-0/+14
| | | | CHANGES updated to carry information about remotes and config
* remote: added tests for creation and removal, finishing the remote interfaceSebastian Thiel2009-10-192-1/+5
|
* config: fixed serious issues that would cause it to see initial tabs as ↵Sebastian Thiel2009-10-191-0/+73
| | | | continuation lines - this leads to very incorrect results when parsing git config files. Now the complete reading is overridden to make it work as there was no other way
* Added configuration access including tests to remoteSebastian Thiel2009-10-193-20/+60
| | | | | config: fixed issue that would cause it to abort reading if the file did not exist - this is valid now Test does not work as the configuration parsing does not work as expected - this must be fixed first
* Added remote module and test cases - about to implement remote option handlingSebastian Thiel2009-10-193-0/+217
|
* added initial frame for remote handling- remotes are somewhat related to ↵Sebastian Thiel2009-10-191-28/+18
| | | | either parsing the command output or to reading the repo configuration which would be faster
* added additional testing for the configuration, concurrent access and config ↵Sebastian Thiel2009-10-191-6/+18
| | | | reading, all tests work
* implemented config class as far as necessary, one check is still failingSebastian Thiel2009-10-192-20/+1635
| | | | Added odict module to get an OrderedDict to be used in the config parser, assuring the order of sections and options does not change
* Added frame for configuration reader involving a meta class, decorators and ↵Sebastian Thiel2009-10-183-1/+153
| | | | tests - most of which still has to be filled out
* Improved tagobject message handling by not assuming an empty fourth line anymoreSebastian Thiel2009-10-181-2/+7
|
* diff method now checks for git-diff errrs that can easily occour if the ↵Sebastian Thiel2009-10-181-5/+16
| | | | repository is bare and if there is no index or second tree specified
* DiffIndex implemented including testSebastian Thiel2009-10-181-9/+56
|
* diff: implemented raw diff parsing which appears to be able to handle ↵Sebastian Thiel2009-10-181-9/+53
| | | | possible input types, DiffIndex still requires implementation though
* resolved cyclic inclusion issue by moving the Diffable interface into the ↵Sebastian Thiel2009-10-185-78/+76
| | | | diff module, which probably is the right thing to do anyway
* repo: fixed untracked files function which used git-commit before, it can ↵Sebastian Thiel2009-10-181-1/+1
| | | | open vim to get a message though which makes the program appear to freeze - using git-status now
* implemented diff tests, but will have to move the diff module as it needs to ↵Sebastian Thiel2009-10-181-2/+5
| | | | create objects, whose import would create a dependency cycle
* Removed a few diff-related test cases that fail now as the respective method ↵Sebastian Thiel2009-10-171-0/+1
| | | | is missing - these tests have to be redone in test-diff module accordingly
* added Diffable interface to objects.base, its used by Commit and Tree objects.Sebastian Thiel2009-10-164-62/+92
| | | | Diff class has been prepared to process raw input, but its not yet more than a frame
* Fixed object bug that would cause object ids not to be resolved to sha's as ↵Sebastian Thiel2009-10-163-41/+31
| | | | | | this was assumed - now there is a test for it as well repo: removed diff and commit_diff methods, added 'head' property returning the current head as Reference object