SVK::Editor::Diff(3)

πŸ“¦
version 2.2.3 Β· 2 versions
, in fedora 43

✨ 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 callback sub { ... } 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's cb_llabel or llabel, pick one bestie)
  • cb_rlabel β€” same deal but for the right side, a sub { ... } callback 😌
  • rlabel β€” or literally just pass the string 'revision <left>' and be done with it πŸ“ (again, cb_rlabel or rlabel, not both)
  • oldtarget β€” the old target, pass $target πŸ‘‘
  • oldroot β€” the old root, pass $root 🌈
not me pointing out that the rlabel example 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