Commit 00ce31a
committed
Objects: Constructor now manually checks and sets the input arguments to the local cache - previously a procedural approach was used, which was less code, but slower too. Especially in case of CommitObjects unrolling the loop manually makes a difference.
Submodule: Implemented query methods and did a bit of testing. More is to come, but the test works for now. As special addition, the submodule implementation uses the section name as submodule ID even though it seems to be just the path. This allows to make renames easier1 parent 4d36f8f commit 00ce31a
File tree
5 files changed
+297
-52
lines changed- lib/git/objects
- test/git
5 files changed
+297
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 65 | | |
77 | 66 | | |
78 | 67 | | |
| |||
140 | 129 | | |
141 | 130 | | |
142 | 131 | | |
143 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
144 | 136 | | |
145 | 137 | | |
146 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
112 | 131 | | |
113 | 132 | | |
114 | 133 | | |
| |||
434 | 453 | | |
435 | 454 | | |
436 | 455 | | |
437 | | - | |
| 456 | + | |
438 | 457 | | |
439 | 458 | | |
440 | 459 | | |
| |||
443 | 462 | | |
444 | 463 | | |
445 | 464 | | |
446 | | - | |
| 465 | + | |
447 | 466 | | |
448 | 467 | | |
449 | 468 | | |
| |||
0 commit comments