Git development
 help / color / mirror / Atom feed
* [filter-repo] How to reorder commits
@ 2022-07-21 15:19 Konstantin Ryabitsev
  2022-07-22 23:18 ` Elijah Newren
  0 siblings, 1 reply; 3+ messages in thread
From: Konstantin Ryabitsev @ 2022-07-21 15:19 UTC (permalink / raw)
  To: git; +Cc: newren

Elijah:

It seems filter-repo can be used to easily reorder commits, but I'm not able
to quite figure out how to do it with callbacks. My goal is:

- keep the cover letter at the start of the series in order to cleanly
  delineate where their work starts (and thus avoid potential problems with
  rebases and finding fork-points with base branches, which tends to give
  newbies trouble)
- when the author is ready to submit their work, move the cover letter to the
  tip of the branch and tag it as "foo-bar-v1"
- when the author is ready to work on their changes, they run --reroll and we
  move the cover letter back to the start of the series, adding any necessary
  template "changes in vX" entries to it

(or maybe it will go completely differently -- it's all very fluid right now)

Basically, is git-filter-repo the right tool to reorder commits, or is it best
to go directly with fast-export/fast-import?

Thanks in advance,
Konstantin

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

end of thread, other threads:[~2022-07-25 21:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-21 15:19 [filter-repo] How to reorder commits Konstantin Ryabitsev
2022-07-22 23:18 ` Elijah Newren
2022-07-25 21:17   ` Konstantin Ryabitsev

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