目前,我撰写的只是一些z子功能,检查了我所有的宝库,看看它们是否继承,然后打印出需要承诺的储存。 至今,我已指出,显示清点清理/继承状况的最佳途径是<条码>git-diff和<条码>git-ls-files:
if ! git diff --quiet || git ls-files --others --exclude-standard; then
state=":dirty"
fi
我对你们的民间人士有两个问题:
- Does anyone know of a quicker, more efficient way to check for file changes/additions in a git repo?
- I want my zsh function to be handed a file path (say
~/Code/git-repos/
) and check all of the repositories in it. Is there a way to do without having to cd into each directory and run those commands? Something likegit-diff --quiet --git-dir="~/Code/git-repos/..."
would be fantastic.
感谢!