On Wed, 14 Feb 2007, Johannes Sixt wrote:Yes. Merge uses "git-cat-file" (well, it historically did, now that it's built-in it still does the equivalent operation). I already talked about how git-cat-file was special ;) Well, it always "merges", but yes, you mean three-way data merges. The normal SHA1-direct merges will just use the normal git-read-tree thing which is the same as checkout. See earlier discussions. git-cat-file (and git-unpack-file, which is just a version of it, really) don't have the original filename, so we'll need to extend on it some way in order to support file attributes even in theory. So before we do that, I'd hate to do any format conversion there. Yes, yes, right now it ignores the filename *anyway*, but the point is, right now that's a "small implementation detail". I would NOT want to do this if I couldn't know the filename at all! The merge algorithms actually obviously *do* know the filename fo the things that they are going to merge, so the filename information does exists. It's just not passed on far enough. Finally, one comment: if you use "autocrlf = input" (my second patch), all of this works even now, since the default is to just leave things as LF-only anyway. In fact, even with "autocrlf = on", nothing should really *break* except for silly editors that actuall *require* CRLF. IOW, it's more important to do the CRLF->LF conversion than it is to do the LF->CRLF one ;) Linus - 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
| Rafael J. Wysocki | 2.6.27-rc4-git1: Reported regressions from 2.6.26 |
| Tim Tassonis | reiser4 for 2.6.27-rc1 |
| Robin Lee Powell | NFS hang + umount -f: better behaviour requested. |
| Florian Schmidt | blacklist kernel boot option |
git: | |
| Robert Schiele | Re: Shell script cleanups/style changes? |
| Linus Torvalds | Re: git on MacOSX and files with decomposed utf-8 file names |
| Shawn O. Pearce | [PATCH] Correct dir.c to compile on Solaris 9 |
| Junio C Hamano | [RFD] On deprecating "git-foo" for builtins |
| Richard Stallman | Real men don't attack straw men |
| Juan Miscaro | When will OpenBSD support UTF8? |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Richard Daemon | Re: booting openbsd on eee without cd-rom |
| Mark Lord | Re: 2.6.25-rc8: FTP transfer errors |
| Jeff Kirsher | [BUG] NULL pointer dereference in skb_dequeue |
| Felix Radensky | RE: e1000e "Detected Tx Unit Hang" |
| Bruno Randolf | [PATCH] add macro for printing mac addresses |
