Delete references when branch or commit is deleted

Issue #38 new
Niels Anonymous created an issue

If a branch is deleted or a commit get lost the link should be deleted.

Comments (3)

  1. Dmitrii Apanasevich repo owner

    Hi Niels,

    Your proposal sounds reasonable, but how this can be implemented?

    The only way I see is to delete information about all commits if already indexed branch is not found.

  2. Niels Anonymous reporter

    Sorry but I don't know exactly how jigit works internally. I would expected that each entry has a reference to the branch. So you could check all Branchnames that exists, look if the branch exists and should be still indexed. If not delete all information about the commits which are linked to the branch (or remove the link to the branch - depends on your storage model). The job to find lost commits after rebase seems more difficult and I don't have a real idea how to solve this. The only way is to drop the complete index and restart from scratch.

  3. Log in to comment