git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
SRSverre 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
Previous: ncrfgs@tin.it
Message 7 of 7 in “making a branch with just one file and keeping its whole history”
  1. ncrfgs@tin.itJul 21, 2008
  2. Eric RaibleJul 21, 2008
  3. Johannes SchindelinJul 21, 2008
  4. Eric RaibleJul 21, 2008
  5. Johannes SchindelinJul 21, 2008
  6. extracting the history of a single file as a new project [Was: Re: making a branch with just one file and keeping its whole]ncrfgs@tin.it, Jul 22, 2008
  7. Sverre RabbelierJul 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.