Re: extracting the history of a single file as a new project [Was: Re: making a branch with just one file and keeping its whole]
- From
- Sverre Rabbelier <alturin@gmail.com>
- Date
- Jul 22, 2008, 06:15 UTC
- Message-ID
- <bd6139dc0807212315j4d1f1ff7rcc92077a8c70dba7@mail.gmail.com>
- In-Reply-To
- <20080722041457.52120c2f@mail.tin.it>
On Tue, Jul 22, 2008 at 4:14 AM, <ncrfgs@tin.it> wrote:
Show 10 quoted lines
> Let's say we are at commit #3000, I have this content I want to start a > new project from, which has been put in three different files: > > path1/filename1 from commit 1 to commit 1000 > path2/filename1 from commit 1001 to commit 2000 > path2/filename2 from commit 2001 to commit 3000 > > In the meanwhile path1/filename1 has been created on commit 2500 with > path1/filename1 having nothing to do with the new project I'd like to > start.
<snip>
Show 5 quoted lines
> My first idea to accomplish what I'd like to do, was to use the ouput of > `git-log -p --follow path2/filename2` with another git command; on > #git@freenode I've been suggested to use git-clone and > git-filter-branch. >
It would seem that this is a valid use-case for a properly working "git log --follow", yes?
-- Cheers, Sverre Rabbelier