简体   繁体   English

使用坚固的红宝石检查哪些文件在git中暂存

[英]Check what files are staged in git with rugged ruby

如何检查“暂存”或更改了哪些文件,但暂不进行暂存?

I had a wee look and found the " Rugged::Repository " documentation. 我略带一眼,发现了“ Rugged :: Repository ”文档。

Scroll down to where you see: 向下滚动到您看到的位置:

repo.status { |file, status_data| puts "#{file} has status: #{status_data.inspect}" }

This might help. 这可能会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM