Re: [PATCH] format-patch: add --prefix to prepend a prefix to output file names
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Jun 9, 2009, 23:18 UTC
- Message-ID
- <fcaeb9bf0906091618l406116d8k307f6661b451d030@mail.gmail.com>
- In-Reply-To
- <4A2E6407.1010402@viscovery.net>
2009/6/9 Johannes Sixt <j.sixt@viscovery.net>:
Show 13 quoted lines
> Nguyễn Thái Ngọc Duy schrieb: >> I use git to manages patches in my Gentoo development. In Gentoo, >> all ebuilds (another form of RPM spec) corresponding to different >> versions of the same package are grouped into one directory. So patches >> for each versions usually have a prefix to separate them from the ones >> for other versions. With --prefix it comes handy to produce such patches, >> for example: >> >> git format-patch --prefix dbus-1.2.3- HEAD~5 >> >> will generate patches for dbus-1.2.3 for me, all starting with "dbus-1.2.3-". > > Can't you use --output-directory/-o? It is not the same, but almost.
-o seems to put slash at the end (in reopen_stdout()) but I don't want to create another directory.
-- Duy