File tree 7 files changed +61
-23
lines changed
7 files changed +61
-23
lines changed Original file line number Diff line number Diff line change
1
+ 0.28.0 (UNRELEASED)
2
+ -------------------------
3
+
4
+ - Upgrade to libgit2 0.28
5
+
6
+ - Add fat wheels for Linux
7
+ `#793 <https://github.com/libgit2/pygit2/issues/793 >`_
8
+ `#869 <https://github.com/libgit2/pygit2/pull/869 >`_
9
+ `#874 <https://github.com/libgit2/pygit2/pull/874 >`_
10
+ `#875 <https://github.com/libgit2/pygit2/pull/875 >`_
11
+ `#883 <https://github.com/libgit2/pygit2/pull/883 >`_
12
+
13
+ - New `pygit2.Mailmap `, see documentation
14
+ `#804 <https://github.com/libgit2/pygit2/pull/804 >`_
15
+
16
+ - New `Repository.apply(...) ` wraps `git_apply(..) `
17
+ `#841 <https://github.com/libgit2/pygit2/issues/841 >`_
18
+ `#843 <https://github.com/libgit2/pygit2/pull/843 >`_
19
+
20
+ - Tests improvements
21
+ `#873 <https://github.com/libgit2/pygit2/pull/873 >`_
22
+
23
+ Breaking changes:
24
+
25
+ - Now `worktree.path ` returns the path to the worktree directory, not to the
26
+ `.git ` file within. To get the path to the `.git ` file just append `.git `
27
+ `#803 <https://github.com/libgit2/pygit2/issues/803 >`_
28
+
29
+
1
30
0.27.4 (2019-01-19)
2
31
-------------------------
3
32
Original file line number Diff line number Diff line change @@ -35,19 +35,21 @@ Usage guide:
35
35
repository
36
36
oid
37
37
objects
38
- references
39
- revparse
40
- log
41
- working-copy
38
+
39
+ backends
40
+ blame
41
+ config
42
42
diff
43
+ features
44
+ log
45
+ mailmap
43
46
merge
44
- config
47
+ references
45
48
remotes
46
- submodule
47
- blame
49
+ revparse
48
50
settings
49
- features
50
- backends
51
+ submodule
52
+ working-copy
51
53
52
54
53
55
Indices and tables
Original file line number Diff line number Diff line change
1
+ **********************************************************************
2
+ Mailmap
3
+ **********************************************************************
4
+
5
+ .. autoclass :: pygit2.Mailmap
6
+ :members:
Original file line number Diff line number Diff line change @@ -65,15 +65,17 @@ Below there are some general attributes and methods:
65
65
.. autoattribute :: pygit2.Repository.is_bare
66
66
.. autoattribute :: pygit2.Repository.is_empty
67
67
.. autoattribute :: pygit2.Repository.default_signature
68
- .. automethod :: pygit2.Repository.read
69
- .. automethod :: pygit2.Repository.write
68
+
69
+ .. automethod :: pygit2.Repository.apply
70
70
.. automethod :: pygit2.Repository.ahead_behind
71
- .. automethod :: pygit2.Repository.descendant_of
72
71
.. automethod :: pygit2.Repository.create_reference
72
+ .. automethod :: pygit2.Repository.descendant_of
73
73
.. automethod :: pygit2.Repository.describe
74
+ .. automethod :: pygit2.Repository.free
74
75
.. automethod :: pygit2.Repository.path_is_ignored
76
+ .. automethod :: pygit2.Repository.read
75
77
.. automethod :: pygit2.Repository.reset
76
78
.. automethod :: pygit2.Repository.revert_commit
77
79
.. automethod :: pygit2.Repository.state_cleanup
80
+ .. automethod :: pygit2.Repository.write
78
81
.. automethod :: pygit2.Repository.write_archive
79
- .. automethod :: pygit2.Repository.free
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ PyDoc_STRVAR(Reference_type__doc__,
342
342
PyObject *
343
343
Reference_type__get__ (Reference * self )
344
344
{
345
- git_ref_t c_type ;
345
+ git_reference_t c_type ;
346
346
347
347
CHECK_REFERENCE (self );
348
348
c_type = git_reference_type (self -> reference );
Original file line number Diff line number Diff line change @@ -39,15 +39,15 @@ PyDoc_STRVAR(Worktree_name__doc__,
39
39
PyObject *
40
40
Worktree_name__get__ (Worktree * self )
41
41
{
42
- return to_unicode (self -> worktree -> name , NULL , NULL );
42
+ return to_unicode (git_worktree_name ( self -> worktree ) , NULL , NULL );
43
43
}
44
44
45
45
PyDoc_STRVAR (Worktree_path__doc__ ,
46
46
"Gets path worktree\n" );
47
47
PyObject *
48
48
Worktree_path__get__ (Worktree * self )
49
49
{
50
- return to_unicode (self -> worktree -> gitlink_path , NULL , NULL );
50
+ return to_unicode (git_worktree_path ( self -> worktree ) , NULL , NULL );
51
51
}
52
52
53
53
PyDoc_STRVAR (Worktree_git_path__doc__ ,
Original file line number Diff line number Diff line change @@ -687,21 +687,20 @@ def test_worktree(self):
687
687
os .rmdir (worktree_dir )
688
688
689
689
def _check_worktree (worktree ):
690
- path = os .path .realpath (
691
- os .path .join (worktree_dir , '.git' ))
692
- git_path = os .path .realpath (
693
- os .path .join (self .repo .path , 'worktrees' , worktree_name ))
694
-
695
690
# Confirm the name attribute matches the specified name
696
691
assert worktree .name == worktree_name
697
692
# Confirm the path attribute points to the correct path
698
- assert os .path .realpath (worktree .path ) == path
693
+ assert os .path .realpath (worktree .path ) == worktree_dir
699
694
# The "gitdir" in a worktree should be a file with a reference to
700
695
# the actual gitdir. Let's make sure that the path exists and is a
701
696
# file.
702
- assert os .path .isfile (path )
697
+ assert os .path .isfile (os .path .join (worktree_dir , '.git' ))
698
+
703
699
# Confirm the git_path attribute points to the correct path
700
+ git_path = os .path .realpath (
701
+ os .path .join (self .repo .path , 'worktrees' , worktree_name ))
704
702
assert os .path .realpath (worktree .git_path ) == git_path
703
+
705
704
# Confirm the worktree directory in the main checkout's gitdir
706
705
# actually exists
707
706
assert os .path .isdir (git_path )
You can’t perform that action at this time.
0 commit comments