Community
Participate
Working Groups
That little fine dark grey line shown in the Git Staging view seems to be hard-coded to 72 columns. I work all day along on a project where someone decided that 50 characters was enough for the a commit message header. Therefore it would be cool if I could change the 72 to 50 in a Preference. In fact, if that preference would let me put e.g. "50,72" and it would draw two such lines, that would be even more useful and cooler! ;) Thanks a lot for EGit.
> Therefore it would be cool if I could change the 72 to 50 in a Preference. UI wise, Team > Git > Commiting > General is probably where I would look for this, maybe just under the "Maximum number of commit messages in history".
Good idea. Maybe you would like to contribute this? Needs the preference UI and default setting, plus using the preference in SpellCheckableMessageArea. Plus tests. Note that there may be strange effects when the preference changes. (Such as a message already wrapped at 72 characters getting re-wrapped at 50: we'll probably get a bunch of 22-character lines.) Also: as long as you're only working on one "project", a workspace-global setting may be good enough. But what if you're working on different "projects" with different requirements in the same workspace? Maybe we'd need a project-level preference? Or a setting that could be set per repository?
I came across the same problem today when committing a change to JDT. I would say having it on the workspace level to start with will be more than enough. If there is a demand for project-level configuration we can add that as well, it also depends on how much effort we need to support the latter.