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
| Pierre Ossman | Re: [RFC][PATCH] cpuidle: avoid singing capacitors |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Greg KH | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Rene Herman | 2.6.26, PAT and AMD family 6 |
git: | |
| Jesper Krogh | Re: NIU - Sun Neptune 10g - Transmit timed out reset (2.6.24) |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Arjan van de Ven | Re: [GIT]: Networking |
| Radu Rendec | htb parallelism on multi-core platforms |
