我希望能够查询git并输出标记版本之间的更改列表,以创建简单的发行说明。
我已经回顾性地在我的git repo中为提交添加了标签,并将这些标签推送到原点。但是现在当我尝试列出标签之间的提交时,结果是不正确的。
这是我的日志:
$ git log --pretty=oneline --decorate
8f326b8ac5dc4ae5d1e9097d91ef460a39e9bda2 (HEAD, tag: 1.1.65, origin/master, origin/HEAD, master) following fixes done
aef34c6dec4890384ca5fd318988d14a5b7af327 chat Input Field to have padding from the left....
adbad9b9aa74bb9664521780adb50272181eca23 changed setting name from LogEntries to Live Log
58476d5f72abe603c2b0ec3bf54a40a82fbafb90 Merge branch 'master' of ssh://github.com/fezzee/FezzeeIOS
77f3d951a3ad7099667b98dd1622279da5fc8c3d prevent legacy setting lock in, remove 2 observers when view is unloaded, possible better test in
ed48862949890604b044e4cf20bc6bcff4a8674a Merge branch 'master' of ssh://github.com/fezzee/FezzeeIOS
07bf561ef4eb55fddd732d796a0014aa8d992df8 (tag: 1.1.64) Fixed Issues:
e3119c296b4b2df91eec035cbd05f256f86a2150 Put username (friendly name) UNDER Avatar in scrolling area, rather than next to it
25cb2fcf57915b417d9f8404f1eca9c44704245d Merge branch 'master' of ssh://github.com/fezzee/FezzeeIOS
5bd194a9ade3cfc172e218c43b398ebe9bce7126 version v1.1.62
2910fd959e7273943461986328b60b4b40b5e08c (tag: 1.1.63) following issues are completed
4893a19ad4cc2c9e4a4a89ec561a194506349974 Merge branch 'master' of https://github.com/fezzee/FezzeeIOS
43dda4ed132e6f748e02f6a2ad3ff1b1d4870566 Following Issues Fixed:-
ac8e14dc810c85ddab09e25a3efdc3c7b1cc8ff5 fixed merge conflict
090c3f3d99df70df25e5d54d96192b58e805a619 (tag: 1.1.62) Pull letest
0d2b5bc1e247ea4f9eef247fb6e24d4bf1e48948 Inform user about phone number on which activation code has been sent
8d1e4688149accc8d183bb74c6a21f61f37f3497 Artist image is not updated in app, when changes to the image have been made in JSON and downloade
61b90f31254a3bdcc7508b6bcfe73d02d181f3eb some Ui changes On boarding And pull latest update
c90c963592cd3fe9f86333df991083d7ab444ebb (tag: 1.1.60/61) Merge branch 'master' of https://github.com/fezzee/FezzeeIOS
f63df18631f9020f8775ed9259d99e84fb46cccb add booked acts on an "undefined stage" but have them displayed in the artists list
418ff451d236ba5abf5fb904cfed9a601e4489ef Merge branch 'master' of ssh://github.com/fezzee/FezzeeIOS
a8d025d86819c152c577340eb2d4ee8924890ccc v1.1.59
:
如果我接着(包括)标签之间的提交,则结果不匹配:
$ git log --pretty=oneline --decorate 1.1.64^..1.1.65
8f326b8ac5dc4ae5d1e9097d91ef460a39e9bda2 (HEAD, tag: 1.1.65, origin/master, origin/HEAD, master) following fixes done
aef34c6dec4890384ca5fd318988d14a5b7af327 chat Input Field to have padding from the left....
adbad9b9aa74bb9664521780adb50272181eca23 changed setting name from LogEntries to Live Log
58476d5f72abe603c2b0ec3bf54a40a82fbafb90 Merge branch 'master' of ssh://github.com/fezzee/FezzeeIOS
77f3d951a3ad7099667b98dd1622279da5fc8c3d prevent legacy setting lock in, remove 2 observers when view is unloaded, possible better test in
ed48862949890604b044e4cf20bc6bcff4a8674a Merge branch 'master' of ssh://github.com/fezzee/FezzeeIOS
07bf561ef4eb55fddd732d796a0014aa8d992df8 (tag: 1.1.64) Fixed Issues:
25cb2fcf57915b417d9f8404f1eca9c44704245d Merge branch 'master' of ssh://github.com/fezzee/FezzeeIOS
5bd194a9ade3cfc172e218c43b398ebe9bce7126 v1.1.62
ac8e14dc810c85ddab09e25a3efdc3c7b1cc8ff5 fixed merge conflict
418ff451d236ba5abf5fb904cfed9a601e4489ef Merge branch 'master' of ssh://github.com/fezzee/FezzeeIOS
a8d025d86819c152c577340eb2d4ee8924890ccc v1.1.59
我在期待:
8f326b8ac5dc4ae5d1e9097d91ef460a39e9bda2 (HEAD, tag: 1.1.65, origin/master, origin/HEAD, master) following fixes done
aef34c6dec4890384ca5fd318988d14a5b7af327 chat Input Field to have padding from the left....
adbad9b9aa74bb9664521780adb50272181eca23 changed setting name from LogEntries to Live Log
58476d5f72abe603c2b0ec3bf54a40a82fbafb90 Merge branch 'master' of ssh://github.com/fezzee/FezzeeIOS
77f3d951a3ad7099667b98dd1622279da5fc8c3d prevent legacy setting lock in, remove 2 observers when view is unloaded, possible better test in
ed48862949890604b044e4cf20bc6bcff4a8674a Merge branch 'master' of ssh://github.com/fezzee/FezzeeIOS
07bf561ef4eb55fddd732d796a0014aa8d992df8 (tag: 1.1.64) Fixed Issues:
任何人都可以解释这种行为吗?
有人建议创建简单更改日志的方法比使用下面的命令行更好吗?
git log --pretty = oneline --decorate 1.1.64 ^ .. 1.1.65
答案 0 :(得分:0)
来自Nevik Rehnel的评论暗示我需要做些什么才能从我的git评论中创建相关的发行说明;忽略与合并相关的评论。
我用:
git log --no-merges --decorate x.x.xx^..x.x.xx
然后我复制最后一条评论的所有内容,这是之前的标记。我只包括它以确保包含所有评论。
我希望这对其他人有用。我已经使用了几个月了。