summaryrefslogtreecommitdiff
path: root/git/refs/symbolic.py
Commit message (Collapse)AuthorAgeFilesLines
* Minor type fixesYobmod2021-08-021-3/+4
|
* Add __future__.annotations to repo/base.pyYobmod2021-08-021-4/+8
|
* replace some TBDs wiht runtime typesYobmod2021-07-311-2/+2
|
* Add final final types to symbolic.pyYobmod2021-07-311-6/+8
|
* Add final types to symbolic.pyYobmod2021-07-311-5/+5
|
* Add type to symbolicreference.references()Yobmod2021-07-311-11/+3
|
* Add type to symbolicreference.reference()Yobmod2021-07-311-3/+11
|
* Add type to symbolicreference.set_object()Yobmod2021-07-311-6/+8
|
* Add type to symbolicreference.set_reference()Yobmod2021-07-311-4/+5
|
* Add type to symbolicreference.is_valid()Yobmod2021-07-311-4/+4
|
* Add type to symbolicreference.log_append()Yobmod2021-07-311-6/+15
|
* Add type to symbolicreference.delete()Yobmod2021-07-311-5/+5
|
* Add type to symbolicreference._create()Yobmod2021-07-311-2/+4
|
* Add type to symbolicreference.is_remote()Yobmod2021-07-311-4/+5
|
* Add type to symbolicreference.get_()Yobmod2021-07-311-7/+6
|
* Add type to symbolicreference()Yobmod2021-07-311-6/+7
|
* Add type to symbolicreference.dereference_recursive()Yobmod2021-07-311-2/+2
|
* Add type to symbolicreference.dereference_recursive()Yobmod2021-07-311-1/+1
|
* Add type to symbolicreference._get_packed_refs_path()Yobmod2021-07-311-11/+11
|
* Add type to symbolicreference._get_ref_info()Yobmod2021-07-311-11/+11
|
* Add type to symbolicreference.__repr__()Yobmod2021-07-311-6/+6
|
* Add type to symbolicreference.rename()Yobmod2021-07-311-6/+7
|
* Add type to symbolicreference.iter_items()Yobmod2021-07-311-2/+2
|
* Add type to symbolicreference.name()Yobmod2021-07-311-80/+54
|
* Fix more missing types in Symbolic.py, cos GuthubActions pytest stuckYobmod2021-07-281-18/+29
|
* Fix more missing types in Symbolic.py, cos GuthubActions pytest stuckYobmod2021-07-281-16/+25
|
* Fix more missing types in Symbolic.pyYobmod2021-07-281-3/+3
|
* Fix more missing types in Symbolic.pyYobmod2021-07-281-9/+13
|
* Fix forwardrefYobmod2021-07-281-1/+1
|
* Fix some SymbolicReference typesYobmod2021-07-281-41/+39
|
* Fix SymbolicReference reference typingYobmod2021-07-281-2/+4
|
* Replace all Typeguard with cast, revert update to typing-extensions==3.10.0Yobmod2021-07-241-1/+1
|
* rmv redundant IOerror exceptYobmod2021-07-191-658/+0
|
* Add types to refs/symbolic.pyYobmod2021-07-191-0/+674
|
* Improve typing of config_levels, add assert_never()Yobmod2021-07-051-1/+2
|
* Type Traversable.traverse() better, start types of submoduleYobmod2021-06-301-2/+2
|
* second pass of adding typesyobmod2021-05-031-1/+1
|
* add initial types to remote.pyyobmod2021-05-031-1/+1
|
* start add types to util.pyyobmod2021-02-281-1/+1
|
* Ensure only fully matching symrefs are deletedSimon Westphahl2020-08-121-2/+4
| | | | | | | | Deleting a symbolic ref with e.g. the name 'refs/remotes/origin/mas' would also delete 'refs/remotes/origin/master' if the ref had to be deleted from the pack file. In order to fix this the full ref is now checked for a match.
* Fix exception causes in 7 modulesRam Rachum2020-06-131-4/+4
|
* Fix flake8 errorsSebastian Thiel2020-05-281-1/+1
|
* Use UTF-8 encoding when getting information about a symbolic referenceHarmon2020-02-181-1/+1
| | | | Fixes #774
* Remove and replace compat.string_typesHarmon2020-02-081-5/+2
|
* renamed unused variablesPratik Anurag2019-10-151-1/+1
|
* Rewrite unnecessary dict/list/tuple calls as literalsHugo2018-03-181-1/+1
|
* recognize the new packed-ref header formatBrenda J. Butler2017-10-131-1/+9
| | | | | | | as long as line contains "peeled", accept it fixes the PackingType of packed-Refs not understood: # pack-refs with: peeled fully-peeled sorted problem
* worktrees: make non-packed refs also work correctly.Peter Jones2017-08-221-24/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Repo: handle worktrees betterPeter Jones2017-07-011-3/+24
| | | | | | | | | | | | | 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>
* fix(refs): don't assume linux path separatorSebastian Thiel2017-02-251-1/+1
| | | | | | Instead, work with os.sep. Fixes #586