有沒有辦法只在git中看到我的標籤?我試過git tag --author="XXX"
,但那不行。我也找不到任何東西on the documentation。git標籤:只顯示我的標籤?
背景:這是一個後續問題:Git: History of commits I have *checked out* since init/cloning
有沒有辦法只在git中看到我的標籤?我試過git tag --author="XXX"
,但那不行。我也找不到任何東西on the documentation。git標籤:只顯示我的標籤?
背景:這是一個後續問題:Git: History of commits I have *checked out* since init/cloning
git tag -l
git tag --list
應該做的所有的標籤。但是一個標籤的重量很輕,所以它不會存儲誰製作的。
不是真的,除非您以某種方式簽署或註釋標籤。但是,您可能希望製作不存儲在refs/tags/
下的「特殊」標籤。有些系統爲此做了瞬變標記 - gerrit是我所知道的,它創建了'refs/for /'和'refs/changes /'引用。您可以通過下裁判建立在其他目錄裁判文件做到這一點:
$ git update-ref refs/special/first HEAD~4
$ git update-ref refs/special/second HEAD~2
$ git tag | grep first
<nothing returned -- shows these are not tags>
$ $ git log --oneline -n 2 special/first
7c1d983 Merge branch 'pt/tcltk8513' into devel
73cdc1e Merge pull request #72 from pointoforder/devel
<it works!>
而且 - 這些做gitk或git log --decorate
露面。例如:
$ git log --graph --oneline --abbrev-commit --decorate -n10
* 53e28dd (HEAD, origin/master, master) Installer: Continue the idea of d5f2
* 0433db0 shell prompt should not beep and only show MSYSTEM when non-standa
* 947ccf6 (refs/special/second) Merge branch 'devel' of
|\
| * 759a59f Bash PS1: Correctly enclose nonprintable sections
| * 4e4e3f3 Bash PS1: Split up PS1 into small components
| * 707197e Bash PS1: refactor code for better readability
* | 6bf64a4 Replace 'devel' with 'master'
* | 7c1d983 (refs/special/first) Merge branch 'pt/tcltk8513' into devel
|\ \
| * | cc9382f (pt/tcltk8513) Update tk to version 8.5.13
| * | 31fbf2c Update tcl to version 8.5.13
所以,你可以創建一些別名,使這些對你有用,簡單易用。
帶註釋的標籤不是輕量級的,應該有他正在尋找的信息,所以這些應該存儲作者。 OP可能不知道他在用哪個。 –
是真的。儘管我不認爲git可以爲您提供功能來輕鬆過濾作者的標籤列表。 –
不,他們不。我猜想像grep或甚至可能是python/perl會更好,但實際上需要找到標籤的相關文件。 –