misc work

This commit is contained in:
Peter Cottle 2013-10-06 14:30:50 -07:00
parent 906216d98b
commit 1ed8a2524a
8 changed files with 350 additions and 13 deletions

View file

@ -17,6 +17,7 @@ var CommandResult = Errors.CommandResult;
var EventBaton = require('../util/eventBaton').EventBaton;
var ORIGIN_PREFIX = 'o/';
var TAB = '   ';
function GitEngine(options) {
this.rootCommit = null;
@ -601,6 +602,21 @@ GitEngine.prototype.printBranches = function(branches) {
});
};
GitEngine.prototype.printRemotes = function(options) {
var result = '';
if (options.verbose) {
result += 'origin (fetch)\n';
result += TAB + 'git@github.com:pcottle/foo.git' + '\n\n';
result += 'origin (push)\n';
result += TAB + 'git@github.com:pcottle/foo.git';
} else {
result += 'origin';
}
throw new CommandResult({
msg: result
});
};
GitEngine.prototype.getUniqueID = function() {
var id = this.uniqueId('C');
@ -2141,7 +2157,7 @@ GitEngine.prototype.status = function() {
}
lines.push('Changes to be committed:');
lines.push('');
lines.push('    modified: cal/OskiCostume.stl');
lines.push(TAB + 'modified: cal/OskiCostume.stl');
lines.push('');
lines.push(intl.str('git-status-readytocommit'));