summaryrefslogtreecommitdiff
path: root/lib/git/refs.py
Commit message (Collapse)AuthorAgeFilesLines
* moved all contents, incl. submodule gitdb, up to the root directorySebastian Thiel2010-11-211-1052/+0
|
* Fixed API reference docs as far as possibleSebastian Thiel2010-11-211-8/+14
|
* ORIG_HEAD handling is now implemented in the ref-class itself, instead of ↵Sebastian Thiel2010-11-181-6/+45
| | | | | | being a special case of the commit method; includes tests util: Fixed iterable lists, which broke due to an incorrectly implemented __contains__ method
* commit: when creating a new commit and advancing the head, it will now write ↵Sebastian Thiel2010-11-181-1/+1
| | | | the ORIG_HEAD reference as well
* remote: added methods to set and query the tracking branch status of normal ↵Sebastian Thiel2010-11-161-0/+78
| | | | | | | heads, including test. Config: SectionConstraint was updated with additional callable methods, the complete ConfigParser interface should be covered now Remote: refs methods is much more efficient now as it will set the search path to the directory containing the remote refs - previously it used the remotes/ base directory and pruned the search result
* Added partial implementation of update, but realized that using refs in ↵Sebastian Thiel2010-11-151-0/+2
| | | | general may be contradicting if a tag is given there, as well as a commit sha of the submodule. Hence it should really be only a branch
* test_refs: fixed failing tests just by making it less strict. It is ↵Sebastian Thiel2010-11-061-1/+1
| | | | dependent on the setup of the surrounding repository, hence the amount of ref-types found is actually variable, as long as they get more
* cmd: improved error handling and debug printingSebastian Thiel2010-10-271-2/+23
| | | | head.reset: will now handle resets with paths much better, especially in the --mixed case, see http://github.com/Byron/GitPython/issues#issue/2
* 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-2/+1
| | | | utilities - the repo module got rather large
* Refs now use object.new_from_sha where possible, preventing git-batch-check ↵Sebastian Thiel2010-07-061-2/+2
| | | | to be started up for sha resolution
* RevParse now generally works, but there are still some more specialized ↵Sebastian Thiel2010-07-061-4/+0
| | | | tests missing
* Initial version of the rev-parse routine, which doesn't work too bad, but ↵Sebastian Thiel2010-07-061-1/+18
| | | | its still rather slow and many tests are not yet implemented
* Renamed modules utils to util, and errors to exc to be more conforming to ↵Sebastian Thiel2010-06-291-2/+2
| | | | the submodules's naming conventions
* Updated and fixed sphinx API docs, which included one quick skim-throughSebastian Thiel2010-06-291-7/+18
|
* All tests adjusted to work with the changed internal sha representationSebastian Thiel2010-06-281-7/+8
|
* Adjusted all files to (hopefully) deal with the fact that all objects now ↵Sebastian Thiel2010-06-251-925/+846
| | | | | | | 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
* refs: a Reference can now be created by assigning a commit or object (for ↵Sebastian Thiel2010-05-261-11/+40
| | | | convenience)
* repo: added test with some basic assertions for empty repositories theseSebastian Thiel2010-05-101-28/+9
| | | | | | | | repo.is_dirty: Will not fail on empty repo ( anymore ) index.entries: will just be empty if the repository is empty refs: added to_full_path method which can be used to create fully synthetic instances of Reference types, added a test for it Converted all touched files to spaces, which is why git reports so many changed files. Actually I was thinking every file would use spaces, but apparently not
* Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel2010-03-041-913/+913
|
* refs: Added is_valid method to SymbolicReference base classSebastian Thiel2009-12-151-0/+13
|
* Reference: reading of commit data is now safer and handles non-existing ↵Sebastian Thiel2009-12-071-2/+4
| | | | paths - previously it would run into a code-branch I forgot
* SymbolicRefence base is now fully aware of pack files in all operations.Sebastian Thiel2009-12-041-96/+171
| | | | Ref(anytype) Iteration was improved such that automatic filtering now also works for SymbolicReferences ( which only return symbolic refs)
* refs: Fixed incorrect retrieval of symbolic reference types - previously we ↵Sebastian Thiel2009-12-041-3/+3
| | | | only really knew heads, now we know references as a common base. The adjustment make the ref system as flexible as it was originally meant to be
* SymbolicReference creation now won't fail if the target already exists and ↵Sebastian Thiel2009-12-041-7/+18
| | | | has the same content as the new reference
* refs.rename: improved handling as it will only raise ( if not forced ) if ↵Sebastian Thiel2009-12-031-2/+7
| | | | the destination contains different data. If it contains the same, the move will work as we can do what the user intended
* refs: Implemented low-level (Symbolic)Reference renaming as some references ↵Sebastian Thiel2009-12-031-1/+46
| | | | cannot be reamed using the git-branch command if they are not in refs/heads, that is in a non-standard refs folder
* repo: renamed directories to more descriptive identifiers and made them ↵Sebastian Thiel2009-12-031-6/+6
| | | | safer to use in case of bare repositories
* SymbolicReference.delete: Now takes SymbolicReference instances as well, not ↵Sebastian Thiel2009-11-301-0/+3
| | | | | | only paths diff.__str__: fixed incorrect message generation error
* Generalized custom reference creation down to SymbolicReference level. ↵Sebastian Thiel2009-11-301-35/+76
| | | | 'Reference' implementation now shares all the code from the SymbolicReference base. This implementation allows to create any reference you'd like without requireing git calls
* ref: Added general method to create and delete any reference pointing to any ↵Sebastian Thiel2009-11-301-2/+69
| | | | object. They are only constrained to be located in the refs/ directory
* SymbolicReference is now the base for all references, allowing them to ↵Sebastian Thiel2009-11-261-24/+53
| | | | | | appear litereally anywhere. A 'default' reference is nothing more than a detached symbolic reference. Added method iterate the packed refs file
* Initially put SymbolicRef as base class of Reference, which theoretically is ↵Sebastian Thiel2009-11-261-185/+161
| | | | how it should be, but many tests are still failing as the implementation is not yet there
* SymbolicReferences can now be at any path within the repository, there is no ↵Sebastian Thiel2009-11-261-19/+18
| | | | | | restriction anymore. Added a test to assure the git commands can handle it
* Added utilities helping to create proper paths either with slashes or ↵Sebastian Thiel2009-11-051-6/+6
| | | | | | | backslashes depending on the operating system fixed test_refs and test_trees Many more issues remain though, this is just a first backup commit
* head.checkout method added including testSebastian Thiel2009-11-041-1/+33
|
* added all new files to reference.rst and corrected the worst mistakes. There ↵Sebastian Thiel2009-11-041-3/+2
| | | | are still a few errors left that I cannot fix as it complains about whitespace in the end ... that is exactly what I hate restructured text for, its just a ... anyway.
* refs: iter_items now imlemented natively for additional performance. We did ↵Sebastian Thiel2009-11-031-49/+45
| | | | not implement the crazy sorting feature found in git-for-each-ref though
* Reference.from_path now only creates references, not symbolic refs. ↵Sebastian Thiel2009-11-031-7/+21
| | | | SymbolicReference.from_path creates only symbolic refs. This change was not detected by a test, hence there is room for improvement on the testing field
* Now using git-update-ref and git-symbolic-ref to update references with ↵Sebastian Thiel2009-11-031-21/+17
| | | | reflog support. This should be manually implemented though for more performance, what it does is relatively easy
* object: renamed id attribute to sha as it in fact is always being rewritten ↵Sebastian Thiel2009-11-031-4/+4
| | | | as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
* repo: added create_* and delete_* methods for refs ( head, tag, remote ) as ↵Sebastian Thiel2009-11-031-2/+2
| | | | a convenient shortcut to using the classes manually
* Intermediate commit with a few added and improved tests as well as many fixesSebastian Thiel2009-11-031-0/+3
|
* renamed remote_branch to remote_head, improved errror messageSebastian Thiel2009-10-271-3/+3
|
* Reference._from_string will now create the appropriate type, not just the ↵Sebastian Thiel2009-10-271-1/+1
| | | | type of the actual class. This could result in a symbolic reference returned even though you technically requested a reference - this issue must still be addressed.
* put _make_file helper method into TestBase classSebastian Thiel2009-10-271-1/+3
| | | | remote: prepared FetchInfo class to be returned by fetch and pull. About to implement tests
* refs.SymoblicRef: implemented direcft setting of the symbolic references ↵Sebastian Thiel2009-10-261-3/+14
| | | | commit, which possibly dereferences to the respective head
* Refs can now set the reference they are pointing to in a controlled fashion ↵Sebastian Thiel2009-10-231-6/+42
| | | | by writing their ref file directly
* Added TagRefernce creation and deletion including testsSebastian Thiel2009-10-231-4/+17
| | | | Added RemoteReference deletion and test
* Implemented head methods: create, delete, rename, including testsSebastian Thiel2009-10-231-13/+21
|