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

Re: git-bpush: Pushing to a bundle

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 9, 2008, 10:07 UTC
Message-ID
<alpine.DEB.1.00.0812091100470.2916@eeepc-johanness>
In-Reply-To
<adf1fd3d0812090149m158fcb9as15bacce58c61a1a3@mail.gmail.com>
Hi,
On Tue, 9 Dec 2008, Santi Béjar wrote:
Show 5 quoted lines
> The basic idea is:
> 
> - Easily create bundles with the current branch.
> - Be able to push to defined bundles in remote.<remote>.url
> - Only add new objects by default (do not lose objects)

That is probably not what people need. Usually, when bundles are sent around, you need _incremental_ bundles. IOW if you already have a bundle, you want to create a new bundle that contains everything that is new, _in addition_ to the existing bundle.

> while [ $# != 0 ] ; do

Heh, I did not realize just how _used_ I got to the conventions in Git's shell programming, until I thought "Should this not use 'test' instead of brackets?"

> while [ $# != 0 ] ; do
>     refs="$refs$LF$1" && shift
> done
That is equivalent to refs="$*", no?

Anyway, I found reading your shell script quite hard, because of excessive use of brackets and single line && chains (which lack proper error handling, BTW).

Ciao, Dscho

Previous: Santi BéjarNext: Santi Béjar
Message 2 of 5 in “git-bpush: Pushing to a bundle”
  1. Santi BéjarDec 9, 2008
  2. Johannes SchindelinDec 9, 2008
  3. Santi BéjarDec 9, 2008
  4. Junio C HamanoDec 9, 2008
  5. Santi BéjarDec 9, 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.