bundles/org.eclipse.orion.client.git/web/orion/git/util.js
function trimCommitMessage(message) {
		var splitted = message.split(/\r\n|\n/);
		var iterator = 0;
		
		while(splitted.length > 0 && /^\s*$/.test(splitted[iterator])) {
			iterator++;
		}
		var maxMessageLength = 100;
		if (splitted[iterator].length > maxMessageLength) return splitted[iterator].substring(0,maxMessageLength);
		return splitted[iterator];
	}
function trimCommitMessage(message) {
		var splitted = message.split(/\r\n|\n/);
		var iterator = 0;
		
		while(splitted.length > 0 && /^\s*$/.test(splitted[iterator])) {
			iterator++;
		}
		var maxMessageLength = 100;
		if (splitted[iterator].length > maxMessageLength) return splitted[iterator].substring(0,maxMessageLength);
		return splitted[iterator];
	}
function trimCommitMessage ( message ) { var splitted = message . split ( / \r\n|\n / ) ; var iterator = 0 ; while ( splitted . length > 0 && / ^\s*$ / . test ( splitted [ iterator ] ) ) { iterator ++ ; } var maxMessageLength = 100 ; if ( splitted [ iterator ] . length > maxMessageLength ) return splitted [ iterator ] . substring ( 0 , maxMessageLength ) ; return splitted [ iterator ] ; }
Trims messages, skips empty lines until non-empty one is found
Trims messages skips empty lines until non - empty one is found