bundles/org.eclipse.orion.client.editor/web/orion/editor/editor.js
function(diffs) {
			this.showAnnotations(diffs, [
				AT.ANNOTATION_DIFF_ADDED,
				AT.ANNOTATION_DIFF_MODIFIED,
				AT.ANNOTATION_DIFF_DELETED
			], null, function(annotation) {
				if(annotation.type === "added")//$NON-NLS-0$
					return AT.ANNOTATION_DIFF_ADDED;
				else if (annotation.type === "modified")//$NON-NLS-0$
					return AT.ANNOTATION_DIFF_MODIFIED;
				return AT.ANNOTATION_DIFF_DELETED; // assume deleted if not added or modified
			});
		}
function(diffs) {
			this.showAnnotations(diffs, [
				AT.ANNOTATION_DIFF_ADDED,
				AT.ANNOTATION_DIFF_MODIFIED,
				AT.ANNOTATION_DIFF_DELETED
			], null, function(annotation) {
				if(annotation.type === "added")//$NON-NLS-0$
					return AT.ANNOTATION_DIFF_ADDED;
				else if (annotation.type === "modified")//$NON-NLS-0$
					return AT.ANNOTATION_DIFF_MODIFIED;
				return AT.ANNOTATION_DIFF_DELETED; // assume deleted if not added or modified
			});
		}
function ( diffs ) { this . showAnnotations ( diffs , [ AT . ANNOTATION_DIFF_ADDED , AT . ANNOTATION_DIFF_MODIFIED , AT . ANNOTATION_DIFF_DELETED ] , null , function ( annotation ) { if ( annotation . type === "added" ) //$NON-NLS-0$ return AT . ANNOTATION_DIFF_ADDED ; else if ( annotation . type === "modified" ) //$NON-NLS-0$ return AT . ANNOTATION_DIFF_MODIFIED ; return AT . ANNOTATION_DIFF_DELETED ; // assume deleted if not added or modified } ) ; }
Display git diff annotation on the editor's annotation ruler and overview ruler.

@param diffs [] with types "added", "modified", "deleted"
Each property in diffs contains an array of objects { lineStart, lineEnd } that
provides the starting and ending line index for the specified property.
Display git diff annotation on the editor s annotation ruler and overview ruler .