| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
not implemented causing incorrect merge results. Added test to cover this issue
Diff: added NULL_BIN_SHA constant for completeness
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
newline at the end of the split line was not split away automatically. Added test for this, and the trivial fix
Wow, at least two people reviewd the code, but it slipped through anyway :)
|
| |
|
| |
|
|
|
|
|
|
| |
only paths
diff.__str__: fixed incorrect message generation error
|
|
|
|
| |
IndexObject._mode_str_to_int: Now uses the 6 relevant bytes of the passed in octal string
|
|
|
|
| |
any of our changes entries as it would in fact write a possibly cached tree stored in our extension data.It was solved by simply ignoring that extension data when writing the index for tree creation. A test was added for this as well
|
|
|
|
| |
that always occour when dealing with working tree diffs ( for ovious reasons ). Also the implementation would previously leave empty blobs where no file actually existed
|
|
|
|
| |
one was made faster by reducing the amount of permutations to the minimal value
|
|
|
|
| |
as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
|
|
|
|
| |
unify error handling amongst clients using the process directly. It might be needed to add a flag allowing to easily override that
|
|
|
|
|
|
|
| |
other items as well as the working tree
Diff.Diffable: added callback allowing superclasses to preprocess diff arguments
Diff.Diff: added eq, ne and hash methods, string methods would be nice
|
|
|
|
| |
repository is bare and if there is no index or second tree specified
|
| |
|
|
|
|
| |
possible input types, DiffIndex still requires implementation though
|
|
|
|
| |
diff module, which probably is the right thing to do anyway
|
|
|
|
| |
Diff class has been prepared to process raw input, but its not yet more than a frame
|
|
|
|
| |
_list_from_string to indicate their new status as private method, adjusted all callers respectively
|
| |
|
|
|
|
| |
mode is now generally an int compatible to the stat module
|
|
|
|
|
|
| |
return the same thing which does not work anymore - re-implemented it in a more dynamic manner, but in the end tests will have to be revised anyway
Added slots to Diff and Stats type respectively
|
|
|
|
| |
editor to work with the files properly. Can convert it back for releaes
|
|
|
|
|
|
|
| |
a|b_blob_id as it better reflects the actual value
actor regex now precompiled on class level
blob regex now precompiled on class level; made blame method more readable and faster although it can still be improved by making assumptions about the blame format and by reading the git command stream directly ( which is a general issue right now )
|
|
|
|
| |
it would make existing code incompatible in some places
|
|
|
|
|
|
| |
path ( in the 'name' member variable ), the a|b_path members of Diff have been removed. Tests were adjusted and run
Diff docs have been updated to provide a little more information on specifics cases
|
| |
|
| |
|
|
|
|
|
| |
Currently the parsed headers are just ignored but I'll add them to the Diff object in a future commit
(cherry picked from commit 711b655f29b42821c51be8e592143c7db31ed140)
|
|
|
|
|
| |
The old diff parser in list_from_string took a large amount of time to parse long diffs, on one of my repositories it took over 3 minutes to parse the initial commit. The new parser uses a single regexp to match the header of a diff, and iterates over the each individual diff by splitting the entire string by the diff seperator, attempting to match the header for each individual diff. With the new parser parsing the same repository is almost instant, woohoo!
(cherry picked from commit 5b6b27f153bdc30380bea12a528ef483571dd57a)
|
| |
|
| |
|
|
up tests so they pass except for stderr test. Modified version information retrieval.
|