Git format-patch to be svn compatible?

前端 未结 8 2183
逝去的感伤
逝去的感伤 2020-12-07 08:19

Is there any way to get a patch created with git format-patch to be svn compatible so that I can submit it to an svn repo?

I\'m working off an svn repo on github and

8条回答
  •  星月不相逢
    2020-12-07 08:27

    It is indeed a feature request early 2008

    Linus Torvalds said at the time:

    So I would argue that you need something stronger to say "don't do a git diff", and that should also disallow rename detection at a minimum.
    Quite frankly, any program that is so stupid as to not accept current git patches (ie TortoiseSVN), then we damn well shouldn't just disable the most trivial part of it. We should make sure that we do not enable any of the rather important extensions:
    even if ToirtoiseSVN would ignore them, if ignoring them means that it mis-understands the diff, it shouldn't be allowed at all.

    That may be why

     git-format-patch: add --no-binary to omit binary changes in the patch.
    

    has been introduced in Git1.5.6 in May/July 2008 (I have not tested it though)

提交回复
热议问题