How can I can check what files are 'staged' or changed, but not staged with rugged?
Asked
Active
Viewed 377 times
1
-
https://github.com/libgit2/rugged#index-staging-area – Piccolo Jun 30 '14 at 15:23
-
OK I just reread your question, and what do you mean? You are looking for files that are 'staged' but not staged? – Piccolo Jun 30 '14 at 15:31
-
From the files that ared tracked, I want to get files that are modified, but unstaged. And also I want to get files that are staged with command git add
. – mhl Jun 30 '14 at 15:49
1 Answers
1
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.

the Tin Man
- 158,662
- 42
- 215
- 303

user2120088
- 79
- 1
- 8