sourcetree的commit列表如何按作者筛选?

问题描述

sourcetree的日志/历史页面,提交列表的内容如何按照作者名称筛选结果?
比如一个项目由5个人开发,那么是否有一个选项可以在提交列表中只展示自己的历史提交记录。

问题出现的平台版本及自己尝试过哪些方法

2.0及以上版本

阅读 16.3k
3 个回答

sourcetree没有使用过,可以使用git命令,很方便。

使用git log--author参数指定某个commiter的名字,下面以以太坊仓库为例,显示Felix Lange的所有commit:

git lg --author "Felix Lange"
* 025595158 - crypto: replace ToECDSAPub with error-checking func UnmarshalPubkey (#16932) (6 months ago) <Felix Lange>
* e8ea5aa0d - trie: reduce hasher allocations (#16896) (6 months ago) <Felix Lange>
* 3f33a7c8c - consensus/ethash: reduce keccak hash allocations (#16857) (6 months ago) <Felix Lange>
* 6286c255f - p2p/enr: updates for discovery v4 compatibility (#16679) (6 months ago) <Felix Lange>
* 53a18d2e2 - event: document select case slice use and add edge case test (#16680) (7 months ago) <Felix Lange>
* b724d1aad - core/state: cache missing storage entries (#16584) (7 months ago) <Felix Lange>
* e7067be94 - cmd/geth, mobile: add memsize to pprof server (#16532) (7 months ago) <Felix Lange>
* 52b046c9b - rpc: clean up IPC handler (#16524) (7 months ago) <Felix Lange>
* 3caf16b15 - core: remove stray account creations in state transition (#16470) (8 months ago) <Felix Lange>
* c7ab3e554 - common: delete StringToAddress, StringToHash (#16436) (8 months ago) <Felix Lange>

git lg中的lg是自定义的命令昵称,方便显示log。

alias.lg=log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

找到了sourcetree按作者筛选

具体方法:

Go to Search View (menu View > Search View, or press Ctrl+3)
Change the search filter using the dropdown on the right to 'Authors'
Type your query in the search bar
新手上路,请多包涵

截屏2020-04-08 20.06.20.png

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进