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

Re: [PATCH/RFC] Created git-basis and modified git-bundle to accept --stdin.

From
ABAdam Brewster <adam@adambrewster.com>
Date
Jun 24, 2008, 15:30 UTC
Message-ID
<c376da900806240830p2a48aff0uaf6f22372fead5ef@mail.gmail.com>
In-Reply-To
<m3iqvzl091.fsf@localhost.localdomain>
Show 9 quoted lines
>> Git-basis is a perl script that remembers bases for use by git-bundle.
>> Code from rev-parse was borrowed to allow git-bundle to handle --stdin.
>
> I'd rather you follow git-pack-objects, and use `--revs` for the name
> of this option (or even '--not --revs').  The name `--stdin` might
> imply that you are providing objects names on stdin of git-bundle.
>
> But perhaps I am worrying over nothing.
>
This seems like a fine idea.
Show 9 quoted lines
> [...]
>> Then you can add the objects in the bundle to the basis, so they won't
>> get included in the next pack like this:
>>
>>  $ git-basis --update my-basis < my-bundle
>
> Why not use "$(git ls-remote my-bundle)" somewhere in the invocation
> creating new bundle instead?
>

You could use "git ls-remote my-bundle | git-basis --update my-basis" to do the same thing as the command I gave above.

Show 6 quoted lines
>> I'm sure that my implementation is crap, but I think this is a useful
>> idea.  Anybody agree?  Disagree?
>
> Documentation, please?  Especially that it looks like '--stdin' option
> is a bit tricky...
>

I wanted to test the waters and make sure that someone was at least vaguely interested in this (no need to document code that is never going to leave my machine).

I'll prepare another patch with documentation and changing --stdin to --revs when I get a chance.

Thank you, Adam Brewster

Previous: Jakub NarebskiNext: Jakub Narebski
Message 3 of 6 in “Created git-basis and modified git-bundle to accept --stdin.”
  1. Created git-basis and modified git-bundle to accept --stdin.Adam Brewster, Jun 24, 2008
  2. Jakub NarebskiJun 24, 2008
  3. Adam BrewsterJun 24, 2008
  4. Jakub NarebskiJun 24, 2008
  5. Jakub NarebskiJun 25, 2008
  6. Adam BrewsterJun 25, 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.