From: Dmitry Potapov Date: Fri, 01 Aug 2008 07:44:20 GMT Subject: Re: [PATCH] git-svn now work with crlf convertion enabled. Message-ID: <37fcd2780808010044m424f8d8en67a4e50363238e4d@mail.gmail.com> In-Reply-To: <7v63qluxsb.fsf@gitster.siamese.dyndns.org> On Fri, Aug 1, 2008 at 9:09 AM, Junio C Hamano wrote: > Alexander Litvinov writes: > >> I dont think that disabling convertion is a good way. I really want to convert >> my files. Possible solution is to pass two file names to git-hash-object: the >> real file with content and the proposed file name in the working directory. >> In this case git-hash-object will be able to make correct convertion. > > I think the optional parameter to say "pretend the content is from this > path" makes sense even for (and especially for) hashing --stdin. git-svn uses git hash-object --stdin-paths, which means that it reads filenames from the standard input, so one optional parameter cannot help here. Also, I am not sure how it can be useful for --stdin, which does not convert anything (it uses index_pipe, which does not call convert_to_git). Dmitry