Method: Rugged::Rebase#inmemory_index
- Defined in:
- ext/rugged/rugged_rebase.c
permalink #inmemory_index ⇒ Object
Gets the index produced by the last operation, which is the result of next
and which will be committed by the next invocation of commit
. This is useful for resolving conflicts in an in-memory rebase before committing them.
This is only applicable for in-memory rebases; for rebases within a working directory, the changes were applied to the repository’s index.
250 251 252 253 254 255 256 257 258 259 |
# File 'ext/rugged/rugged_rebase.c', line 250
static VALUE rb_git_rebase_inmemory_index(VALUE self)
{
git_rebase *rebase;
git_index *index;
Data_Get_Struct(self, git_rebase, rebase);
rugged_exception_check(git_rebase_inmemory_index(&index, rebase));
return rugged_index_new(rb_cRuggedIndex, self, index);
}
|