bundles/org.eclipse.orion.client.git/web/orion/git/util.js
function getGerritFooter(message) {
		
		var splitted = message.split(/\r\n|\n/);
		var footer = {};
		var changeIdCount = 0, 
			signedOffByPresent = false;
		for (var i = splitted.length-1; i >= 0; --i) {
			var changeId = "Change-Id: ";	//$NON-NLS-0$
			var signedOffBy = "Signed-off-by: ";	//$NON-NLS-0$
			if (splitted[i].indexOf(changeId) === 0) {
				footer.changeId = splitted[i].substring(changeId.length,splitted[i].length);
				if (++changeIdCount > 1) {
					footer = {};
					break;
				}
			} else if (!signedOffByPresent && splitted[i].indexOf(signedOffBy) === 0) {
				footer.signedOffBy = splitted[i].substring(signedOffBy.length,splitted[i].length);
				signedOffBy = true;
			}
		}
		
		return footer;
	}
function getGerritFooter(message) {
		
		var splitted = message.split(/\r\n|\n/);
		var footer = {};
		var changeIdCount = 0, 
			signedOffByPresent = false;
		for (var i = splitted.length-1; i >= 0; --i) {
			var changeId = "Change-Id: ";	//$NON-NLS-0$
			var signedOffBy = "Signed-off-by: ";	//$NON-NLS-0$
			if (splitted[i].indexOf(changeId) === 0) {
				footer.changeId = splitted[i].substring(changeId.length,splitted[i].length);
				if (++changeIdCount > 1) {
					footer = {};
					break;
				}
			} else if (!signedOffByPresent && splitted[i].indexOf(signedOffBy) === 0) {
				footer.signedOffBy = splitted[i].substring(signedOffBy.length,splitted[i].length);
				signedOffBy = true;
			}
		}
		
		return footer;
	}
function getGerritFooter ( message ) { var splitted = message . split ( / \r\n|\n / ) ; var footer = { } ; var changeIdCount = 0 , signedOffByPresent = false ; for ( var i = splitted . length - 1 ; i >= 0 ; -- i ) { var changeId = "Change-Id: " ; //$NON-NLS-0$ var signedOffBy = "Signed-off-by: " ; //$NON-NLS-0$ if ( splitted [ i ] . indexOf ( changeId ) === 0 ) { footer . changeId = splitted [ i ] . substring ( changeId . length , splitted [ i ] . length ) ; if ( ++ changeIdCount > 1 ) { footer = { } ; break ; } } else if ( ! signedOffByPresent && splitted [ i ] . indexOf ( signedOffBy ) === 0 ) { footer . signedOffBy = splitted [ i ] . substring ( signedOffBy . length , splitted [ i ] . length ) ; signedOffBy = true ; } } return footer ; }
Returns Change-Id and Signed-off-by of a commit if present
Returns Change - Id and Signed - off - by of a commit if present