Stage or discard a hunk at a time?
- From
Cameron Steffen <cam.steffen94@gmail.com>
- Date
- Jan 16, 2019, 19:09 UTC
- Message-ID
- <CAAVFnNminTx_z9Y=jhzDnT0n5_zGD_k2SA84HQqMvKHJSvKcSA@mail.gmail.com>
Hello,
I have this feature idea for git. There should be a command that effectively combines git add -p and git checkout -p so that I can navigate changed hunks and either stage or discard them.
There is already a SO question asking about this exactly... https://stackoverflow.com/questions/11538650/simultaneously-git-add-p-and-git-checkout-p
Has this been discussed before? Is this a reasonable request? If so, I might look into contributing the change myself.
Cameron