summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 14c9821)
raw | patch | inline | side by side (parent: 14c9821)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Mon, 3 Dec 2007 22:44:39 +0000 (22:44 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 4 Dec 2007 07:43:07 +0000 (23:43 -0800) |
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>
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>
Documentation/git-fast-export.txt | patch | blob | history | |
builtin-fast-export.c | patch | blob | history | |
t/t9301-fast-export.sh | patch | blob | history |
index 073ff7f123d633358f57d9995d23da14da81df77..fd3d571464ba3ae60ee0ae331cf6c7bef0a74b38 100644 (file)
Insert 'progress' statements every <n> objects, to be shown by
gitlink:git-fast-import[1] during import.
---signed-tags=(ignore|warn|strip|abort)::
+--signed-tags=(verbatim|warn|strip|abort)::
Specify how to handle signed tags. Since any transformation
after the export can change the tag names (which can also happen
when excluding revisions) the signatures will not match.
+
When asking to 'abort' (which is the default), this program will die
when encountering a signed tag. With 'strip', the tags will be made
-unsigned, with 'ignore', they will be silently ignored (i.e. not exported)
+unsigned, with 'verbatim', they will be silently exported
and with 'warn', they will be exported, but you will see a warning.
diff --git a/builtin-fast-export.c b/builtin-fast-export.c
index 72be45db46faef46695b333a298f2857706dff9f..2136aadfd7831828ee29fbfa9ae7974c65271dee 100755 (executable)
--- a/builtin-fast-export.c
+++ b/builtin-fast-export.c
};
static int progress;
-static enum { IGNORE, WARN, STRIP, ABORT } signed_tag_mode = ABORT;
+static enum { VERBATIM, WARN, STRIP, ABORT } signed_tag_mode = ABORT;
static int parse_opt_signed_tag_mode(const struct option *opt,
const char *arg, int unset)
{
if (unset || !strcmp(arg, "abort"))
signed_tag_mode = ABORT;
- else if (!strcmp(arg, "ignore"))
- signed_tag_mode = IGNORE;
+ else if (!strcmp(arg, "verbatim") || !strcmp(arg, "ignore"))
+ signed_tag_mode = VERBATIM;
else if (!strcmp(arg, "warn"))
signed_tag_mode = WARN;
else if (!strcmp(arg, "strip"))
warning ("Exporting signed tag %s",
sha1_to_hex(tag->object.sha1));
/* fallthru */
- case IGNORE:
+ case VERBATIM:
break;
case STRIP:
message_size = signature + 1 - message;
diff --git a/t/t9301-fast-export.sh b/t/t9301-fast-export.sh
index e9c9fe65d0a7cc01323480facdcaba233b57f564..f09bfb1117caa05981d65e45fe2a9cc4c7ca19f3 100755 (executable)
--- a/t/t9301-fast-export.sh
+++ b/t/t9301-fast-export.sh
'
-test_expect_success 'signed-tags=ignore' '
+test_expect_success 'signed-tags=verbatim' '
- git fast-export --signed-tags=ignore sign-your-name > output &&
+ git fast-export --signed-tags=verbatim sign-your-name > output &&
grep PGP output
'