Re: Re: Unify annotated and non-annotated tags

2017-12-24 Thread Philip Oakley
From: "anatoly techtonik" From: Philip Oakley > So if I understand correctly, the hope is that `git show-ref --tags` > could > get an alternate option `--all-tags` [proper option name required...] > such > that the user would not have to develop the rather over the complicated > expression th

Re: Re: Unify annotated and non-annotated tags

2017-12-23 Thread anatoly techtonik
t; wrote: >>> >>> On Thu, Nov 23, 2017 at 6:08 PM, Randall S. Becker >>> wrote: >>>> >>>> On 2017-11-23 02:31 (GMT-05:00) anatoly techtonik wrote >>>>> >>>>> Subject: Re: Unify annotated and non-annotated tags >>>

Re: Unify annotated and non-annotated tags

2017-12-23 Thread anatoly techtonik
On Sat, Nov 11, 2017 at 5:06 AM, Junio C Hamano wrote: > Igor Djordjevic writes: > >> If you would like to mimic output of "git show-ref", repeating >> commits for each tag pointing to it and showing full tag name as >> well, you could do something like this, for example: >> >> for tag in $

Re: Unify annotated and non-annotated tags

2017-12-02 Thread Junio C Hamano
anatoly techtonik writes: >> Git is not doomed to preserve anything forever. We've gradually broken >> backwards compatibility for a few core things like these. >> >> However, just as a bystander reading this thread I haven't seen any >> compelling reason for why these should be removed. You init

Re: Re: Unify annotated and non-annotated tags

2017-12-02 Thread Philip Oakley
onik wrote Subject: Re: Unify annotated and non-annotated tags On Sat, Nov 11, 2017 at 5:06 AM, Junio C Hamano wrote: Igor Djordjevic writes: If you would like to mimic output of "git show-ref", repeating commits for each tag pointing to it and showing full tag name as well, you cou

Re: Re: Unify annotated and non-annotated tags

2017-12-02 Thread anatoly techtonik
On Fri, Nov 24, 2017 at 1:24 PM, Ævar Arnfjörð Bjarmason wrote: > On Fri, Nov 24, 2017 at 10:52 AM, anatoly techtonik > wrote: >> On Thu, Nov 23, 2017 at 6:08 PM, Randall S. Becker >> wrote: >>> On 2017-11-23 02:31 (GMT-05:00) anatoly techtonik wrote >>>&

RE: Re: Unify annotated and non-annotated tags

2017-11-24 Thread Randall S. Becker
On November 24, 2017 4:52 AM anatoly techtonik wrote: >On Thu, Nov 23, 2017 at 6:08 PM, Randall S. Becker >wrote: >> On 2017-11-23 02:31 (GMT-05:00) anatoly techtonik wrote >>>Subject: Re: Unify annotated and non-annotated tags On Sat, Nov 11, >>>2017 at

Re: Re: Unify annotated and non-annotated tags

2017-11-24 Thread Ævar Arnfjörð Bjarmason
On Fri, Nov 24, 2017 at 10:52 AM, anatoly techtonik wrote: > On Thu, Nov 23, 2017 at 6:08 PM, Randall S. Becker > wrote: >> On 2017-11-23 02:31 (GMT-05:00) anatoly techtonik wrote >>>Subject: Re: Unify annotated and non-annotated tags >>>On Sat, Nov 11, 2017 at

Re: Re: Unify annotated and non-annotated tags

2017-11-24 Thread anatoly techtonik
On Thu, Nov 23, 2017 at 6:08 PM, Randall S. Becker wrote: > On 2017-11-23 02:31 (GMT-05:00) anatoly techtonik wrote >>Subject: Re: Unify annotated and non-annotated tags >>On Sat, Nov 11, 2017 at 5:06 AM, Junio C Hamano wrote: >>> Igor Djordjevic writes: >>>

Re: Unify annotated and non-annotated tags

2017-11-23 Thread Thomas Braun
Am 23.11.2017 um 16:08 schrieb Randall S. Becker: [...] >> So my proposal is to get rid of non-annotated tags, so to get all >> tags with commits that they point to, one would use: >> git for-each-ref --format='%(*objectname) %(refname)' refs/tags> >> For so-called non-annotated tags just leave t

RE: Re: Unify annotated and non-annotated tags

2017-11-23 Thread Randall S. Becker
On 2017-11-23 02:31 (GMT-05:00) anatoly techtonik wrote >Subject: Re: Unify annotated and non-annotated tags >On Sat, Nov 11, 2017 at 5:06 AM, Junio C Hamano wrote: >> Igor Djordjevic writes: >> >>> If you would like to mimic output of "git show-ref", repeat

Re: Unify annotated and non-annotated tags

2017-11-22 Thread anatoly techtonik
On Sat, Nov 11, 2017 at 5:06 AM, Junio C Hamano wrote: > Igor Djordjevic writes: > >> If you would like to mimic output of "git show-ref", repeating >> commits for each tag pointing to it and showing full tag name as >> well, you could do something like this, for example: >> >> for tag in $

Re: Unify annotated and non-annotated tags

2017-11-10 Thread Igor Djordjevic
On 11/11/2017 03:06, Junio C Hamano wrote: > Igor Djordjevic writes: > >> If you would like to mimic output of "git show-ref", repeating >> commits for each tag pointing to it and showing full tag name as >> well, you could do something like this, for example: >> >> for tag in $(git for-e

Re: Unify annotated and non-annotated tags

2017-11-10 Thread Junio C Hamano
Igor Djordjevic writes: > If you would like to mimic output of "git show-ref", repeating > commits for each tag pointing to it and showing full tag name as > well, you could do something like this, for example: > > for tag in $(git for-each-ref --format="%(refname)" refs/tags) > do

Re: Unify annotated and non-annotated tags

2017-11-10 Thread Igor Djordjevic
Hi Anatoly, On 10/11/2017 11:58, anatoly techtonik wrote: > It is hard to work with Git tags, because on low level hash > of non-annotated tag is pointing to commit, but hash for > annotated tag is pointing to tag metadata. > > On low level that means that there is no way to get commit > hash fro

Unify annotated and non-annotated tags

2017-11-10 Thread anatoly techtonik
Hi, It is hard to work with Git tags, because on low level hash of non-annotated tag is pointing to commit, but hash for annotated tag is pointing to tag metadata. On low level that means that there is no way to get commit hash from tag in a single step. If tag is annotated, you need to find and