]> git.ipfire.org Git - thirdparty/git.git/commit - revision.h
format-patch: allow a non-integral version numbers
authorZheNing Hu <adlternative@gmail.com>
Tue, 23 Mar 2021 11:12:25 +0000 (11:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Mar 2021 19:49:47 +0000 (12:49 -0700)
commitdb91988aa102d48af1c1203d8cc2d01240df7365
tree7cceefdf74570b5b592793f527f5e45db21c7a47
parent90917373cd21f60ccd2636e067a0c2685d29d0d5
format-patch: allow a non-integral version numbers

The `-v<n>` option of `format-patch` can give nothing but an
integral iteration number to patches in a series.  Some people,
however, prefer to mark a new iteration with only a small fixup
with a non integral iteration number (e.g. an "oops, that was
wrong" fix-up patch for v4 iteration may be labeled as "v4.1").

Allow `format-patch` to take such a non-integral iteration
number.

`<n>` can be any string, such as '3.1' or '4rev2'. In the case
where it is a non-integral value, the "Range-diff" and "Interdiff"
headers will not include the previous version.

Signed-off-by: ZheNing Hu <adlternative@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-format-patch.txt
builtin/log.c
log-tree.c
revision.h
t/t3206-range-diff.sh
t/t4014-format-patch.sh