* How to split file with its history?
@ 2019-08-27 10:10 Konstantin
2019-08-27 10:36 ` SZEDER Gábor
0 siblings, 1 reply; 3+ messages in thread
From: Konstantin @ 2019-08-27 10:10 UTC (permalink / raw)
To: git
currently we have one code file with deep history.
As code file grown it is necessary to split it.
but this action will drop history for the new extracted file.
how can i split one big code file to small files and save its history
for the "blame" action?
--
Best regards,
Konstantin K
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to split file with its history?
2019-08-27 10:10 How to split file with its history? Konstantin
@ 2019-08-27 10:36 ` SZEDER Gábor
2019-08-27 10:59 ` Konstantin
0 siblings, 1 reply; 3+ messages in thread
From: SZEDER Gábor @ 2019-08-27 10:36 UTC (permalink / raw)
To: Konstantin; +Cc: git
On Tue, Aug 27, 2019 at 01:10:02PM +0300, Konstantin wrote:
> currently we have one code file with deep history.
> As code file grown it is necessary to split it.
> but this action will drop history for the new extracted file.
> how can i split one big code file to small files and save its history
> for the "blame" action?
'git blame -C' can detect lines moved between files.
https://git-scm.com/docs/git-blame#Documentation/git-blame.txt--Cltnumgt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to split file with its history?
2019-08-27 10:36 ` SZEDER Gábor
@ 2019-08-27 10:59 ` Konstantin
0 siblings, 0 replies; 3+ messages in thread
From: Konstantin @ 2019-08-27 10:59 UTC (permalink / raw)
To: SZEDER Gábor; +Cc: git
thank you. your answer is pretty complete.
On Tue, Aug 27, 2019 at 1:36 PM SZEDER Gábor <szeder.dev@gmail.com> wrote:
>
> On Tue, Aug 27, 2019 at 01:10:02PM +0300, Konstantin wrote:
> > currently we have one code file with deep history.
> > As code file grown it is necessary to split it.
> > but this action will drop history for the new extracted file.
> > how can i split one big code file to small files and save its history
> > for the "blame" action?
>
> 'git blame -C' can detect lines moved between files.
>
> https://git-scm.com/docs/git-blame#Documentation/git-blame.txt--Cltnumgt
>
--
Best regards, Konstantin Kosukhin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-27 10:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-27 10:10 How to split file with its history? Konstantin
2019-08-27 10:36 ` SZEDER Gábor
2019-08-27 10:59 ` Konstantin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox