mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 15:38:33 +02:00
misc work
This commit is contained in:
parent
906216d98b
commit
1ed8a2524a
8 changed files with 350 additions and 13 deletions
|
@ -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'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue