rtfpessoa / diff2html

Pretty diff to html javascript library (diff2html)
https://diff2html.xyz
MIT License
2.79k stars 272 forks source link

Is it possible to generate single html report for multiple git repos? #490

Closed vsapronov closed 11 months ago

vsapronov commented 1 year ago

I'm wondering if there is any way to use diff2html for generating a single file report for multiple git repo?

Here's what I mean:

Input: the folder with multiple repos cloned:

/ my-projects
  / repo1
  / repo2
  / repo3

Command: diff2html in my-projects working directory.

Output: The single html file showing diffs for all 3 repos. Reports should be grouped per repository.

rtfpessoa commented 11 months ago

👋 diff2html is a unified diff parsing and html generator tool, meaning that it works with basically the diffs without any extra concerns.

If you generate a diff for all those and pass it here it should be fine.

You could do that for example with git diff --no-index <path-to-dir>/my-projects | diff2html -i stdin