Method: Rugged::Index#reload

Defined in:
ext/rugged/rugged_index.c

#reloadnil

Reloads the index contents from the disk, discarding any changes that have not been saved through #write.

Returns:

  • (nil)
[View source]

87
88
89
90
91
92
93
94
95
96
97
98
# File 'ext/rugged/rugged_index.c', line 87

static VALUE rb_git_index_read(VALUE self)
{
	git_index *index;
	int error;

	Data_Get_Struct(self, git_index, index);

	error = git_index_read(index, 0);
	rugged_exception_check(error);

	return Qnil;
}