Update statusMatrix.js: added two more StatusMatrix example #1886
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm editing the documentation
Affected page: https://isomorphic-git.org/docs/en/statusMatrix
Added two more StatusMatrix examples:
This status is for when you delete a file, then create a new one of the same name (still in working directory).
I'm not sure what to edit on the "possible combinations" part where it marked with
??
. Maybe something like this?Canonical Git Scenario
In both scenario, we have a file in HEAD, deleted it, add it to INDEX, then created a new file of the same name. The difference is that the file in scenario 1 has content that identical to HEAD, and scenario 2 has content that differs from HEAD.
touch README.md git add README.md git commit -m "added readme" rm README.md git add README.md touch README.md