Skip to content

Commit ee4bc37

Browse files
dschogitster
authored andcommitted
fast-export: rename the signed tag mode 'ignore' to 'verbatim'
The name 'verbatim' describes much better what this mode does with signed tags. While at it, fix the documentation what it actually does. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 14c9821 commit ee4bc37

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Documentation/git-fast-export.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ OPTIONS
2626
Insert 'progress' statements every <n> objects, to be shown by
2727
gitlink:git-fast-import[1] during import.
2828

29-
--signed-tags=(ignore|warn|strip|abort)::
29+
--signed-tags=(verbatim|warn|strip|abort)::
3030
Specify how to handle signed tags. Since any transformation
3131
after the export can change the tag names (which can also happen
3232
when excluding revisions) the signatures will not match.
3333
+
3434
When asking to 'abort' (which is the default), this program will die
3535
when encountering a signed tag. With 'strip', the tags will be made
36-
unsigned, with 'ignore', they will be silently ignored (i.e. not exported)
36+
unsigned, with 'verbatim', they will be silently exported
3737
and with 'warn', they will be exported, but you will see a warning.
3838

3939

builtin-fast-export.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ static const char *fast_export_usage[] = {
2323
};
2424

2525
static int progress;
26-
static enum { IGNORE, WARN, STRIP, ABORT } signed_tag_mode = ABORT;
26+
static enum { VERBATIM, WARN, STRIP, ABORT } signed_tag_mode = ABORT;
2727

2828
static int parse_opt_signed_tag_mode(const struct option *opt,
2929
const char *arg, int unset)
3030
{
3131
if (unset || !strcmp(arg, "abort"))
3232
signed_tag_mode = ABORT;
33-
else if (!strcmp(arg, "ignore"))
34-
signed_tag_mode = IGNORE;
33+
else if (!strcmp(arg, "verbatim") || !strcmp(arg, "ignore"))
34+
signed_tag_mode = VERBATIM;
3535
else if (!strcmp(arg, "warn"))
3636
signed_tag_mode = WARN;
3737
else if (!strcmp(arg, "strip"))
@@ -270,7 +270,7 @@ static void handle_tag(const char *name, struct tag *tag)
270270
warning ("Exporting signed tag %s",
271271
sha1_to_hex(tag->object.sha1));
272272
/* fallthru */
273-
case IGNORE:
273+
case VERBATIM:
274274
break;
275275
case STRIP:
276276
message_size = signature + 1 - message;

t/t9301-fast-export.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ test_expect_success 'signed-tags=abort' '
106106
107107
'
108108

109-
test_expect_success 'signed-tags=ignore' '
109+
test_expect_success 'signed-tags=verbatim' '
110110
111-
git fast-export --signed-tags=ignore sign-your-name > output &&
111+
git fast-export --signed-tags=verbatim sign-your-name > output &&
112112
grep PGP output
113113
114114
'

0 commit comments

Comments
 (0)