Method: Rugged::Index#count

Defined in:
ext/rugged/rugged_index.c

#countInteger

Returns the number of entries currently in the index.

Returns:

  • (Integer)
[View source]

125
126
127
128
129
130
# File 'ext/rugged/rugged_index.c', line 125

static VALUE rb_git_index_count(VALUE self)
{
	git_index *index;
	Data_Get_Struct(self, git_index, index);
	return INT2FIX(git_index_entrycount(index));
}