Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 4 additions & 4 deletions examples/add-and-commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
return repo.getCommit(head);
})
.then(function(parent) {
var author = nodegit.Signature.create("Scott Chacon",
"schacon@gmail.com", 123456789, 60);
var committer = nodegit.Signature.create("Scott A Chacon",
"scott@github.com", 987654321, 90);
var author = nodegit.Signature.now("Scott Chacon",
"schacon@gmail.com");
var committer = nodegit.Signature.now("Scott A Chacon",
"scott@github.com");

return repo.createCommit("HEAD", author, committer, "message", oid, [parent]);
})
Expand Down
8 changes: 4 additions & 4 deletions examples/create-new-repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ fse.ensureDir(path.resolve(__dirname, repoDir))
return index.writeTree();
})
.then(function(oid) {
var author = nodegit.Signature.create("Scott Chacon",
"schacon@gmail.com", 123456789, 60);
var committer = nodegit.Signature.create("Scott A Chacon",
"scott@github.com", 987654321, 90);
var author = nodegit.Signature.now("Scott Chacon",
"schacon@gmail.com");
var committer = nodegit.Signature.now("Scott A Chacon",
"scott@github.com");

// Since we're creating an inital commit, it has no parents. Note that unlike
// normal we don't get the head either, because there isn't one yet.
Expand Down
8 changes: 4 additions & 4 deletions examples/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))

// nodegit provides a couple of methods to create commit objects easily as
// well.
var author = nodegit.Signature.create("Scott Chacon",
"schacon@gmail.com", 123456789, 60);
var committer = nodegit.Signature.create("Scott A Chacon",
"scott@github.com", 987654321, 90);
var author = nodegit.Signature.now("Scott Chacon",
"schacon@gmail.com");
var committer = nodegit.Signature.now("Scott A Chacon",
"scott@github.com");

// Commit objects need a tree to point to and optionally one or more
// parents. Here we're creating oid objects to create the commit with,
Expand Down
8 changes: 4 additions & 4 deletions examples/merge-cleanly.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ var theirCommit;
var ourBranch;
var theirBranch;

var ourSignature = nodegit.Signature.create("Ron Paul",
"RonPaul@TollRoadsRBest.info", 123456789, 60);
var theirSignature = nodegit.Signature.create("Greg Abbott",
"Gregggg@IllTollYourFace.us", 123456789, 60);
var ourSignature = nodegit.Signature.now("Ron Paul",
"RonPaul@TollRoadsRBest.info");
var theirSignature = nodegit.Signature.now("Greg Abbott",
"Gregggg@IllTollYourFace.us");

// Create a new repository in a clean directory, and add our first file
fse.remove(path.resolve(__dirname, repoDir))
Expand Down
12 changes: 6 additions & 6 deletions examples/merge-with-conflicts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ var ourFileContent = "Big Bobs are best, IMHO.\n";
var theirFileContent = "Nobody expects the small Bobquisition!\n";
var finalFileContent = "Big Bobs are beautiful and the small are unexpected!\n";

var baseSignature = nodegit.Signature.create("Peaceful Bob",
"justchill@bob.net", 123456789, 60);
var ourSignature = nodegit.Signature.create("Big Bob",
"impressive@bob.net", 123456789, 60);
var theirSignature = nodegit.Signature.create("Small Bob",
"underestimated@bob.net", 123456789, 60);
var baseSignature = nodegit.Signature.now("Peaceful Bob",
"justchill@bob.net");
var ourSignature = nodegit.Signature.now("Big Bob",
"impressive@bob.net");
var theirSignature = nodegit.Signature.now("Small Bob",
"underestimated@bob.net");

var ourBranchName = "ours";
var theirBranchName = "theirs";
Expand Down
4 changes: 2 additions & 2 deletions examples/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ var repoDir = "../../newRepo";
var repository;
var remote;

var signature = nodegit.Signature.create("Foo bar",
"foo@bar.com", 123456789, 60);
var signature = nodegit.Signature.now("Foo bar",
"foo@bar.com");

// Create a new repository in a clean directory, and add our first file
fse.remove(path.resolve(__dirname, repoDir))
Expand Down
8 changes: 4 additions & 4 deletions examples/remove-and-commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
return _repository.getCommit(head);
})
.then(function(parent) {
var author = nodegit.Signature.create("Scott Chacon",
"schacon@gmail.com", 123456789, 60);
var committer = nodegit.Signature.create("Scott A Chacon",
"scott@github.com", 987654321, 90);
var author = nodegit.Signature.now("Scott Chacon",
"schacon@gmail.com");
var committer = nodegit.Signature.now("Scott A Chacon",
"scott@github.com");

return _repository.createCommit("HEAD", author, committer,
"message", _oid, [parent]);
Expand Down