[Feature] Show more information like file/section/line/char changes when checking a commit #10560

Open
opened 2025-11-02 09:11:18 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @TimerWolf on GitHub (Mar 30, 2023).

Feature Description

Would it not be nice if it would be more stats when you look at a commit (ac64c82974) ?

Now you only see (same as GitHub), would it not be fun to have more details stats about the commit?

\textcolor{black}{\textsf{ 4 changed files \(100\\%\)}}

\textcolor{black}{\textsf{sections:}} \textcolor{green}{\textsf{38 additions (+153,33\\%\)}} \textcolor{black}{\textsf{and}} \textcolor{red}{\textsf{15 deletions (-39,47\\%\)}}

\textcolor{black}{\textsf{lines:}} \textcolor{green}{\textsf{29 additions (+107,14\\%\)}} \textcolor{black}{\textsf{and}} \textcolor{red}{\textsf{14 deletions (-48,28\\%\)}}

\textcolor{black}{\textsf{chars:}} \textcolor{green}{\textsf{996 additions (+100,60\\%\)}} \textcolor{black}{\textsf{and}} \textcolor{red}{\textsf{497 deletions (-49,90\\%\)}}

This is just a concept, it can be changed maybe better i do not know i just try to start the topic about more information.

Screenshots

No response

Originally created by @TimerWolf on GitHub (Mar 30, 2023). ### Feature Description Would it not be nice if it would be more stats when you look at a commit (ac64c8297444ade63a2a364c4afb7e6c1de5a75f) ? Now you only see (same as GitHub), would it not be fun to have more details stats about the commit? #### $\textcolor{black}{\textsf{ 4 changed files \(100\\%\)}}$ #### $\textcolor{black}{\textsf{sections:}}$ $\textcolor{green}{\textsf{38 additions (+153,33\\%\)}}$ $\textcolor{black}{\textsf{and}}$ $\textcolor{red}{\textsf{15 deletions (-39,47\\%\)}}$ #### $\textcolor{black}{\textsf{lines:}}$ $\textcolor{green}{\textsf{29 additions (+107,14\\%\)}}$ $\textcolor{black}{\textsf{and}}$ $\textcolor{red}{\textsf{14 deletions (-48,28\\%\)}}$ #### $\textcolor{black}{\textsf{chars:}}$ $\textcolor{green}{\textsf{996 additions (+100,60\\%\)}}$ $\textcolor{black}{\textsf{and}}$ $\textcolor{red}{\textsf{497 deletions (-49,90\\%\)}}$ This is just a concept, it can be changed maybe better i do not know i just try to start the topic about more information. ### Screenshots _No response_
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 09:11:18 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Mar 31, 2023):

The "lines" is useful for evaluating how many changes in the commit, whether it makes the code base more complex or more simple. It has provided enough information.

How would other information like "sections" or "chars" help more?

@wxiaoguang commented on GitHub (Mar 31, 2023): The "lines" is useful for evaluating how many changes in the commit, whether it makes the code base more complex or more simple. It has provided enough information. How would other information like "sections" or "chars" help more?
Author
Owner

@TimerWolf commented on GitHub (Mar 31, 2023):

I was thinking that it always fun to see if the code as increased or decreased.....

The only way to show this would be to count the chars, as "new lines / whitespace" etc actually not necessarily tells this.

The whole meaning of this was to get a more detailed and accurate report about what the commit means for the current source.

@TimerWolf commented on GitHub (Mar 31, 2023): I was thinking that it always fun to see if the code as increased or decreased..... The only way to show this would be to count the chars, as "new lines / whitespace" etc actually not necessarily tells this. The whole meaning of this was to get a more detailed and accurate report about what the commit means for the current source.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10560