Re: git-format-patch possible regressions
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 26, 2006, 06:16 UTC
- Message-ID
- <7v4pzdqpit.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <e5bfff550605252309h2c4b74bcp50b095e09e6c133f@mail.gmail.com>
"Marco Costalba" <mcostalba@gmail.com> writes:
> I was thinking, probably wrong, that the number prepended in file name > is used also to disambiguate two patches with the same subject.
What Johannes and I were discussing was the other number -- the total in the series. IOW, y in "[PATCH x/y]". OTOH, the number used for disambiguation you care about is x, which is made adjustable with --start-number patch.
So the way for qgit to use it would become something like this. Instead of giving a list of ranges like "a..b c..d e..f":
* Run "format-patch a..b"; by reading from its stdout you know what patches you got -- you count them.
* Run "format-patch --start-number=6 c..d" (if you got 5 out of a..b);
* Run "format-patch --start-number=n e..f" (now you know the drill).
Then the sequence out of c..d would start with a file 0006-xxxx.txt, which is what you want for disambiguation.