Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all state reponsibility inside of RepositoryState #463

Merged
merged 5 commits into from
May 24, 2021

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented May 24, 2021

1/5 master <- this <- #464 <- #465 <- #466 <- #467

The purpose of this chain is to update the logic used by the Repository class to derive each tracked paths status. I will detail the change in logic on #466.

Short description of each PR is shown below:

This - PR moves more responsibility to the RepositoryState class.
#464 - Moves the class into it's own file.
#465 - Updates the available statuses: new is renamed to added and renamed & stageModified are added.
#466 - Uses diff to drive the majority of statuses.
#467 - refactors the internals of RepositoryState.

@codeclimate
Copy link

codeclimate bot commented May 24, 2021

Code Climate has analyzed commit 955878c and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 94.7% (50% is the threshold).

This pull request will bring the total coverage in the repository to 88.1% (0.0% change).

View more on Code Climate.

public new: Set<string> = new Set()
public notInCache: Set<string> = new Set()
public tracked: Set<string> = new Set()
public untracked: Set<string> = new Set()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[C] Matches the style that we agreed to a couple of weeks ago.

@mattseddon mattseddon requested a review from rogermparent May 24, 2021 05:43
@mattseddon mattseddon marked this pull request as ready for review May 24, 2021 05:43
@rogermparent rogermparent merged commit 4a88cce into master May 24, 2021
@rogermparent rogermparent deleted the use-state-class branch May 24, 2021 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants