我可以将元数据添加到 git 提交吗?或者我可以在 gitk 中隐藏一些标签吗

编程入门 行业动态 更新时间:2024-10-06 20:33:28
本文介绍了我可以将元数据添加到 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 中隐藏一些标签吗

本文发布于:2023-11-02 06:23:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1551610.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标签   数据   git   gitk

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!