我可以将元数据添加到 git 提交吗?或者我可以在 gitk 中隐藏一些标签吗 [英] Can I add metadata to git commits? Or can I hide some tags in gitk

查看:21
本文介绍了我可以将元数据添加到 git 提交吗?或者我可以在 gitk 中隐藏一些标签吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将自定义元数据与 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 notes 用于.

这篇关于我可以将元数据添加到 git 提交吗?或者我可以在 gitk 中隐藏一些标签吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆