Skip to content

Move Stage and Remove to commands#1291

Merged
ethomson merged 3 commits into
masterfrom
cmn/stage-command
Mar 29, 2016
Merged

Move Stage and Remove to commands#1291
ethomson merged 3 commits into
masterfrom
cmn/stage-command

Conversation

@carlosmn

Copy link
Copy Markdown
Member

Similarly to the other PRs, let's move away from having these in the repository. Making this external also means it'll work for more situations than it used to since now it expects to work against an IRepository instead of from inside a Repository.

This also has us make the Index not write itself to disk on every single operation, so we end up doing less I/O while we build up the index we do want to keep.

I think this would be something you use @niik so do you have thoughts?

@carlosmn
carlosmn force-pushed the cmn/stage-command branch 2 times, most recently from 1e0e87c to 935c5df Compare March 24, 2016 08:36
@ethomson

Copy link
Copy Markdown
Member

Sorry, after merging #1288, there's conflicts here now. :/

These commands work on a repository, and we can leave the Index be the
data structure. Thus it is no longer written to disk after every change.
This deprecates them from the repository itself and makes it clear this
isn't a fundamental operation but something which builds on them.
@carlosmn
carlosmn force-pushed the cmn/stage-command branch from 935c5df to 78be980 Compare March 29, 2016 11:32
@ethomson
ethomson merged commit 84b3c19 into master Mar 29, 2016
@carlosmn
carlosmn deleted the cmn/stage-command branch April 12, 2016 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants