| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
| |
It's possible to specify a pathspec (eg :!foo) to git diff/status/...
but it currently fails with:
git.exc.GitCommandError: Cmd('/usr/bin/git') failed due to: exit code(128)
cmdline: /usr/bin/git diff --abbrev=40 --full-index --raw :!foo
stderr: 'fatal: ambiguous argument ':!foo': unknown revision or path not in the working tree.
Add missing '--' to the arguments to fix this ambiguity
Signed-off-by: Arnaud Patard <apatard@hupstream.com>
|
|
|
|
|
|
|
| |
This is necessary when working with conditional include
sections as it requires the git directory or active branch name.
https://git-scm.com/docs/git-config#_conditional_includes
|
|
|
|
| |
as errors.
|
| |
|
|
|
|
| |
Signed-off-by: Chenxiong Qi <qcxhome@gmail.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
Revert "use git rev-parse to look for config file"
This reverts commit 0b6b90f9f1e5310a6f39b75e17a04c1133269e8f.
Fix #906
Reopen #719
|
|
|
| |
`mutli_options` -> `multi_options`
|
|
|
|
| |
This reverts commit 913d806f02cf50250d230f88b897350581f80f6b.
|
| |
|
|
|
|
| |
This reverts commit dac619e4917b0ad43d836a534633d68a871aecca.
|
|
|
|
| |
Fixes #312
|
|
|
|
|
|
| |
This reverts commit 74a0507f4eb468b842d1f644f0e43196cda290a1.
https://travis-ci.org/gitpython-developers/GitPython/jobs/561334516#L634
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| | |
into xarx00-PR-non-ascii-filenames
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
|
| |
Edited-by: Florian Scherf <f.scherf@pengutronix.de>
added the remaining feedback in
https://github.com/gitpython-developers/GitPython/pull/801/files
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Among other things, remotes are now correctly identified when in a
separate worktree.
|
| |
|
|
|
| |
Fix small typo and slightly reword docstring.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
I did keep some "bare" except with catch all Exception: , while tried to disable
flake8 complaints where clearly all exceptions are to be catched
|
|\
| |
| | |
Fix broken progress in clone_from()
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Only gc.collect() under windows
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
| |
case eg pathlib.Path is passed
|
| |
|
|\
| |
| | |
worktrees: make non-packed refs also work correctly.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|