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

22
LINES

< > BotCompany Repo | #1012251 // Show diffs between all versions of a snippet (OK)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (14648L/94K).

1  
!7
2  
3  
static int maxVersions = 100;
4  
5  
p-tt {
6  
  botWithInput(#1012244);
7  
}
8  
9  
answer {
10  
  S snippetID = fsI(trim(s));
11  
  L<SnippetVersion> l = textChangesOfSnippet(snippetID, maxVersions);
12  
  S text = loadSnippet(snippetID);
13  
  clearConsole();
14  
  print();
15  
  print("Analyzing " + snippetID);
16  
  print();
17  
  for (SnippetVersion v : takeFirst(maxVersions, l)) {
18  
    printAsciiHeading(snippetID + " text changed " + v.date);
19  
    print(unidiff(v.previousValue, text));
20  
    text = v.previousValue;
21  
  }
22  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, omdjrrnzbjjv, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1012251
Snippet name: Show diffs between all versions of a snippet (OK)
Eternal ID of this version: #1012251/14
Text MD5: ed781244b7944c7d3c19ab2e89f98786
Transpilation MD5: d203eef16a30a52f32505fc6523fe89b
Author: stefan
Category: javax / snippets
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-14 04:04:00
Source code size: 504 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 642 / 1632
Version history: 13 change(s)
Referenced in: [show references]