##// END OF EJS Templates
Don't use -p flag together with -s in git calls. Latest...
Don't use -p flag together with -s in git calls. Latest git version changes behaviour of such call changing the output. In all the calls where -p -s was used we're only interested in list of changesets and not the diff.

File last commit:

r4026:a60a0e90 default
r4106:4e429252 default
Show More
diff.js
32 lines | 677 B | application/javascript | JavascriptLexer
CodeMirror.defineMode("diff", function() {
var TOKEN_NAMES = {
'+': 'positive',
'-': 'negative',
'@': 'meta'
};
return {
token: function(stream) {
var tw_pos = stream.string.search(/[\t ]+?$/);
if (!stream.sol() || tw_pos === 0) {
stream.skipToEnd();
return ("error " + (
TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, '');
}
var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd();
if (tw_pos === -1) {
stream.skipToEnd();
} else {
stream.pos = tw_pos;
}
return token_name;
}
};
});
CodeMirror.defineMIME("text/x-diff", "diff");