class documentation
class RerereCache:
Constructors: RerereCache.from_repo(repo), RerereCache(rr_cache_dir)
Manages the rerere cache in .git/rr-cache/.
| Class Method | from |
Create a RerereCache from a repository. |
| Method | __init__ |
Initialize RerereCache. |
| Method | apply |
Apply a recorded resolution to current conflict content. |
| Method | clear |
Clear all recorded conflicts and resolutions. |
| Method | diff |
Get the preimage and postimage for a conflict. |
| Method | forget |
Forget a recorded conflict and its resolution. |
| Method | gc |
Garbage collect old conflict resolutions. |
| Method | get |
Get the recorded resolution for a conflict. |
| Method | has |
Check if a resolution exists for a conflict. |
| Method | record |
Record a conflict in the rerere cache. |
| Method | record |
Record a resolution for a previously recorded conflict. |
| Method | status |
Get the status of all conflicts in the cache. |
| Instance Variable | rr |
Undocumented |
| Method | _ensure |
Ensure the rr-cache directory exists. |
| Method | _get |
Get the directory path for a specific conflict. |
| Method | _get |
Get the path to the postimage file for a conflict. |
| Method | _get |
Get the path to the preimage file for a conflict. |
Create a RerereCache from a repository.
| Parameters | |
repo:Repo | A Dulwich repository object |
| Returns | |
RerereCache | RerereCache instance for the repository |
Garbage collect old conflict resolutions.
| Parameters | |
maxint | Maximum age in days for keeping resolutions |