GNOME Bugzilla – Bug 616638
Ellipsize long subjects
Last modified: 2010-05-29 19:33:16 UTC
In repositories converted from CVS or SVN, it may be that a subject line is really long, because it was written as a multi-line comment (not adhering to the Git style guide). When clicking on such a commit, gitg's window is resized to a really big size. This is because it wants to show the whole subject line in the details. As long as the commit is selected, it isn't possible to make the window smaller again. Therefore, it is probably a good idea to ellipsize the subject line, see patch.
Created attachment 159420 [details] [review] Ellipsize long subjects in revision view
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Thanks! The parents commit message is also ellipsized, but it uses PANGO_ELLIPSIZE_MIDDLE (in gitg-revision-view.c). Should we change that to PANGO_ELLIPSIZE_END to have the same behaviour as the subject?
You're probably right it's better to be consistent. I've changed it to 'end' too.