Re: git format-patch can clobber existing patch
- From
- Σταύρος Ντέντος <stdedos@gmail.com>
- Date
- Feb 21, 2019, 14:25 UTC
- Message-ID
- <CAHMHMxUfjnNXFikVD=rys_t5BUho=7uRw4LsXgAphFwSf3xOnw@mail.gmail.com>
- In-Reply-To
- <CAHMHMxVdpOnTkf9RHzCa+YjjvpqJApsSE03Jjyb_VbJp_4q-jw@mail.gmail.com>
Hello there,
During my work flow, I tend to use `git format-patch` to move patches around (nasty, I know, but bear with me)
It has occured to me that, it is possible that `git format-patch` can clobber existing files, if they match in the name and in the "patch order". However, if the patch is one, then, it will normally start with `0001-x.patch`
It was fine for me when I pushed updates of the same "patch series". Now that I wanted to diff a "previous patch file" with the patch upstream, however, it was almost a "disaster". :-)
Would it make sense / be easy enough to have some clobbering check / flag?
Ντέντος Σταύρος