GNOME Bugzilla – Bug 613085
Ellipsize commit subjects in revision
Last modified: 2010-05-29 16:29:52 UTC
Currently, if you have a commit with a ridiculously long subject (due to misuse of -m, for instance), viewing it will make the gitg window's minimum width equally ridiculous. Today, my gitg window was almost twice as wide as both my screens together!
Created attachment 156309 [details] [review] Ellipsize commit subjects in revision view header Currently, if you have a commit with a ridiculously long subject (due to misuse of -m, for instance), viewing it will make the gitg window's minimum width equally ridiculous. Today, my gitg window was almost twice as wide as both my screens together! This patch ellipsizes the subject at the end. This is inconsistent with the ellipzisation of the subject of parent commits, which is in the middle, but the latter is also enclosed in parentheses so ellipsizing at the end would look strange.
Created attachment 156310 [details] [review] Use g_markup_printf_escaped
Thanks! The first patch was already applied from a different bug (I didn't see the duplicate). I've also applied your second patch.