Path returns the index' path on disk or an empty string if it exists only in memory.
()
| 149 | // Path returns the index' path on disk or an empty string if it |
| 150 | // exists only in memory. |
| 151 | func (v *Index) Path() string { |
| 152 | ret := C.GoString(C.git_index_path(v.ptr)) |
| 153 | runtime.KeepAlive(v) |
| 154 | return ret |
| 155 | } |
| 156 | |
| 157 | // Clear clears the index object in memory; changes must be explicitly |
| 158 | // written to disk for them to take effect persistently |
no outgoing calls