"Joakim Tjernlund" <joakim.tjernlund@transmode.se> writes:The plumbing cat-file does not deal with grafts and this is deliberate. Otherwise you would not be able to find the true set of parents when you'd want to. So do not blame cat-file, but blame the Porcelain that uses cat-file to read a commit object, without annotating what it read with what is in grafts, in this case your command line experiment ;-). The log family of commands and rev-list plumbing while traversing commit ancestry chain do take grafts into account. One caveat is pretty=raw output format shows true parents without grafts on "parent " header line, while the "commit " fake header prepended in the output for each commit shows the parents that takes into account. To illustrate, if you forge the history and say the parent of 1ddea77 is 5da1606 (when the true parent is 820eca68) with grafts mechanism, here is what happens: $ echo '1ddea77e449ef28d8a7c74521af21121ab01abc0 5da1606d0bf5b970fadfa0ca91618a1e871f6755' >.git/info/grafts $ git show -s --pretty=raw --parents 1ddea77 commit 1ddea77e449ef28d8a7c74521af21121ab01abc0 5da1606d0bf5b970fadfa0ca91618a1e871f6755 tree e9e61bc801438062978ff47b0963c536ed1e51a9 parent 820eca68c2577d7499d203d7f4f7ae479b577683 author Nick Hengeveld <nickh@reactrix.com> 1127757131 -0700 committer Junio C Hamano <junkio@cox.net> 1127805558 -0700 [PATCH] Return CURL error message when object transfer fails Return CURL error message when object transfer fails ... $ git-cat-file commit 1ddea77 tree e9e61bc801438062978ff47b0963c536ed1e51a9 parent 820eca68c2577d7499d203d7f4f7ae479b577683 author Nick Hengeveld <nickh@reactrix.com> 1127757131 -0700 committer Junio C Hamano <junkio@cox.net> 1127805558 -0700 [PATCH] Return CURL error message when object transfer fails Return CURL error message when object transfer fails ... - 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
| Hiten Pandya | Re: up? (emacs docbook xml ide) |
| Martin Michlmayr | Network slowdown due to CFS |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Christos Zoulas | Re: Boot device confusion |
| Manuel Bouyer | Re: NFSv3 bug |
| Anders Magnusson | Re: setsockopt() compat issue |
| Martin Husemann | Re: Compressed vnd handling tested successfully |
