Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1032816 // printDiffsBetweenLastSnippetVersions

JavaX fragment (include)

svoid printDiffsBetweenLastSnippetVersions(S snippetID, int maxVersions default 10) {
  L<SnippetVersion> l = textChangesOfSnippet(snippetID, maxVersions);
  S text = loadSnippet(snippetID);
  clearConsole();
  print();
  print("Analyzing " + snippetID);
  print();
  for (SnippetVersion v : takeFirst(maxVersions, l)) {
    printAsciiHeading(snippetID + " text changed " + v.date);
    print(unidiff(v.previousValue, text));
    text = v.previousValue;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032816
Snippet name: printDiffsBetweenLastSnippetVersions
Eternal ID of this version: #1032816/1
Text MD5: bf8936bc3ca4677058cb8077506dcd12
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-06 10:28:40
Source code size: 471 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 57 / 71
Referenced in: [show references]