1 | <?php |
||
16 | class CommitMessageBuilder |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * Working copy conflict tracker. |
||
21 | * |
||
22 | * @var WorkingCopyConflictTracker |
||
23 | */ |
||
24 | protected $workingCopyConflictTracker; |
||
25 | |||
26 | /** |
||
27 | * Creates commit message builder instance. |
||
28 | * |
||
29 | * @param WorkingCopyConflictTracker $working_copy_conflict_tracker Working copy conflict tracker. |
||
30 | */ |
||
31 | 6 | public function __construct(WorkingCopyConflictTracker $working_copy_conflict_tracker) |
|
35 | |||
36 | /** |
||
37 | * Builds a commit message. |
||
38 | * |
||
39 | * @param string $wc_path Working copy path. |
||
40 | * @param AbstractMergeTemplate $merge_template Merge template. |
||
41 | * @param string|null $changelist Changelist. |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | 5 | public function build($wc_path, AbstractMergeTemplate $merge_template, $changelist = null) |
|
58 | |||
59 | /** |
||
60 | * Returns commit message fragment for recent conflicts. |
||
61 | * |
||
62 | * @param string $wc_path Working copy path. |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | 5 | protected function getFragmentForRecentConflicts($wc_path) |
|
83 | |||
84 | } |
||
85 |