If I made two logical changes, which is continuous in code. Git shows it as one single hunk while adding interactively.
Is there a way to specifically add only few lines in a hunk, during add --patch?
If I made two logical changes, which is continuous in code. Git shows it as one single hunk while adding interactively.
Is there a way to specifically add only few lines in a hunk, during add --patch?
Copyright © 2021 Jogjafile Inc.
The
git add --patchmode has option for splitting an individual hunk or editing an individual hunk.git add --patch:Wouldn't that solve your issue regarding your continuous set of lines?
After adding partials to commit, User should use ONLY
git committo commit, usinggit commit -aor using commit withall filesflag ignores added partial and commits all staged files.