public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* Feature Request: Interactively pick fixup revision
@ 2024-11-09 11:41 Martin Imre
  2024-11-09 13:09 ` rsbecker
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Martin Imre @ 2024-11-09 11:41 UTC (permalink / raw)
  To: git

Hi,

first email to this list, so please forgive me if I'm doing something wrong.

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.

One thing that is always cumbersome is to first find the SHA of the
revision that I plan to commit a fixup to.
I usually use git log and then copy the revision.
I even wrote a script that eases this process using fzf:
```
#!/bin/bash

res=$(git log --oneline | fzf)
ref=$(echo $res | cut -d ' ' -f1)

git commit --fixup ${ref}
```

I don't think fzf is really necessary here, but it speeds things up.

Anyhow, I'm really surprised that this isn't a feature of git.
I could see a `git commit --fixup` (without a revision) or `git commit
--fixup --interactive` open up the git log and let one pick the
revision they want to commit a fixup to.

Cheers,
Martin

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-11-16 17:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-09 11:41 Feature Request: Interactively pick fixup revision Martin Imre
2024-11-09 13:09 ` rsbecker
2024-11-09 13:39   ` Martin Imre
2024-11-09 14:55 ` Matěj Cepl
2024-11-09 17:13   ` Kristoffer Haugsbakk
2024-11-09 19:43     ` Matěj Cepl
2024-11-10  7:55       ` Martin Imre
2024-11-10  7:59         ` Kristoffer Haugsbakk
2024-11-10 16:09         ` Stefan Haller
2024-11-11  2:53         ` Matěj Cepl
2024-11-16 17:39           ` Oswald Buddenhagen
2024-11-09 17:08 ` Kristoffer Haugsbakk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox