| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Ok, I'm happy with this current implementation. StatusEntries get more context than the statuses we get from Status.forEach. With the latter, we only get a status bit and a path. With the StatusEntry we get not only the status bit, but the deltas from head-to-index and index-to-workdir, including old and new file info. This makes identifying renames possible, along with lots of other stuff. I was thinking we might want to add a convenience method like Repository.getExtendedStatuses to grab this info. Does that sound good? |
Sorry, something went wrong.
|
Sound great, do it up. On Mon, Mar 2, 2015, 7:24 AM Steve Smith notifications@github.com wrote:
|
Sorry, something went wrong.
|
Convenience method added as Repository.getStatusExt. I'll wait for a plus-one before merging. |
Sorry, something went wrong.
Creation can take some time on large repos
|
👍 |
Sorry, something went wrong.
Status.byIndex and StatusEntry
| Back | FazBrowse Home | New Git URL |
Getting this started, but something weird is going on with the deltas.
1) StatusList gets status with deltas: AssertionError: "���\u000f\u0013\u0017" == "my-new-file-that-shouldnt-exist.file" at /Users/steve/github/nodegit/test/tests/status_list.js:46:18 at /Users/steve/github/nodegit/node_modules/nodegit-promise/lib/core.js:64:15 at flush (/Users/steve/github/nodegit/node_modules/nodegit-promise/node_modules/asap/asap.js:27:13) at process._tickCallback (node.js:419:13)