我想将自定义元数据与 git commit 关联。特别是要从代码评论中记录评论ID,但它可能是任何内容。标签似乎是一种很自然的方式,但我希望对每一次提交都有一个评论,而且我不想用大量标签来混乱 gitk 。是否有其他一些机制来添加自定义元数据?我可以让某些标签隐形吗?如果我可以告诉 gitk 不要显示匹配某种模式或RE的标签,那可能会起作用,但我没有办法做到这一点。
I want to associate custom metadata with a git commit. Specifically to record a review ID from a code review but it could be anything. Tags seem a natural way to do that but I expect to have a review for every commit and I don't want to clutter gitk with tons of tags. Is there some other mechanism to add custom metadata? Can I make certain tags invisible? If I could tell gitk not to display tags matching some pattern or RE, that would likely work but I don't see a way to do that.
推荐答案这正是 git便笺适用于。
更多推荐
我可以将元数据添加到git提交吗?或者我可以在gitk中隐藏一些标签
发布评论