-
Notifications
You must be signed in to change notification settings - Fork 691
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
92 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#include "../include/functions/copy.h" | ||
|
||
/** | ||
<% include doc.cc.ejs -%> | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
var assert = require("assert"); | ||
var path = require("path"); | ||
|
||
describe("Blob", function() { | ||
var reposPath = path.resolve("test/repos/workdir/.git"); | ||
|
||
var Repository = require("../../lib/repository"); | ||
var Attr = require("../../lib/attr"); | ||
|
||
before(function() { | ||
var test = this; | ||
|
||
return Repository.open(reposPath).then(function(repository) { | ||
test.repository = repository; | ||
}); | ||
}); | ||
|
||
it("can add a macro definition", function() { | ||
var error = Attr.addMacro(this.repository, "binary", "-diff -crlf"); | ||
|
||
assert.equal(error, 0); | ||
}); | ||
|
||
it("can flush the attr cache", function() { | ||
Attr.cacheFlush(this.repository); | ||
}); | ||
|
||
// FIXME Currently segfaults. | ||
it.skip("can lookup the value of a git attribute", function() { | ||
var flags = Attr.Check.NO_SYSTEM; | ||
var getAttr = Attr.get(this.repository, flags, ".gitattributes", "test"); | ||
|
||
return getAttr.then(function(val) { | ||
console.log(val); | ||
}).catch(function(ex) { | ||
console.log(ex); | ||
}); | ||
}); | ||
}); |