File tree 1 file changed +19
-0
lines changed 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,25 @@ _Notes on the upcoming release will be added here_
24
24
25
25
<!-- Maintainers, insert migration notes for the next release here -->
26
26
27
+ #### Git version handling API changes (#491 )
28
+
29
+ - ` Git.version() ` now returns a ` Version ` object instead of a string
30
+
31
+ Before:
32
+ ``` python
33
+ git = Git(path = path)
34
+ version_str = git.version() # returns a string like "2.43.0"
35
+ ```
36
+
37
+ After:
38
+ ``` python
39
+ git = Git(path = path)
40
+ version_obj = git.version() # returns a Version object
41
+ version_str = " ." .join([str (x) for x in (version_obj.major, version_obj.minor, version_obj.micro)])
42
+ ```
43
+
44
+ - ` GitSync.get_git_version() ` continues to return a string for backward compatibility
45
+
27
46
#### pytest fixtures: ` git_local_clone ` renamed to ` example_git_repo ` (#468 )
28
47
29
48
- pytest: ` git_local_clone ` renamed to ` example_git_repo `
You can’t perform that action at this time.
0 commit comments