Re: git-bpush: Pushing to a bundle
- From
- Santi Béjar <santi@agolina.net>
- Date
- Dec 9, 2008, 10:21 UTC
- Message-ID
- <adf1fd3d0812090221t2264a4f9i87b5e23be897ee84@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.1.00.0812091100470.2916@eeepc-johanness>
First, thanks for the comments.
2008/12/9 Johannes Schindelin <Johannes.Schindelin@gmx.de>:
Show 12 quoted lines
> Hi, > > On Tue, 9 Dec 2008, Santi Béjar wrote: > >> 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.
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.
> 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.
Show 5 quoted lines
>> 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?"
I don't have problems either way, I'll change to follow Git's conventions.
Show 6 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.
> > 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).
I've tried to catch errors, but maybe not enough.
Santi