%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/old/home/stash/atlassian/stash/3.7.1/atlassian-stash/static/model/
Upload File :
Create Path :
Current File : //data/old/home/stash/atlassian/stash/3.7.1/atlassian-stash/static/model/file-change-min.js

define("model/file-change",["backbone-brace","util/deprecation","model/commit-range","model/conflict","model/file-change-types","model/path","model/repository"],function(C,F,B,H,E,D,A){var G=C.Model.extend({namedAttributes:{repository:A,commitRange:B,srcPath:D,path:D,line:null,search:null,type:null,nodeType:null,conflict:H,diff:null,srcExecutable:null,executable:null},initialize:function(){if(this.getPath()){this.setPath(new D(this.getPath()))}if(this.getSrcPath()){this.setSrcPath(new D(this.getSrcPath()))}this.setType(G._mapChangeType(this.getType(),this.getSrcPath(),this.getPath()))}},{fromDiff:function(J,I,K){return new G({repository:K,commitRange:I,srcPath:J.source,path:J.destination,diff:J,type:E.guessChangeTypeFromDiff(J)})},_mapChangeType:function(I,K,J){return(I===E.MOVE&&K&&K.isSameDirectory(J))?E.RENAME:E.changeTypeFromId(I)}});(function(I){G.prototype.toJSON=function(){var K=this.getPath();var L=this.getSrcPath();this.setPath(null);this.setSrcPath(null);var J=I.apply(this,arguments);if(K){J.path=F.jsonAsBrace(K,"3.2","4.0")}if(L){J.srcPath=F.jsonAsBrace(L,"3.2","4.0")}this.setPath(K);this.setSrcPath(L);return J}})(G.prototype.toJSON);return G});

Zerion Mini Shell 1.0