imap-send: support subjectAltName as well
[git/jnareb-git.git] / Documentation / git-fast-export.txt
bloba29ac021d9c7ff62e3a761ffa23b7808420b5faa
1 git-fast-export(1)
2 ==================
4 NAME
5 ----
6 git-fast-export - Git data exporter
9 SYNOPSIS
10 --------
11 [verse]
12 'git fast-export [options]' | 'git fast-import'
14 DESCRIPTION
15 -----------
16 This program dumps the given revisions in a form suitable to be piped
17 into 'git fast-import'.
19 You can use it as a human-readable bundle replacement (see
20 linkgit:git-bundle[1]), or as a kind of an interactive
21 'git filter-branch'.
24 OPTIONS
25 -------
26 --progress=<n>::
27         Insert 'progress' statements every <n> objects, to be shown by
28         'git fast-import' during import.
30 --signed-tags=(verbatim|warn|strip|abort)::
31         Specify how to handle signed tags.  Since any transformation
32         after the export can change the tag names (which can also happen
33         when excluding revisions) the signatures will not match.
35 When asking to 'abort' (which is the default), this program will die
36 when encountering a signed tag.  With 'strip', the tags will be made
37 unsigned, with 'verbatim', they will be silently exported
38 and with 'warn', they will be exported, but you will see a warning.
40 --tag-of-filtered-object=(abort|drop|rewrite)::
41         Specify how to handle tags whose tagged object is filtered out.
42         Since revisions and files to export can be limited by path,
43         tagged objects may be filtered completely.
45 When asking to 'abort' (which is the default), this program will die
46 when encountering such a tag.  With 'drop' it will omit such tags from
47 the output.  With 'rewrite', if the tagged object is a commit, it will
48 rewrite the tag to tag an ancestor commit (via parent rewriting; see
49 linkgit:git-rev-list[1])
51 -M::
52 -C::
53         Perform move and/or copy detection, as described in the
54         linkgit:git-diff[1] manual page, and use it to generate
55         rename and copy commands in the output dump.
57 Note that earlier versions of this command did not complain and
58 produced incorrect results if you gave these options.
60 --export-marks=<file>::
61         Dumps the internal marks table to <file> when complete.
62         Marks are written one per line as `:markid SHA-1`. Only marks
63         for revisions are dumped; marks for blobs are ignored.
64         Backends can use this file to validate imports after they
65         have been completed, or to save the marks table across
66         incremental runs.  As <file> is only opened and truncated
67         at completion, the same path can also be safely given to
68         \--import-marks.
70 --import-marks=<file>::
71         Before processing any input, load the marks specified in
72         <file>.  The input file must exist, must be readable, and
73         must use the same format as produced by \--export-marks.
75 Any commits that have already been marked will not be exported again.
76 If the backend uses a similar \--import-marks file, this allows for
77 incremental bidirectional exporting of the repository by keeping the
78 marks the same across runs.
80 --fake-missing-tagger::
81         Some old repositories have tags without a tagger.  The
82         fast-import protocol was pretty strict about that, and did not
83         allow that.  So fake a tagger to be able to fast-import the
84         output.
86 --no-data::
87         Skip output of blob objects and instead refer to blobs via
88         their original SHA-1 hash.  This is useful when rewriting the
89         directory structure or history of a repository without
90         touching the contents of individual files.  Note that the
91         resulting stream can only be used by a repository which
92         already contains the necessary objects.
94 --full-tree::
95         This option will cause fast-export to issue a "deleteall"
96         directive for each commit followed by a full list of all files
97         in the commit (as opposed to just listing the files which are
98         different from the commit's first parent).
100 [<git-rev-list-args>...]::
101        A list of arguments, acceptable to 'git rev-parse' and
102        'git rev-list', that specifies the specific objects and references
103        to export.  For example, `master{tilde}10..master` causes the
104        current master reference to be exported along with all objects
105        added since its 10th ancestor commit.
107 EXAMPLES
108 --------
110 -------------------------------------------------------------------
111 $ git fast-export --all | (cd /empty/repository && git fast-import)
112 -------------------------------------------------------------------
114 This will export the whole repository and import it into the existing
115 empty repository.  Except for reencoding commits that are not in
116 UTF-8, it would be a one-to-one mirror.
118 -----------------------------------------------------
119 $ git fast-export master~5..master |
120         sed "s|refs/heads/master|refs/heads/other|" |
121         git fast-import
122 -----------------------------------------------------
124 This makes a new branch called 'other' from 'master~5..master'
125 (i.e. if 'master' has linear history, it will take the last 5 commits).
127 Note that this assumes that none of the blobs and commit messages
128 referenced by that revision range contains the string
129 'refs/heads/master'.
132 Limitations
133 -----------
135 Since 'git fast-import' cannot tag trees, you will not be
136 able to export the linux-2.6.git repository completely, as it contains
137 a tag referencing a tree instead of a commit.
141 Part of the linkgit:git[1] suite