Dmitry Pavlenko wrote: > When I apply Git format patch that adds a directory with properties, a file > is > added instead.
Thank you for testing and finding these issues, Dmitry! > Here I provide a reproducing script and also add a file for comparison. > > I think the origin of the problem in the fact that SVN patch doesn't keep > "node kind". But a patch in "svn diff --git" format does. Here's the example > of the patch. Notice > > a) "Property changes on: dir" and "Property changes on: file" lines; That line is not distinguishing between file-kind and dir-kind, it is just telling the name of the file/dir. > b) "new file mode 10644" for file and no such line for directory; > > allowing to distinguish between files and directories. That line is the right information to use. (If we ever want a mode line for a directory, it can say "new directory ..." instead of "new file ...".) > I don't know whether it's a known issue or not but I think it would be nice > to > infer "node kind" from that information and also (if this is not already > done) > by the following logic: if patch changes "dir" and "dir/someFile", then "dir" > is probably a directory. It is not useful to add "probably" logic when there is a possibility to use exact logic. Can you please file an issue and turn your script into a regression test? Is there any chance you may be able to work on fixing these after you finish testing? I do hope somebody will. -- - Julian

