Re: Wishlist for a bundle-only transport mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jakub Narebski <jnareb@xxxxxxxxx> writes:

> On Thu, 22 Nov 2007, Junio C Hamano :
>> "Santi Béjar" <sbejar@xxxxxxxxx> writes:
>> 
>>> Sorry but I do not understand this. I think this two lines could be equivalent:
>>>
>>> git push --bundle bundle.bdl "refs/heads/master:refs/remotes/bundle/master"
>>> git bundle create bundle.bdl refs/heads/master ^refs/remotes/bundle/master
>> 
>> Interesting.
>> 
>> 	$ git push $something ours:theirs
>> 
>> has defined semantics for any value of $something.
>> ...
>> If bundle.bdl does not exist yet, it is like pushing into a
>> freshly initialized empty repository.
>
> But for that I think "git bundle" should learn new subcommand:
> "git bundle update", which would use refs existing in given
> bundle as prerequisites, and either update bundle (create anew
> or just concatenate next pack) or create incremental bundle.
>
> Something similar to incremental mode or update command of
> archivers...

I was disagreeing with Santi's "'push --bundle' and 'bundle
create' can be equivalent".  They can't be, as "push" is always
"update" and never "create".  So I do not quite get your "But for
that I think"; I think you are just agreeing with me.

Even if we taught "push" to create (which I doubt would happen
due to its security and administrative implications), it would
not make the two any closer to being equivalent.  For them to
become equivalent, we would need to have "push" unlearn how to
update, which would never happen ;-).
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux