-
Notifications
You must be signed in to change notification settings - Fork 405
[WIP] Stage lines from editor #93
Conversation
Signed-off-by: Michelle Tilley <binarymuse@github.com>
Oh, FYI in case it wasn't clear: CI doesn't pass right now because of an annoying |
lib/common.js
Outdated
return objects | ||
} | ||
|
||
export function any <T> (arr: Array<T>, predicate: (item: T, idx: number, arr: Array<T>) => boolean): boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use Array.prototype.some
instead?
😻 |
lib/git-package.js
Outdated
.map(hunk => hunk.getLines()) | ||
.reduce((acc, lines) => acc.concat(lines), []) | ||
.filter(line => line.isChanged() && anyRangesIntersectLine(line)) | ||
.forEach(line => line.stage()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, #101 changed how staging works. You'll now need to call FileListViewModel.stageLines
(and no more transacting!).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JK, now it's GitStore.stageLines
Signed-off-by: Michelle Tilley <binarymuse@github.com>
Signed-off-by: Michelle Tilley <binarymuse@github.com>
df7b78f
to
26fcded
Compare
Signed-off-by: Michelle Tilley <binarymuse@github.com>
Signed-off-by: Michelle Tilley <binarymuse@github.com>
Signed-off-by: Michelle Tilley <binarymuse@github.com>
Signed-off-by: Michelle Tilley <binarymuse@github.com>
Put on hold to prioritize github-package features |
This is so absolutely and completely out of date that I'mma just 🔥 it |
TODO:
FileDiff
Closes #46