用git log --decorate显示限制参考 [英] Limit refs shown with git log --decorate

查看:1018
本文介绍了用git log --decorate显示限制参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有3个标准遥控器,用于目前工作的主要存储库:本地备份,我的开发合作伙伴的工作站和托管存储库。我们有3到4个分支机构,大部分时间处于活动状态,其中一个是主人。



我使用以下方式定期监控分支机构:

  git log --graph --oneline --decorate -15 my-branch his-repo / his-branch master other-branch 

- 装饰至关重要,因为它让我知道关于我们非常动荡的发展部门的事态。问题是我看到远程引用的 全部 和分支,标签等中的 全部 装饰。



有没有办法限制 - 装饰只输出某些裁判?在命令行列出refs仅限制显示的提交,而不是显示的ref。



谢谢,
Mike

解决方案

你不能限制这种开箱即用的功能。但是,没有任何东西可以阻止你对.git / refs的操作进行脚本编写,然后立即恢复它:)。

I have 3 standard remotes for a the main repository I work in currently: a local backup, my development partner's workstation, and a hosted repository. We have 3 or 4 branches that are active most of the time, one being master.

I monitor the branches on a regular basis throughout the day using:

git log --graph --oneline --decorate -15 my-branch his-repo/his-branch master other-branch

--decorate is crucial because it lets me know the state of things in regards to our very volatile development branches. The problem is that I see all of the remote refs and all of the branches, tags, etc. in the decoration.

Is there any way to limit --decorate to only output certain refs? Listing the refs on the command line only limits the commits shown, not the refs shown.

Thanks, Mike

解决方案

You cannot limit this out-of-the box. But nothing is stopping you from scripting the manipulation of .git/refs and then restoring it right after :).

这篇关于用git log --decorate显示限制参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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