Ingo Molnar <mingo@elte.hu> writes:The binary part of the index should be in network byte order and endian safe. But it is not necessary to share the index. Well, if you think about it, it would be mighty silly if index had any long term effect on the operation of rerere, which is all about "I've done many conflict resolutions in the past. My work tree state (including the index) came back to a state similar to the conflicted state I saw some time ago. Let's reuse the previous resolution if we can." You might have switched branches, ran "reset --hard" and did 47 thousands different things to your index since you resolved the conflict you are about to re-resolve ;-). The replay and conflict recoding codepath of rerere goes like this: * read the index, list the paths that have conflicts; * inspect the conflicted blob to compute the conflict signature $sig and store the sig and path in MERGE_RR; * look into rr-cache/$sig; does it have already a conflict resolution recorded? - If so, modify the file in the working tree the same way to bring rr-cache/$sig/preimage to rr-cache/$sig/postimage by 3-way merge. - if not, record the file in the working tree as rr-cache/$sig/preimage The resolution recording codepath goes like: * see if any paths listed in MERGE_RR is resolved in the index; * look into rr-cache/$sig for such resolved path. Does it already record a resolution? - If not, we have a new resolution we can use. Record it as rr-cache/$sig/postimage for later use. So rerere _does_ look at the index to decide what entries in rr-cache are relevant and applicable. But other than that, it is not used. I do not think there is no reason copy index to be able to reuse rr-cache. -- 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
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Heiko Carstens | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH iproute2] Re: HTB accuracy for high speed |
