Multiple-Line commit message #1258

Closed
opened 2025-11-02 03:54:26 -06:00 by GiteaMirror · 10 comments
Owner

Originally created by @sinnlosername on GitHub (Nov 20, 2017).

  • Gitea version (or commit ref): 1.3.0+rc1
  • Git version: 2.7.4
  • Operating system: Ubuntu 16.04
  • Database (use [x]):
    • MySQL
  • Can you reproduce the bug at https://try.gitea.io:
    • No: Didn't find a matching commit

Description

Only the first line of a commit message is shown.

Screenshots

How it looks in gitea:
Commit history -> https://i.imgur.com/oVDhmAP.png
Commit view -> https://i.imgur.com/lXAfOxV.png

The whole commit message (from a discord webhook):
https://i.imgur.com/9BeVaIS.png

Originally created by @sinnlosername on GitHub (Nov 20, 2017). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.3.0+rc1 - Git version: 2.7.4 - Operating system: Ubuntu 16.04 - Database (use `[x]`): - [x] MySQL - Can you reproduce the bug at https://try.gitea.io: - [x] No: Didn't find a matching commit ## Description Only the first line of a commit message is shown. ## Screenshots How it looks in gitea: Commit history -> https://i.imgur.com/oVDhmAP.png Commit view -> https://i.imgur.com/lXAfOxV.png The whole commit message (from a discord webhook): https://i.imgur.com/9BeVaIS.png
GiteaMirror added the type/enhancement label 2025-11-02 03:54:26 -06:00
Author
Owner

@makarchuk commented on GitHub (Nov 20, 2017):

What is expected behaviour here?
It would be really strange to show all lines of commit message, it can be really long

@makarchuk commented on GitHub (Nov 20, 2017): What is expected behaviour here? It would be really strange to show all lines of commit message, it can be really long
Author
Owner

@lafriks commented on GitHub (Nov 20, 2017):

I think full message should be shown only when viewing commit diff page

@lafriks commented on GitHub (Nov 20, 2017): I think full message should be shown only when viewing commit diff page
Author
Owner

@lafriks commented on GitHub (Nov 20, 2017):

And also collapsed by default and expandable when clicked on

@lafriks commented on GitHub (Nov 20, 2017): And also collapsed by default and expandable when clicked on
Author
Owner

@sinnlosername commented on GitHub (Nov 20, 2017):

You could also collaps it in the commit list, like github does.

@sinnlosername commented on GitHub (Nov 20, 2017): You could also collaps it in the commit list, like github does.
Author
Owner

@davydov-vyacheslav commented on GitHub (Nov 20, 2017):

@lafriks , maybe another way is to make tooltip with multiline information over singlelined current behavior. At least, this way affects UI changes less

@davydov-vyacheslav commented on GitHub (Nov 20, 2017): @lafriks , maybe another way is to make tooltip with multiline information over singlelined current behavior. At least, this way affects UI changes less
Author
Owner

@lafriks commented on GitHub (Nov 20, 2017):

@davydov-vyacheslav it's also an option. Only disadvantage of that is you can not copy text from it if you need it

@lafriks commented on GitHub (Nov 20, 2017): @davydov-vyacheslav it's also an option. Only disadvantage of that is you can not copy text from it if you need it
Author
Owner

@makarchuk commented on GitHub (Nov 20, 2017):

I implemented @davydov-vyacheslav's idea, you're welcome to take a look and criticize me if I did anything wrong.

@makarchuk commented on GitHub (Nov 20, 2017): I implemented @davydov-vyacheslav's idea, you're welcome to take a look and criticize me if I did anything wrong.
Author
Owner

@sinnlosername commented on GitHub (Nov 21, 2017):

I think something similar to github would be a good idea, because as @lafriks said, it's not possible to copy something. Also, it's not that good to read.

@sinnlosername commented on GitHub (Nov 21, 2017): I think something similar to github would be a good idea, because as @lafriks said, it's not possible to copy something. Also, it's not that good to read.
Author
Owner

@sondr3 commented on GitHub (Nov 28, 2017):

My pull request for this at #2980 is now complete (I hope), if anyone would like to test it I'd greatly appreciate it.

@sondr3 commented on GitHub (Nov 28, 2017): My pull request for this at #2980 is now complete (I hope), if anyone would like to test it I'd greatly appreciate it.
Author
Owner

@lunny commented on GitHub (Dec 12, 2017):

resolved by #2980

@lunny commented on GitHub (Dec 12, 2017): resolved by #2980
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1258