Re: git doesn't finds the parent of a commit

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: <git@...>
Date: Sunday, April 27, 2008 - 5:46 pm

Junio C Hamano wrote:


True, I think.


Not practical in its current form.
Checking for circular references is O(n) in CPU and memory use relative
to the number of commits in the entire repository.

Consider:
- The proposed check in the topo-order path is very low-cost, it costs a
  single decrement/increment per commit (and will detect other circular
  references not caused by the grafts mechanism, if they ever should occur).
- If it is being done during the grafts install, then there should be a
  flag-file (at least), which indicates when the grafts file has changed
  since the last check.
- It could/should be added to git-fsck.
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: How to fetch missing pack, Jörg, (Wed Apr 23, 4:55 pm)
Re: How to fetch missing pack, Christian Couder, (Thu Apr 24, 2:01 am)
Re: How to fetch missing pack, Shawn O. Pearce, (Thu Apr 24, 2:08 am)
Re: git doesn't finds the parent of a commit (was: How to fe..., Stephen R. van den Berg, (Sun Apr 27, 1:37 pm)
Re: git doesn't finds the parent of a commit, Junio C Hamano, (Sun Apr 27, 4:18 pm)
Re: git doesn't finds the parent of a commit, Stephen R. van den Berg, (Sun Apr 27, 5:46 pm)