summaryrefslogtreecommitdiffstats
path: root/revision.h
diff options
context:
space:
mode:
authorZheNing Hu <adlternative@gmail.com>2021-03-23 12:12:25 +0100
committerJunio C Hamano <gitster@pobox.com>2021-03-23 20:49:47 +0100
commitdb91988aa102d48af1c1203d8cc2d01240df7365 (patch)
tree7cceefdf74570b5b592793f527f5e45db21c7a47 /revision.h
parentMerge https://github.com/prati0100/git-gui (diff)
downloadgit-db91988aa102d48af1c1203d8cc2d01240df7365.tar.xz
git-db91988aa102d48af1c1203d8cc2d01240df7365.zip
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>
Diffstat (limited to 'revision.h')
-rw-r--r--revision.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.h b/revision.h
index e6be3c845e..097d08354c 100644
--- a/revision.h
+++ b/revision.h
@@ -235,7 +235,7 @@ struct rev_info {
const char *mime_boundary;
const char *patch_suffix;
int numbered_files;
- int reroll_count;
+ const char *reroll_count;
char *message_id;
struct ident_split from_ident;
struct string_list *ref_message_ids;