aboutsummaryrefslogtreecommitdiff
path: root/git/repo
AgeCommit message (Collapse)Author
2019-09-30git: repo: base: update clone_from env argument descriptionpawel
2019-08-14Returning commit object instead of hash valueArthur Milchior
2019-08-14Snack case as requested in #903Arthur Milchior
2019-08-14Method stating which commit is being played during an halted rebaseArthur Milchior
This will be useful to me at least. This way, I know that I can tell my script to omit some specific commits. If you accept to merge it, I may also do similar method for merges and cherry pick.
2019-08-14Fix performance regression, see #906Sebastian Thiel
Revert "use git rev-parse to look for config file" This reverts commit 0b6b90f9f1e5310a6f39b75e17a04c1133269e8f. Fix #906 Reopen #719
2019-08-11Fix typo in documentationLoïc Antoine Gombeaud
`mutli_options` -> `multi_options`
2019-08-11Drop python 2 support, again (revert previous revert)Sebastian Thiel
This reverts commit 913d806f02cf50250d230f88b897350581f80f6b.
2019-08-11use git rev-parse to look for config fileBenjamin Dauvergne
2019-07-29Revert "Drop python 2.7 support and help with encodings"Sebastian Thiel
This reverts commit dac619e4917b0ad43d836a534633d68a871aecca.
2019-07-20normalize path after joining submodule path and the relative path to the git ↵Joe Savage
dir, to eliminate path length errors on Windows
2019-07-20Drop python 2.7 support and help with encodingsSebastian Thiel
Fixes #312
2019-07-20Revert "This time, use test-requirements."Sebastian Thiel
This reverts commit 74a0507f4eb468b842d1f644f0e43196cda290a1. https://travis-ci.org/gitpython-developers/GitPython/jobs/561334516#L634
2019-07-20This time, use test-requirements.Sebastian Thiel
2019-07-20Revert "Merge branch 'PR-non-ascii-filenames' of ↵Sebastian Thiel
https://github.com/xarx00/GitPython into xarx00-PR-non-ascii-filenames" This reverts commit 3b13c115994461fb6bafe5dd06490aae020568c1, reversing changes made to da8aeec539da461b2961ca72049df84bf30473e1. It doesn't pass, unfortunately. Is it a travis issue? https://travis-ci.org/gitpython-developers/GitPython/jobs/561333763#L340
2019-07-20Merge branch 'PR-non-ascii-filenames' of https://github.com/xarx00/GitPython ↵Sebastian Thiel
into xarx00-PR-non-ascii-filenames
2019-07-06Add support to pass clone options that can be repeated multiple timesSteven Whitman
2019-06-17Fix typo in docstringAurelio Jargas
2019-04-06builtins module is part of the future packagexarx00
2019-04-06Fix for: No module named builtins (CI tests error)xarx00
2019-04-05added support for non-ascii directories and file namesxarx00
2019-03-15Added usage example to Repo __init__.py call for Windows usersAlex
2018-12-22read workdir from git.config as referenced in man 1 git-configBjörn Lässig
Edited-by: Florian Scherf <f.scherf@pengutronix.de> added the remaining feedback in https://github.com/gitpython-developers/GitPython/pull/801/files
2018-10-21The proper way is return, not raise StopIterationMichael Käufl
See PEP 479[1] which is part of Python 3.7[2]. [1]: https://www.python.org/dev/peps/pep-0479/ [2]: https://docs.python.org/3/whatsnew/3.7.html#changes-in-python-behavior
2018-10-13Respect _common_dir when finding repository config fileLuc Ritchie
Among other things, remotes are now correctly identified when in a separate worktree.
2018-07-15Allow pathlib.Path in Repo.__init__oldPadavan
2018-07-15Fix small typoRiley Martine
Fix small typo and slightly reword docstring.
2018-03-18Rewrite unnecessary dict/list/tuple calls as literalsHugo
2018-03-04Fix doc typossamuela
2017-12-11Remove redundant Python 2.4 codeHugo
2017-11-27RF: primarily flake8 lints + minor RF to reduce duplication in PATHEXTYaroslav Halchenko
I did keep some "bare" except with catch all Exception: , while tried to disable flake8 complaints where clearly all exceptions are to be catched
2017-11-19Merge pull request #692 from Dreamsorcerer/patch-1Sebastian Thiel
Fix broken progress in clone_from()
2017-11-02Merge pull request #686 from jeblair/issue-605Sebastian Thiel
Only gc.collect() under windows
2017-10-30Update base.pySam Bull
2017-10-30Update base.pySam Bull
2017-10-09Only gc.collect() under windowsJames E. Blair
Under Windows, tempfile objects are holding references to open files until the garbage collector closes them and frees them. Explicit calls to gc.collect() were added to the finalizer for the Repo class to force them to be closed synchronously. However, this is expensive, especially in large, long-running programs. As a temporary measure to alleviate the performance regression on other platforms, only perform these calls when running under Windows. Fixes #553
2017-10-07Converting path in clone and clone_from to str before any other operation in ↵Mikuláš Poul
case eg pathlib.Path is passed
2017-09-30Keeping env values passed to `clone_from`Piotr Babij
2017-09-28Merge pull request #654 from vathpela/worktreesSebastian Thiel
worktrees: make non-packed refs also work correctly.
2017-09-28Merge branch 'master' of https://github.com/Plazmaz/GitPython into ↵Sebastian Thiel
Plazmaz-master
2017-08-25util: move expand_path from repo/base and use it in Git class initAlexis Horgix Chotard
2017-08-24Fixed missing parameter and changed nameDylan Katz
2017-08-22worktrees: make non-packed refs also work correctly.Peter Jones
Turns out aec58a9 did the right thing for /packed/ refs, but didn't work correctly on /unpacked/ refs. So this patch gives unpacked refs the same treatment. Without the fix here, the test added will cause this traceback: ====================================================================== ERROR: Check that we find .git as a worktree file and find the worktree ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/pjones/devel/github.com/GitPython/git/test/lib/helper.py", line 92, in wrapper return func(self, path) File "/home/pjones/devel/github.com/GitPython/git/test/test_repo.py", line 938, in test_git_work_tree_dotgit self.assertIsInstance(repo.heads['aaaaaaaa'], Head) File "/home/pjones/devel/github.com/GitPython/git/util.py", line 893, in __getitem__ raise IndexError("No item found with id %r" % (self._prefix + index)) IndexError: No item found with id 'aaaaaaaa' Woops. Things I've learned: - test_remote doesn't work currently if you start on a branch. I think it never did? - Because of 346424da, all *sorts* of stuff in the test suite doesn't work if you name your development branch "packed-refs" (This seems like a bug...) Signed-off-by: Peter Jones <pjones@redhat.com>
2017-08-21Fix leaking environment variablesDylan Katz
2017-07-01Repo: handle worktrees betterPeter Jones
This makes Repo("foo") work when foo/.git is a file of the form created by "git worktree add", i.e. it's a text file that says: gitdir: /home/me/project/.git/worktrees/bar and where /home/me/project/.git/ is the nominal gitdir, but /home/me/project/.git/worktrees/bar has this worktree's HEAD etc and a "gitdir" file that contains the path of foo/.git . Signed-off-by: Peter Jones <pjones@redhat.com>
2017-04-09Handle non-deterministic __del__ in RepoSebastian Thiel
Fixes #610
2017-04-04so minor that wasn't even worth my time typing this commentYaroslav Halchenko
2017-03-09Spelling fixesVille Skyttä
2017-03-07Document the use of next to throw an exception when hitting EOFGeorge Hickman
2017-03-07Ignore all lines of subsequent hunks until last one is foundGeorge Hickman
Git version 2.11.1+ introduced extra lines into the subsequent hunk sections for incremental blame output. The documentation notes that parsers of this output should ignore all lines between the start and end for robust parsing.
2017-02-25Merge branch 'git_work_tree' of https://github.com/tbhartman/GitPython into ↵Sebastian Thiel
tbhartman-git_work_tree