mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
two small updates
This commit is contained in:
parent
a8866ec593
commit
ea3fe2f3eb
2 changed files with 7 additions and 3 deletions
|
@ -168,9 +168,12 @@ var CommandPromptView = Backbone.View.extend({
|
||||||
|
|
||||||
// split commands on semicolon
|
// split commands on semicolon
|
||||||
_.each(value.split(';'), _.bind(function(command, index) {
|
_.each(value.split(';'), _.bind(function(command, index) {
|
||||||
command = command.replace(/^(\s+)/, '');
|
command = command
|
||||||
command = command.replace(/(\s+)$/, '');
|
.replace(/^(\s+)/, '')
|
||||||
command = command.replace(/"/g, '"');
|
.replace(/(\s+)$/, '')
|
||||||
|
.replace(/"/g, '"')
|
||||||
|
.replace(/'/g, "'");
|
||||||
|
|
||||||
command = _.escape(command);
|
command = _.escape(command);
|
||||||
|
|
||||||
if (index > 0 && !command.length) {
|
if (index > 0 && !command.length) {
|
||||||
|
|
|
@ -76,6 +76,7 @@ GitEngine.prototype.exportTree = function() {
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
var HEAD = this.HEAD.toJSON();
|
var HEAD = this.HEAD.toJSON();
|
||||||
|
HEAD.visBranch = undefined;
|
||||||
HEAD.target = HEAD.target.get('id');
|
HEAD.target = HEAD.target.get('id');
|
||||||
totalExport.HEAD = HEAD;
|
totalExport.HEAD = HEAD;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue