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

✨ Add sparse commit #57

Merged
merged 1 commit into from
Oct 31, 2023
Merged

✨ Add sparse commit #57

merged 1 commit into from
Oct 31, 2023

Conversation

julien040
Copy link
Owner

You can now perform a commit without including all the files by specifying them as args: For example: gut save myfile.go myfile.js

The function starts by verifying if all the paths are valid.
Then, all the logic is passed down to src/executor/commit.go:Commit()
If len(args)==0, it adds all the files to the staging area.
Otherwise it empties the staging area and adds only the specified files.

You can now perform a commit without including all the files by specifying them as args:
For example: gut save myfile.go myfile.js

The function starts by verifying if all the paths are valid
Then, all the logic is passed down to src/executor/commit.go:Commit()
If len(args)==0, it adds all the files to the staging area.
Otherwise it empties the staging area and adds only the specified files.
@julien040 julien040 added the enhancement New feature or request label Oct 31, 2023
@julien040 julien040 added this to the v.0.3.1 milestone Oct 31, 2023
@julien040 julien040 self-assigned this Oct 31, 2023
@julien040 julien040 merged commit 82a335f into main Oct 31, 2023
@julien040 julien040 deleted the enhancement/sparse-commit branch October 31, 2023 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant