making progress

This commit is contained in:
Peter Cottle 2012-08-13 16:13:15 -07:00
parent c12e0c6f2d
commit 2a84ebe36d
8 changed files with 115 additions and 90 deletions

View file

@ -1,7 +1,21 @@
function Git() {
function GitEngine() {
this.detachedHead = false;
}
Git.prototype.commit = function() {
GitEngine.prototype.commit = function() {
};
var Commit = Backbone.Model.extend({
initialize: function() {
// validation / defaults
if (!this.get('name')) {
this.set('name', _.uniqueId('C'));
}
if (!this.get('parent') && !this.get('rootCommit')) {
throw new Error('needs parent commit');
}
// make a node and start drawing?
}
});