Jakub Narebski <jnareb@gmail.com> writes:This is the most appropriate. Right now it is not independently controllable but it is not so inplausible for somebody to want to get non recursive view of 'raw' part along with textual diffs when running "--raw -p" diff and your solution c. is robust against even such changes. I would probably not call that "caching" but keeping track of where you are, and you would need to know in which filepair you are in anyway when you want to implement links to blob view from the hunk header lines. I am not sure what's more useful to show there. The part of the output shows "the list of files that have changed by this commit" for non-merge commits, so "the list of files that have changed in this merge" is what you would want to show, but there are three ways you can define "what changed" for a merge (see the message that explains --cc to linux@horizontal I sent yesterday). I find "diff --name-status $it^1 $it" the most natural semantics for the most of the time, and that is what we do for --stat output. If you want to treat all the parents equally, you could read from "diff-tree -c --raw $it" which would show list of files that needed file-level merges, along with the blob object names from all parents. We might want to give that when "diff-tree --cc --patch-with-raw $it" is asked for in the "raw" part. I dunno. I think that is a minor implementation detail; I think the latter is probably less painful to maintain in the longer run because if you encode things in earlier stages, postprocessing stages need to know which part of the result from the earlier processing needs decoding before further processing, but I suspect you will be the one primarily hacking on that part, so it is not my preference, but just a suggestion to make your life less painful. - 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
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Andrew Morton | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| Greg KH | Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching |
git: | |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Arjan van de Ven | Re: [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Jarek Poplawski | Re: [BUG] New Kernel Bugs |
