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

Re: import files w/ history

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Mar 6, 2009, 15:33 UTC
Message-ID
<20090306153313.GL4371@genesis.frugalware.org>
In-Reply-To
<slrngr299k.1t4t.csaba-ml@beastie.creo.hu>
On Fri, Mar 06, 2009 at 01:29:38PM +0000, Csaba Henk <csaba-ml@creo.hu> wrote:
Show 7 quoted lines
> $ git filter-branch --commit-filter '
>    if [ $# -lt 3 ] || git diff --stat $3 $1 | grep -q 'sys/dev/disk/vn/vn\.c'
>    then
>      git commit-tree "$@"
>    else
>      skip_commit "$@"
>    fi' HEAD

Did you notice --subdirectory-filter? Maybe it would be more efficient to run --subdirectory-filter sys/dev/disk/vn first, then you can play with the resulting small repo to suit your needs. :)

Previous: Csaba HenkNext: Jeff King
Message 4 of 8 in “import files w/ history”
  1. Csaba HenkMar 3, 2009
  2. Jeff KingMar 3, 2009
  3. Csaba HenkMar 6, 2009
  4. Miklos VajnaMar 6, 2009
  5. Jeff KingMar 8, 2009
  6. Csaba HenkMar 9, 2009
  7. Jeff KingMar 10, 2009
  8. Csaba HenkMar 11, 2009

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.