author | Elijah Newren <newren@gmail.com> | |
Fri, 26 Jun 2009 04:48:31 +0000 (22:48 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 27 Jun 2009 21:10:10 +0000 (14:10 -0700) | ||
commit | 2d8ad46919213ebbd7bb72eb5b56cca8cc3ae07f | |
tree | 5a9467aa072492d03abaf31f3855cc97f53e8124 | tree | snapshot |
parent | 32164131db0984544b222ac515f95f917fa01441 | commit | diff |
fast-export: Add a --tag-of-filtered-object option for newly dangling tags
When providing a list of paths to limit what is exported, the object that
a tag points to can be filtered out entirely. This new switch allows
the user to specify what should happen to the tag in such a case. The
default action, 'abort' will exit with an error message. With 'drop', the
tag will simply be omitted from the output. With 'rewrite', if the object
tagged was a commit, the tag will be modified to tag an alternate commit.
The alternate commit is determined by treating the original commit as the
"parent" of the tag and then using the parent rewriting algorithm of the
revision traversal machinery (related to the "--parents" option of "git
rev-list")
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When providing a list of paths to limit what is exported, the object that
a tag points to can be filtered out entirely. This new switch allows
the user to specify what should happen to the tag in such a case. The
default action, 'abort' will exit with an error message. With 'drop', the
tag will simply be omitted from the output. With 'rewrite', if the object
tagged was a commit, the tag will be modified to tag an alternate commit.
The alternate commit is determined by treating the original commit as the
"parent" of the tag and then using the parent rewriting algorithm of the
revision traversal machinery (related to the "--parents" option of "git
rev-list")
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-fast-export.txt | diff | blob | history | |
builtin-fast-export.c | diff | blob | history |