{"thread":{"id":"51757","subject":"How to split file with its history?","startedAt":"2019-08-27T10:10:17Z","lastAt":"2019-08-27T10:59:16Z","messageCount":3,"participants":["Konstantin","SZEDER Gábor"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"381336","messageId":"CAObSod2jhDjq=Fw2JtNMsK53HxXSf3n6K5XacHQBH00L49mNpQ@mail.gmail.com","threadId":"51757","inReplyTo":null,"subject":"How to split file with its history?","fromName":"Konstantin","fromEmail":"kostix87@gmail.com","sentAt":"2019-08-27T10:10:02Z","receivedAt":"2019-08-27T10:10:17Z","isPatch":false,"sender":{"key":"kostix87@gmail.com","avatar":null},"body":"currently we have one code file with deep history.\nAs code file grown it is necessary to split it.\nbut this action will drop history for the new extracted file.\nhow can i split one big code file to small files and save its history\nfor the \"blame\" action?\n\n-- \nBest regards,\nKonstantin K\n"},{"id":"381342","messageId":"20190827103653.GB8571@szeder.dev","threadId":"51757","inReplyTo":"CAObSod2jhDjq=Fw2JtNMsK53HxXSf3n6K5XacHQBH00L49mNpQ@mail.gmail.com","subject":"Re: How to split file with its history?","fromName":"SZEDER Gábor","fromEmail":"szeder.dev@gmail.com","sentAt":"2019-08-27T10:36:53Z","receivedAt":"2019-08-27T10:36:58Z","isPatch":false,"sender":{"key":"szeder.dev@gmail.com","avatar":"https://avatars.githubusercontent.com/u/116324?v=4"},"body":"On Tue, Aug 27, 2019 at 01:10:02PM +0300, Konstantin wrote:\n> currently we have one code file with deep history.\n> As code file grown it is necessary to split it.\n> but this action will drop history for the new extracted file.\n> how can i split one big code file to small files and save its history\n> for the \"blame\" action?\n\n'git blame -C' can detect lines moved between files.\n\nhttps://git-scm.com/docs/git-blame#Documentation/git-blame.txt--Cltnumgt\n\n"},{"id":"381344","messageId":"CAObSod1tMmLVNciNL_C4i_Xb7VQPwWc0uJtzLc0tntZF3KH2zg@mail.gmail.com","threadId":"51757","inReplyTo":"20190827103653.GB8571@szeder.dev","subject":"Re: How to split file with its history?","fromName":"Konstantin","fromEmail":"kostix87@gmail.com","sentAt":"2019-08-27T10:59:03Z","receivedAt":"2019-08-27T10:59:16Z","isPatch":false,"sender":{"key":"kostix87@gmail.com","avatar":null},"body":"thank you. your answer is pretty complete.\n\nOn Tue, Aug 27, 2019 at 1:36 PM SZEDER Gábor <szeder.dev@gmail.com> wrote:\n>\n> On Tue, Aug 27, 2019 at 01:10:02PM +0300, Konstantin wrote:\n> > currently we have one code file with deep history.\n> > As code file grown it is necessary to split it.\n> > but this action will drop history for the new extracted file.\n> > how can i split one big code file to small files and save its history\n> > for the \"blame\" action?\n>\n> 'git blame -C' can detect lines moved between files.\n>\n> https://git-scm.com/docs/git-blame#Documentation/git-blame.txt--Cltnumgt\n>\n\n\n-- \nBest regards, Konstantin Kosukhin\n"}]}