Re: Feature Request: Interactively pick fixup revision
- From
Matěj Cepl <mcepl@cepl.eu>
- Date
- Nov 9, 2024, 14:55 UTC
- Message-ID
- <D5HQH12Y4SWF.2W70SKEDB7HBF@cepl.eu>
- In-Reply-To
- <CABg7He2asYQbdRvSvfh1YZ2FRPchVfvta8yBv4PFdVNnhzX6Ow@mail.gmail.com>
On Sat Nov 9, 2024 at 12:41 PM CET, Martin Imre wrote:
> My usual workflow is using `git commit --fixup <revision>` quite > frequently, as it eases the code reviewing process and allows for a > clean history later on.
https://github.com/keis/git-fixup/
but at least as a minimal improvement, I would limit list of commits to those which are touched in the staging area:
ref=$(git log --oneline -- $(git diff --cached|lsdiff --strip 1)|fzf|cut -d ' ' -f1)
(lsdiff is from patchutils)
Best,
Matěj
-- http://matej.ceplovi.cz/blog/, @mcepl@floss.social GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 Ty zlý dávaj’ ty hodný pryč. // Those evil ones put away those good ones. -- Magda Ceplová