aboutsummaryrefslogtreecommitdiff
path: root/git/objects
AgeCommit message (Collapse)Author
2015-12-13chore(tree): remove dead codeSebastian Thiel
[skip ci]
2015-12-13fix(tree): tree item sort now uses git-styleSebastian Thiel
Previously it was possible to generate trees which didn't appear legit to git as gitpython's sorting was a simple alpha-numeric sort. Git uses one that minimizes literal string comparisons though, and thus behaves slightly differently sometimes. Fixes #369
2015-11-08fix(commit): respect daylight saving when computing utc-offsetSebastian Thiel
Related to #362
2015-08-17fix(commit): serialization timezone handlingSebastian Thiel
Previously timezones which were not divisable by 3600s would be parsed correctly, but would serialize into a full hour, rounded up. Now floating point computation is used which fixes the issue. Related to #336
2015-07-22gic {init,clone} --separate-git-dir is supported only since 1.7.5Julien Pivotto
Without this commit the update() function of a submodule does not work in CentOS 6.
2015-07-17typo in submodules api documentationJulien Pivotto
2015-07-17Added two extra paramaters for commit to take author date and commit dateavi
2015-06-25Added NullHandlers to all loggers to preven "No handler" messagesJames Nowell
When the code is run without setting up loggers, the loggers have no handlers for the emitted messages. The logging module displays: `No handlers could be found for logger "git.cmd"` on the console. By adding a NullHandler (a no-op) the message disappears, and doesn't affect logging when other handlers are configured.
2015-05-13Fix type error (startswith expects bytes)John L. Walker
2015-04-07Fix problem with submodules on WindowsMarkus Siemens
On Windows, `repo.create_submodule(...)` failed because git didn't recognize the worktree path set in `.git/modules/sub/config` (`fatal: bad config file line 6 in ./config`). This commit makes `_write_git_file_and_module_config` convert the worktree path to the linux format (forward slashes) which git recognizes.
2015-03-27Fix typoKyle P. Johnson
2015-03-02fix(iter-commit): ambiguous argument errorSebastian Thiel
In repositories like > git branch -a * test > ls test `repo.iter_commits` failed due to an ambigous argument (`'git rev-list test`). Now this cannot happen anymore. fixes #264
2015-02-20Apparently, git 1.7.9 supports git-files too, lets assume it's starting at 1.7.0Sebastian Thiel
2015-02-19Adjust minimum git version with git-file support.Sebastian Thiel
As I am pretty sure to have tested it with 1.7.0, I assume they added the git file feature somewhere between .0 .10. Fixes #252
2015-02-19Fix flake8 issue.Sebastian Thiel
It's new in the latest version of flake - thanks travis for letting me know.
2015-02-19Use uuid instead of tempfile.mkdtmp, which created an actual directory.Sebastian Thiel
That, over time, could have caused slow downs due to file-system hassle. Fixes #258
2015-01-22Overhauled all tutorials, and placed them in a unit-test.Sebastian Thiel
That way they are protected from regression. Fixes #239
2015-01-21Fixed regression in test-suite for IndexFileSebastian Thiel
Previously, it checked for AssertionErrors, now we have to implement need-unbare-repo check ourselves.
2015-01-21Added advance usage examples to tutorial and made minor fixes.Sebastian Thiel
GIT_PYTHON_TRACE would actually fail (now) if we debugged archive operations. Related to #239
2015-01-21Initial set of documentation improvements, and a fix to the submodule tests.Sebastian Thiel
Now travisci tests should work once again. Related to #239
2015-01-21Assured that branch changes are properly handled.Sebastian Thiel
Previously we could try to remove the branch we are on. Of course, we have a test-case elaborate enough to verify we don't destroy changes in submodules accidentally. Therefore I am confident that this implementation is correct. Fixes #49
2015-01-20Fixed flake8 and a minor test regression.Sebastian Thiel
The latter happened as now BadName is thrown, instead of BadObject. Changes.rst was marked accordingly
2015-01-20Impemented keep_going flag for `Submodule.update()`Sebastian Thiel
Fixes #50
2015-01-20Submodule.parent_commit() now automatically points to repo.head unless it ↵Sebastian Thiel
was set before. That way, you don't always have to keep the parent commit uptodate when changing the repo, which can lead to errors which are hard to debug and make no sense to the user, who previously never set parent_commit (yet it matters thanks to the cache).
2015-01-20Greatly improved possible safety of Submodule.update(), which is used by ↵Sebastian Thiel
default. Previously, the implementation would gladly reset new commits in submodules, and/or reset a dirty working tree. Now the new force_reset/force flag has to be specified explicitly to get back to the old behaviour. All submodule tests except for one are working.
2015-01-19Submodule.move() will auto-rename the submodule if the name was equal to the ↵Sebastian Thiel
path Fixes #238
2015-01-19Implemented Submodule.rename()Sebastian Thiel
A test verifies it's truly working. Related to #238
2015-01-19Submodule.move() fixed to deal with 'non-gitfile' clones appropriately.Sebastian Thiel
Improved a test to assure multiple update(init=False|True) calls don't throw. Fixes #93
2015-01-19Basic submodule tests are working once again !Sebastian Thiel
After all, it was easier than expected. It seems that previous assertions the test made should have never been true to begin with. Thus we might have improved the test thanks to our improved implementation. Fixes #233
2015-01-17Submodule.remove() now seems to work properly, nearly all tests are back.Sebastian Thiel
This also means that now we seem to be able to properly handle .git files in submodules Related to #233
2015-01-17Made sure dry-run is properly implemented in Submodule.remove()Sebastian Thiel
The root-submodule test is still failing though, this time even earlier than before
2015-01-17Submodule.remove() now deals with .git files correctly.Sebastian Thiel
A simple test verifies this at least.
2015-01-17Assured Submodule.(update|move) are dealing with .git files appropriately.Sebastian Thiel
However, a simple test-case still fails for reasons not yet understood. There is more to be fixed here - .remove() still fails.
2015-01-16Implemented more tests and made use of .git files when adding submodulesSebastian Thiel
There is some more work to do, as renames and updates still have to be adjusted accordinlgy. Relates #233
2015-01-15Fixed previously failing testSebastian Thiel
It actually revealed a bug in the implementation of Submodule.add, which just showed in python 3 for the wrong reasons. Thankfully, failing tests after all allowed to get this issue fixed ... .
2015-01-15Submodule.add() can now handle absolute module paths in agreement to the doc ↵Sebastian Thiel
string. Previously, it would say it can handle absolute module paths, but didn't actually do so. A test-case was improved to check for this case. Fixes #161
2015-01-15For some reason, the new submodule test still broke on py3Sebastian Thiel
Adjusted code to not check for .gitmodules existence anymore, we will deal with it. Fixes #117
2015-01-15Added the first submodule will no longer cause an IOError.Sebastian Thiel
This is verified by the respective test. Fixes #117
2015-01-09Added test to verify binary diffs are working as well.Sebastian Thiel
Related to #74
2015-01-07suppression des prefixes de commitfirm1
2015-01-06Make flake8 happySebastian Thiel
2015-01-06test_tree worksSebastian Thiel
2015-01-06test_submodule worksSebastian Thiel
2015-01-06test_repo worksSebastian Thiel
2015-01-06test_refs worksSebastian Thiel
2015-01-05test_fun worksSebastian Thiel
2015-01-05test_commit works once againSebastian Thiel
2015-01-05Fixes test_blob and improved commit writing/readingSebastian Thiel
2015-01-05Added test of #147 to verify it works.Sebastian Thiel
Applied a few more fixes to commit implementation, possibly not the last
2015-01-05Intermediate commit: test_config and test_actor worksSebastian Thiel
Kind of tackling the tasks step by step, picking low-hanging fruit first, or the ones that everyone depends on