xaizek / zograscope (License: AGPLv3 only) (since 2018-12-07)
Mainly a syntax-aware diff that also provides a number of additional tools.
Commit d4fc04ca1916dc7be6bd0631e8d92bf33d085782

Align output of zs-stats a bit better
Turns

* blank: 366 (17.6641%)
* comment: 38 (1.8340%)

into

* blank: 366 (17.6641%)
* comment: 38 ( 1.8340%)
Author: xaizek
Author date (UTC): 2019-06-09 17:45
Committer name: xaizek
Committer date (UTC): 2019-06-09 17:45
Parent(s): bf5546df2edae8dd372526762afdb19d3ef5ab99
Signing key: 99DC5E4DB05F6BE2
Tree: 7e21d3c22bf2e8df2c96b3510d80bdc6d68ec39f
File Lines added Lines deleted
tools/stats/stats.cpp 2 1
File tools/stats/stats.cpp changed (mode: 100644) (index b5ba8ca..5b2a186)
... ... operator<<(std::ostream &os, const Part &val)
89 89 float percent = (val.whole == 0 ? 1.0f : 1.0f*val.part/val.whole); float percent = (val.whole == 0 ? 1.0f : 1.0f*val.part/val.whole);
90 90 return os << '\t' << std::setfill(' ') << std::setw(countWidth(val.whole)) return os << '\t' << std::setfill(' ') << std::setw(countWidth(val.whole))
91 91 << val.part << " (" << val.part << " ("
92 << std::fixed << std::setprecision(4) << percent*100.0f
92 << std::fixed << std::setw(7) << std::setprecision(4)
93 << percent*100.0f
93 94 << "%)"; << "%)";
94 95 } }
95 96
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/zograscope

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/zograscope

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master