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

Re: Tracking a repository for content instead of history

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Dec 12, 2006, 21:46 UTC
Message-ID
<fcaeb9bf0612121346s3c82bcdbh522c17f4ae9f279b@mail.gmail.com>
In-Reply-To
<200612121538.41197.andyparkins@gmail.com>
On 12/12/06, Andy Parkins <andyparkins@gmail.com> wrote:
Show 23 quoted lines
> I suppose so; but I was thinking more an automated way of getting the data
> that is supplied for the kernel anyway.  So:
>
> base-v1.0.0.tar.gz
> patch-v1.0.1.gz
> patch-v1.0.2.gz
> etc
>
> Each patch is obviously smaller than "base".  Git could easily make the
> patches, and each of those patches could be fed by hand into a repository
> with git-apply.  It doesn't seem like something that would require support on
> the other side, because it isn't so much a shallow clone (which /would/
> preserve history, making it available if wanted); it is pulling just, say,
> tagged commits out of an existing repository.
>
> Given a list of tags it is almost:
>
> git-archive <get me base>
> ssh remote git-diff v1.0.0..v1.0.1 | git-apply; git commit
> ssh remote git-diff v1.0.1..v1.0.2 | git-apply; git commit
>
> If that makes sense?  Obviously though it would be possible to use git rather
> than ssh to do this.
Hm.. I'm no git:// expert. But is it possible doing as follow?
1. git-archive <base>
2. reconstruct commit, blobs and trees from the archive
3. tell git server that you have one commit, you need another commit
(maybe heads only, i'm not sure here)
4. get the pack from git server, create new commit and a diff
Previous: Johannes SchindelinNext: Nguyen Thai Ngoc Duy
Message 8 of 10 in “Tracking a repository for content instead of history”
  1. Andy ParkinsDec 12, 2006
  2. Jakub NarebskiDec 12, 2006
  3. Andy ParkinsDec 12, 2006
  4. Johannes SchindelinDec 12, 2006
  5. Andy ParkinsDec 12, 2006
  6. Johannes SchindelinDec 12, 2006
  7. Johannes SchindelinDec 12, 2006
  8. Nguyen Thai Ngoc DuyDec 12, 2006
  9. Nguyen Thai Ngoc DuyDec 12, 2006
  10. Johannes SchindelinDec 12, 2006

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.