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..