[setup] Makefile.am patches
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Feb 18 16:03:00 GMT 2015
On Feb 18 08:55, Eric Blake wrote:
> On 02/18/2015 08:44 AM, Corinna Vinschen wrote:
>
> >>
> >> I inspected your code and played around with git-tag and git-describe
> >> so it's ok.
> >
> > While tagging for the next release, I noticed this:
> >
> > $ git describe
> > release_2.869-14-g10cac83
> >
> > $ git describe --match release_\* --abbrev=6 HEAD
> > release_2.869-14-g10cac8
> >
> > See the missing 3? Shouldn't that be --abbrev=7 in the Makefile?
>
> --abbrev defaults to 7 unless specified; it can be as short as 4. Git
> guarantees that it will output something unambiguous at the time you do
> the describe (so even if you request --abbrev=4, it may output 5 or 6
> characters if 4 was ambiguous). The probability of a collision is
> higher at 4 than at 7 (when using --abbrev=4, I often see longer
> entries; with --abbrev=7, I've occasionally seen an 8-character entry,
> but it is much rarer). The problem here is that something that is NOT
> ambiguous right now might BECOME ambiguous in the future (that is, 4
> characters may describe a commit now, but then collide with a future
> commit and become ambiguous), so I agree that relying on the default of
> 7 (or omitting --abbrev from the Makefile altogether) is a safer bet to
> avoid future collisions.
Ok, thanks for the explanation.
> > Next problem is this. I just generated the annotation tag
> > "release_2.870". Now what? Do I have to push? Or how do I get this
> > into the repo on sware? git status tells me
> >
> > On branch master
> > Your branch is up-to-date with 'origin/master'.
> > nothing to commit, working directory clean
>
> git push --tag release_2.870
That didn't work. I now figured out that
git push origin tag release_2.870
works. Yay.
> > Git is puzzeling...
>
> Yeah, it's a hefty learning curve. But once you get past that point,
> you wonder how you ever survived on CVS.
I'm rather ambiguous to this one yet...
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20150218/22e2b5ea/attachment.sig>
More information about the Cygwin-apps
mailing list