Re: [PATCH] git-svn now work with crlf convertion enabled.
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Aug 1, 2008, 07:44 UTC
- 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 <gitster@pobox.com> wrote:
Show 9 quoted lines
> Alexander Litvinov <litvinov2004@gmail.com> 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