SVK::Editor::Diff(3)
β¨ NAME β¨
SVK::Editor::Diff β bestie, it's literally an editor for producing textual diffs π no cap, that's the whole job description
πΈ SYNOPSIS πΈ
okay so here's how you summon her π
$editor = SVK::Editor::Diff->new
( base_root => $root,
base_target => $target,
cb_llabel => sub { ... },
# or llabel => 'revision <left>',
cb_rlabel => sub { ... },
# or rlabel => 'revision <left>',
oldtarget => $target, oldroot => $root,
);
$xd->depot_delta ( editor => $editor, ... );
π DESCRIPTION π
so basically π₯° you build a fresh editor object with SVK::Editor::Diff->new and hand it the keys below, then you pass that whole queen into $xd->depot_delta as the editor (the ... means she takes her other args too, iykyk). she does the diff thing. iconic behavior, fr fr β¨
π OPTIONS π
the constructor takes these, every single one, no skipping π«Ά
base_rootβ the root you're diffing from base-wise, pass$rootπbase_targetβ and the target that goes with it, pass$targetπΈcb_llabelβ a callbacksub { ... }that hands you the left label, if you wanna compute it yourself β¨llabelβ the other way to do it: just hand her a string, like'revision <left>'π (it'scb_llabelorllabel, pick one bestie)cb_rlabelβ same deal but for the right side, asub { ... }callback πrlabelβ or literally just pass the string'revision <left>'and be done with it π (again,cb_rlabelorrlabel, not both)oldtargetβ the old target, pass$targetπoldrootβ the old root, pass$rootπ
not me pointing out that therlabelexample string in the original is also'revision <left>'β I'm just telling you what it says, don't come for me π
mwah, that's the whole page, go forth and diff π
this lil manual moment was brought to you by perl v5.42.0, dated 2025-07-25, and it lives under the name SVK::Editor::Diff(3) πβ¨ slay, bye bestie π¦
π¦ where this page comes from
- fedora 43: perl-SVK 2.2.3-45.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms