Thread (10 messages) flat view 10 messages, 4 authors, 2016-06-15

Re: tags and patches

From: Geoff Russell <hidden>
Date: 2016-06-15 22:43:16

On 6/13/07, Pierre Habouzit [off-list ref] wrote:
On Wed, Jun 13, 2007 at 08:22:23PM +0930, Geoff Russell wrote:
quoted
Dear gits,

(I'm on 1.5.0.5)

The last tag made seems to be missing from a patch ... eg.

       cd ~ ; mkdir myrepo ; cd myrepo
       git init-db ; echo STUFF > xxx ; git add xxx
       # work, work, work on xxx
       git commit -a
       git tag v1.0
       # work work work on xxx
       # then I clone this repository
       cd /tmp ; git clone ~/myrepo newmyrepo
       # go back and work some more
       cd ~/myrepo
       echo YYY >>xxx
       git commit -a
       git tag v1.1
       # is git commit -a required to commit the tag???
       git format-patch v1.0
       cd /tmp/newmyrepo
       git am ~/myrepo/THEPATCHNAME
       git tag ls
  git tag ls is not the proper way to list tags. Afaict there isn't any
yet, except: ls .git/refs/tags/

  git tag ls just tagged your HEAD with the name 'ls' which is obviously
not what you meant :)
Ooops. Yes, I meant "git tag -l" as the last command, which lists the tags,
but doesn't list v1.1.

Geoff.
--
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help