Sorry for double posting, I
normally don't do it, but I want it to be clearly seen here
EDIT:I 've found the way they calculated it.
According to Jameson Lopp
[1], the command they used was:
git log --no-merges --after="2023-12-31" --before="2024-12-31" --stat | grep -Eo '[0-9]+ insertions|[0-9]+ deletions' | awk '{sum+=$1} END {print "Total lines changed:", sum}'
which, I just ran and gave me this response:
Total lines changed: 276826
Essentially what it does is:
1. it takes all the commits after 2023-12-31 and before 2024-12-31 (i.e. in 2024), with this
git log --no-merges --after="2023-12-31" --before="2024-12-31" --stat 2. the result for each log will have the commit message, the commit author, the description and details in this format:
2 files changed, 2 insertions(+), 2 deletions(-)3. it uses
grep -Eo '[0-9]+ insertions|[0-9]+ deletions' to get the details in this format: 45 deletions, 91 insertions etc.
4. it uses
awk '{sum+=$1} END {print "Total lines changed:", sum}' to aggregate all the numbers. For example: 45 + 91 = 136 lines.
I don't like this command, but it's Jameson Lopp who did it, so I can't say a lot. He 's more trustworthy than I am.
[1]
https://blog.lopp.net/bitcoin-2024-annual-review/Small silly knowledge of the day! I hope you enjoyed it as much as I did