git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Feature request: git cp
@ 2025-11-20 14:56 Martin Guy
  2025-11-20 15:17 ` Kristoffer Haugsbakk
  2025-11-20 23:07 ` Lucas Seiki Oshiro
  0 siblings, 2 replies; 10+ messages in thread
From: Martin Guy @ 2025-11-20 14:56 UTC (permalink / raw)
  To: git

I am splitting a large source file into three smaller ones (mp3.c into
mad.c, lame.c and twolame.c)
and would like the history to track the relevant lines in each file,
like "git mv" does,
but I only seem able to do this with one file by "git mv"ing it and
copying that to the other
as a new file.

So what I'd like is "git cp" that is like "git mv" but where blame for
both the resulting files
goes back the original one, if that's possible and unless there's a
way to achieve the same
effect that I haven't figured out.

A fairly rare thing to wish to do, but may be useful in this case.

    M

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

end of thread, other threads:[~2025-11-21 21:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-20 14:56 Feature request: git cp Martin Guy
2025-11-20 15:17 ` Kristoffer Haugsbakk
2025-11-20 16:28   ` D. Ben Knoble
2025-11-20 21:24   ` Martin Guy
2025-11-20 22:10     ` D. Ben Knoble
2025-11-20 23:07 ` Lucas Seiki Oshiro
2025-11-20 23:17   ` Martin Guy
2025-11-21  0:10   ` rsbecker
2025-11-21 14:32     ` Martin Guy
2025-11-21 21:52       ` Lucas Seiki Oshiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).