commit: redesigned revlist and commit parsing, commits are always ret… · gitpython-developers/GitPython@ae5a69f · GitHub
Skip to content

Commit ae5a69f

Browse files
committed
commit: redesigned revlist and commit parsing, commits are always retrieved from their object information directly. This is faster, and resolves issues with the rev-list format and empty commit messages
Adjusted many tests to go with the changes, as they were still mocked. The mock was removed if necessary and replaced by code that actually executes
1 parent 4e1c89e commit ae5a69f

5 files changed

Lines changed: 217 additions & 265 deletions

File tree

lib/git/objects/commit.py

Lines changed: 40 additions & 58 deletions

test/fixtures/rev_list

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
1-
commit 4c8124ffcf4039d292442eeccabdeca5af5c5017
2-
tree 672eca9b7f9e09c22dcb128c283e8c3c8d7697a4
3-
parent 634396b2f541a9f2d58b00be1a07f0c358b999b3
4-
author Tom Preston-Werner <tom@mojombo.com> 1191999972 -0700
5-
committer Tom Preston-Werner <tom@mojombo.com> 1191999972 -0700
6-
7-
implement Grit#heads
8-
9-
commit 634396b2f541a9f2d58b00be1a07f0c358b999b3
10-
tree b35b4bf642d667fdd613eebcfe4e17efd420fb8a
11-
author Tom Preston-Werner <tom@mojombo.com> 1191997100 -0700
12-
committer Tom Preston-Werner <tom@mojombo.com> 1191997100 -0700
13-
14-
initial grit setup
15-
16-
commit ab25fd8483882c3bda8a458ad2965d2248654335
17-
tree c20b5ec543bde1e43a931449b196052c06ed8acc
18-
parent 6e64c55896aabb9a7d8e9f8f296f426d21a78c2c
19-
parent 7f874954efb9ba35210445be456c74e037ba6af2
20-
author Tom Preston-Werner <tom@mojombo.com> 1182645538 -0700
21-
committer Tom Preston-Werner <tom@mojombo.com> 1182645538 -0700
22-
23-
Merge branch 'site'
24-
Some other stuff
1+
4c8124ffcf4039d292442eeccabdeca5af5c5017
2+
634396b2f541a9f2d58b00be1a07f0c358b999b3
3+
ab25fd8483882c3bda8a458ad2965d2248654335

test/git/performance/test_commit.py

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)