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

13
LINES

< > BotCompany Repo | #1032816 // printDiffsBetweenLastSnippetVersions

JavaX fragment (include)

1  
svoid printDiffsBetweenLastSnippetVersions(S snippetID, int maxVersions default 10) {
2  
  L<SnippetVersion> l = textChangesOfSnippet(snippetID, maxVersions);
3  
  S text = loadSnippet(snippetID);
4  
  clearConsole();
5  
  print();
6  
  print("Analyzing " + snippetID);
7  
  print();
8  
  for (SnippetVersion v : takeFirst(maxVersions, l)) {
9  
    printAsciiHeading(snippetID + " text changed " + v.date);
10  
    print(unidiff(v.previousValue, text));
11  
    text = v.previousValue;
12  
  }
13  
}

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: 61 / 76
Referenced in: [show references]