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

Re: git-bpush: Pushing to a bundle

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 9, 2008, 17:32 UTC
Message-ID
<7voczl45lp.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<adf1fd3d0812090221t2264a4f9i87b5e23be897ee84@mail.gmail.com>
"Santi Béjar" <santi@agolina.net> writes:
Show 5 quoted lines
> I do not find convenient strictly incremental bundles, because then
> you (or the other people) needs to fetch every single bundle. What I
> do is add new objects until the bundle is too big and then create a
> bundle with a new base. This way you don't have to worry if the other
> person has applied the last bundle or not.

You both have good points. I sort of tend to side with your argument from convenience point of view, if only because that resembles the way how people traditionally arrange incremental backups "a full dump on Sunday night, and every day incremental relative to the last full dump". Dscho's suggestion is akin to "a full dump on Sunday night, and every day incremental relative to the previous day". Both form obviously can recreate the same contents, but often "incremental since the last full synchronization point", even though it may make bigger dumps, is easier to handle for humans.

Show 9 quoted lines
>>  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?"
Now I see you are improving ;-)
Show 7 quoted lines
>>> while [ $# != 0 ] ; do
>>>     refs="$refs$LF$1" && shift
>>> done
>>
>> That is equivalent to refs="$*", no?
>
> Almost, IFS is set to line-feed so I needed to put $LF instead of spaces.

If $IFS is set to LF, "$*" will be $1, $2, $3 concatenated with LF in between. The first character in $IFS is used for that purpose..

Previous: Santi BéjarNext: Santi Béjar
Message 4 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.