Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change createCommit to create for consistancy
  • Loading branch information
maxkorp committed Oct 22, 2014
commit 5350dfee8781e05ac54de9fb075ff5504f74e231
4 changes: 2 additions & 2 deletions example/add-and-commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var git = require('../'),
;

/**
* This example creates a certain file `newfile.txt`, adds it to the git index and
* This example creates a certain file `newfile.txt`, adds it to the git index and
* commits it to head. Similar to a `git add newfile.txt` followed by a `git commit`
**/

Expand Down Expand Up @@ -56,4 +56,4 @@ git.Repo.open(path.resolve(__dirname, '../.git'), function(openReporError, repo)
});
});
});
});
});
4 changes: 2 additions & 2 deletions generate/descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@
"functions": {
"git_commit_create": {
"ignore": false,
"jsFunctionName": "createCommit",
"cppFunctionName": "CreateCommit",
"jsFunctionName": "create",
"cppFunctionName": "Create",
"isConstructorMethod": true,
"isAsync": true,
"return": {
Expand Down
4 changes: 2 additions & 2 deletions generate/nkallen.json
Original file line number Diff line number Diff line change
Expand Up @@ -12344,8 +12344,8 @@
"isAsync": true,
"isConstructorMethod": false,
"isPrototypeMethod": true,
"jsFunctionName": "createCommit",
"cppFunctionName": "CreateCommit",
"jsFunctionName": "create",
"cppFunctionName": "Create",
"return": {
"cType": "int",
"cppClassName": "Int32",
Expand Down
12 changes: 6 additions & 6 deletions generate/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -1877,8 +1877,8 @@
"js": "lookup"
},
"git_commit_create": {
"cpp": "CreateCommit",
"js": "createCommit"
"cpp": "Create",
"js": "create"
},
"const git_commit **": {
"cpp": "GitCommit",
Expand Down Expand Up @@ -3301,12 +3301,12 @@
"js": "nthGenAncestor"
},
"git_commit_create *": {
"cpp": "CreateCommit",
"js": "createCommit"
"cpp": "Create",
"js": "create"
},
"const git_commit_create *": {
"cpp": "CreateCommit",
"js": "createCommit"
"cpp": "Create",
"js": "create"
},
"git_commit_create_v *": {
"cpp": "CreateV",
Expand Down
6 changes: 3 additions & 3 deletions lib/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Repository.prototype.getRemotes = function(callback) {
callback(null, remotes);
}

return remotes;
return remotes;
}, callback);
};

Expand Down Expand Up @@ -218,7 +218,7 @@ Repository.prototype.createCommit = function(
var commit = this;

if (tree instanceof Tree) {
commit = Commit.createCommit.call(
commit = Commit.create.call(
this,
updateRef,
author,
Expand All @@ -231,7 +231,7 @@ Repository.prototype.createCommit = function(
);
} else {
createCommit = this.getTree(tree).then(function(tree) {
return Commit.createCommit.call(
return Commit.create.call(
commit,
updateRef,
author,
Expand Down