MCPcopy Index your code
hub / github.com/nodegit/nodegit / removeFileFromIndex

Function removeFileFromIndex

test/tests/rebase.js:20–31  ·  view source on GitHub ↗
(repository, fileName)

Source from the content-addressed store, hash-verified

18 var theirBranchName = "theirs";
19
20 var removeFileFromIndex = function(repository, fileName) {
21 return repository.refreshIndex()
22 .then(function(index) {
23 return index.removeByPath(fileName)
24 .then(function() {
25 return index.write();
26 })
27 .then(function() {
28 return index.writeTree();
29 });
30 });
31 };
32
33 beforeEach(function() {
34 var test = this;

Callers 1

rebase.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…