0

git で自分のタグのみを表示する方法はありますか?

で試しましgit tag --author="XXX"たが、うまくいきません。ドキュメントにも何も見つかりませんでした。

背景: これはフォローアップの質問です: Git: 初期化/クローン作成以降に *チェックアウト* したコミットの履歴

4

2 に答える 2

1

なんらかの方法でタグに署名または注釈を付けない限り、そうではありません。ただし、 に保存されない「特別な」タグを作成することもできますrefs/tags/。一部のシステムは、物事の一時的なマーカーのためにこれを行います.gerritは、「refs/for/」および「refs/changes/」参照を作成する私が知っているものです。これを行うには、refs の下の別のディレクトリに ref ファイルを作成します。

$ 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

したがって、エイリアスを作成して、これらを便利で使いやすくすることができます。

于 2013-01-09T23:59:46.980 に答える
0
git tag -l
git tag --list

すべてのタグに対して行う必要があります。ただし、タグは軽いので誰が作ったかはわかりません。

于 2013-01-09T23:54:47.250 に答える