feat: allow access to remote state #158
Merged
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.
TL;DR
This pull request introduces changes and enhancements in the Repository class in 'repository.ts' and corresponding tests in 'commit.test.ts'. It also includes updates to the interface description in 'commit.ts'.
What changed?
The Repository class now has a new member 'remoteRefs' and a respective accessor function 'remote'. The member keeps track of the state of the remote during initialization. The new test checks for the status and commit operations on a Repository instance.
In 'commit.ts', block comments format has been introduced in place of line comments for commit hash details.
How to test?
Reviewers can run the included test in 'commit.test.ts' to verify the new changes functionality. Check updated commenting style in 'commit.ts'.
Why make this change?
The changes enhance the functionality of the Repository class and improve code readability in 'commit.ts' with proper block comments.