* git bundle bug?
@ 2010-07-26 6:45 SungHyun Nam
2010-07-26 6:55 ` Avery Pennarun
2010-07-26 7:29 ` bash completion for 'git version'? (Re: git bundle bug?) SungHyun Nam
0 siblings, 2 replies; 4+ messages in thread
From: SungHyun Nam @ 2010-07-26 6:45 UTC (permalink / raw)
To: git
Hello,
In a current 'git' source tree, next command does not includes
refs/tags/v1.7.2.
$ git bundle create ~/git.bundle v1.7.1..master
After applying the git.bundle, now 'git version' does not
show 1.7.2, but...
$ git version
git version 1.7.1.772.g64fdc
I hope the 'git bundle' includes all the tags when I use 'master'
or 'HEAD'.
Well, I could use v1.7.1..v1.7.2. But want to use simple script like:
$ git bundle create ~/git.bundle lastbundle..master
$ git tag -f lastbundle master
Thanks,
namsh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git bundle bug?
2010-07-26 6:45 git bundle bug? SungHyun Nam
@ 2010-07-26 6:55 ` Avery Pennarun
2010-07-26 7:25 ` SungHyun Nam
2010-07-26 7:29 ` bash completion for 'git version'? (Re: git bundle bug?) SungHyun Nam
1 sibling, 1 reply; 4+ messages in thread
From: Avery Pennarun @ 2010-07-26 6:55 UTC (permalink / raw)
To: SungHyun Nam; +Cc: git
On Mon, Jul 26, 2010 at 2:45 AM, SungHyun Nam <goweol@gmail.com> wrote:
> In a current 'git' source tree, next command does not includes
> refs/tags/v1.7.2.
> $ git bundle create ~/git.bundle v1.7.1..master
>
> After applying the git.bundle, now 'git version' does not
> show 1.7.2, but...
> $ git version
> git version 1.7.1.772.g64fdc
'git bundle' only includes the tags that you specifically tell it to.
It's kind of like 'git push' that way. If you do:
git tag -s mytag
git push origin master
You don't expect origin to contain 'mytag' just because you pushed 'master'.
> I hope the 'git bundle' includes all the tags when I use 'master'
> or 'HEAD'.
>
> Well, I could use v1.7.1..v1.7.2. But want to use simple script like:
> $ git bundle create ~/git.bundle lastbundle..master
> $ git tag -f lastbundle master
That kind of magic would require 'git bundle' to look at all your tags
and see which ones lie in the range lastbundle..master. And even that
isn't perfect, since you might have added a new tag that points before
lastbundle but was added *after* lastbundle. So every bundle you
created would need to include *all* your previous tags.
Nevertheless, if you wanted to create a bundle that includes *all*
your tags, but not any of the objects leading up to lastbundle, this
works:
git bundle create ~/git.bundle --tags lastbundle..master
Note however that it will include tags even if they *aren't* part of
master. That is, if you have tags pointing at branch 'next', all the
objects for those tags will *also* be included.
Have fun,
Avery
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git bundle bug?
2010-07-26 6:55 ` Avery Pennarun
@ 2010-07-26 7:25 ` SungHyun Nam
0 siblings, 0 replies; 4+ messages in thread
From: SungHyun Nam @ 2010-07-26 7:25 UTC (permalink / raw)
To: Avery Pennarun; +Cc: git
Avery Pennarun wrote:
> On Mon, Jul 26, 2010 at 2:45 AM, SungHyun Nam<goweol@gmail.com> wrote:
>> In a current 'git' source tree, next command does not includes
>> refs/tags/v1.7.2.
>> $ git bundle create ~/git.bundle v1.7.1..master
>>
>> After applying the git.bundle, now 'git version' does not
>> show 1.7.2, but...
>> $ git version
>> git version 1.7.1.772.g64fdc
>
> 'git bundle' only includes the tags that you specifically tell it to.
> It's kind of like 'git push' that way. If you do:
>
> git tag -s mytag
> git push origin master
>
> You don't expect origin to contain 'mytag' just because you pushed 'master'.
>
>> I hope the 'git bundle' includes all the tags when I use 'master'
>> or 'HEAD'.
>>
>> Well, I could use v1.7.1..v1.7.2. But want to use simple script like:
>> $ git bundle create ~/git.bundle lastbundle..master
>> $ git tag -f lastbundle master
>
> That kind of magic would require 'git bundle' to look at all your tags
> and see which ones lie in the range lastbundle..master. And even that
> isn't perfect, since you might have added a new tag that points before
> lastbundle but was added *after* lastbundle. So every bundle you
> created would need to include *all* your previous tags.
>
> Nevertheless, if you wanted to create a bundle that includes *all*
> your tags, but not any of the objects leading up to lastbundle, this
> works:
>
> git bundle create ~/git.bundle --tags lastbundle..master
It worked fine with:
git pull ~/git.bundle --tags master:master
> Note however that it will include tags even if they *aren't* part of
> master. That is, if you have tags pointing at branch 'next', all the
> objects for those tags will *also* be included.
>
> Have fun,
>
> Avery
Thanks,
namsh
^ permalink raw reply [flat|nested] 4+ messages in thread
* bash completion for 'git version'? (Re: git bundle bug?)
2010-07-26 6:45 git bundle bug? SungHyun Nam
2010-07-26 6:55 ` Avery Pennarun
@ 2010-07-26 7:29 ` SungHyun Nam
1 sibling, 0 replies; 4+ messages in thread
From: SungHyun Nam @ 2010-07-26 7:29 UTC (permalink / raw)
Cc: git
SungHyun Nam wrote:
>
> $ git version
> git version 1.7.1.772.g64fdc
I prefer 'git version' instead of 'git --version'.
But 'git ver<tab>' does not expand, though the 'git --ver<tab>' does.
Regards,
namsh
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-26 7:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-26 6:45 git bundle bug? SungHyun Nam
2010-07-26 6:55 ` Avery Pennarun
2010-07-26 7:25 ` SungHyun Nam
2010-07-26 7:29 ` bash completion for 'git version'? (Re: git bundle bug?) SungHyun Nam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).