Check what files are staged in git with rugged ruby

394 Views Asked by At

How can I can check what files are 'staged' or changed, but not staged with rugged?

1

There are 1 best solutions below

0
On

I had a wee look and found the "Rugged::Repository" documentation.

Scroll down to where you see:

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

This might help.