Chinaunix首页 | 论坛 | 博客
  • 博客访问: 398593
  • 博文数量: 74
  • 博客积分: 2088
  • 博客等级: 大尉
  • 技术积分: 703
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-22 13:04
文章分类

全部博文(74)

文章存档

2013年(1)

2012年(9)

2011年(57)

2010年(6)

2008年(1)

分类: LINUX

2011-06-27 14:38:36

怎么列出tag的历史?
(02:18:40 PM) Samuel: git log --decorate=short --oneline|grep "(tag:" | head
(02:18:48 PM) Samuel: is it what you need ?
(02:19:00 PM) Samuel: git log --decorate=short --oneline|grep "(tag:" | more
(02:19:02 PM) Samuel: actually
(02:19:16 PM) Samuel: it works here
(02:19:38 PM) Samuel: --decorate=short gives tag information in git log
(02:19:43 PM) haoran: oh
(02:19:54 PM) Samuel: --oneline gives only one line (commitid commitlog tags)
(02:20:16 PM) haoran: yes
(02:20:31 PM) Samuel: you can add to your ~/.gitconfig file:
(02:20:32 PM) Samuel: [log] decorate = short
(02:20:35 PM) Samuel: sorry
(02:20:36 PM) Samuel: [log]
(02:20:42 PM) Samuel: decorate = short
(02:21:06 PM) Samuel: so then you do "git log --oneline|grep "(tag:" | more"
(02:21:30 PM) Samuel: is it working on your side ?
(02:21:54 PM) haoran: yes
(02:22:17 PM) haoran: do you know the git tag -l patten
(02:22:31 PM) haoran: how to use the patten?
(02:23:11 PM) haoran: I do not find the doc about this part
(02:23:20 PM) haoran: by man git-tag
(02:23:38 PM) Samuel: pattern = regexp
(02:23:54 PM) Samuel: git tag -l snapgear* | head -n 2
(02:23:55 PM) Samuel: snapgear-v1.0
(02:23:55 PM) Samuel: snapgear-v1.1
(02:24:21 PM) haoran: so this kind of command can not resove the issue I met
(02:24:32 PM) haoran: :)
(02:25:09 PM) haoran: I think git tag should support the function to list all the tag by historoy
(02:25:50 PM) Samuel: well, git log does the job already, so...
(02:26:49 PM) haoran: yes,but this function seems more likely to belong to git tag XXXXX
(02:27:08 PM) haoran: maybe just my own oppinion
(02:27:20 PM) haoran: thank you all the same
(02:29:05 PM) Samuel: you're welcome

学一个单词 decorate (装饰美化)
dec 都差不多 dec 十 体面(引申义)

阅读(1491) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~