Skip to content

Add git_index_forget_file#37

Open
Cykelero wants to merge 1 commit into
git-up:maint/v1.9from
Cykelero:add-git-index-forget-file
Open

Add git_index_forget_file#37
Cykelero wants to merge 1 commit into
git-up:maint/v1.9from
Cykelero:add-git-index-forget-file

Conversation

@Cykelero

Copy link
Copy Markdown

This adds git_index_forget_file:

Forget the file associated with this index.

This will prevent using operations that read or write to the index's on-disk file. This (probably) effectively makes this index indistinguishable from an in-memory index.

This is useful when manipulating index structs, and needing to sever an on-disk index’s link to its associated file. Retcon uses this in its caching architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant