private static VcsChange.Type parseChangeType(String s) {
		// see "--diff-filter" at https://www.kernel.org/pub/software/scm/git/docs/git-log.html
		char added = 'A';
		char copied = 'C';
		char modified = 'M';
		char typeChanged = 'T';
		char unmerged = 'U';
		char unknown = 'X';
		char deleted = 'D';
		char renamed = 'R';

		char c = s.charAt(0);
		if (c == added || c == copied) {
			return Added;
		} else if (c == modified || c == typeChanged || c == unmerged || c == unknown) {
			return Modified;
		} else if (c == deleted) {
			return Deleted;
		} else if (c == renamed) {
			return Moved;
		} else {
			throw new IllegalStateException("Unknown git change type: " + s);
		}
	}