]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-archimport.txt
Fix nasty approxidate bug
[thirdparty/git.git] / Documentation / git-archimport.txt
CommitLineData
215a7ad1
JH
1git-archimport(1)
2=================
5077fa9c
JH
3
4NAME
5----
72e9340c 6git-archimport - Import an Arch repository into git
5077fa9c
JH
7
8
9SYNOPSIS
10--------
42f4570c
EW
11`git-archimport` [ -h ] [ -v ] [ -o ] [ -a ] [ -f ] [ -T ]
12 [ -D depth ] [ -t tempdir ]
a4c5f9aa 13 <archive/branch> [ <archive/branch> ]
5077fa9c
JH
14
15DESCRIPTION
16-----------
a4c5f9aa
ML
17Imports a project from one or more Arch repositories. It will follow branches
18and repositories within the namespaces defined by the <archive/branch>
89438677 19parameters supplied. If it cannot find the remote branch a merge comes from
a5c500b7
ML
20it will just import it as a regular commit. If it can find it, it will mark it
21as a merge whenever possible (see discussion below).
5077fa9c 22
a4c5f9aa 23The script expects you to provide the key roots where it can start the import
f73ae1fc
CM
24from an 'initial import' or 'tag' type of Arch commit. It will follow and
25import new branches within the provided roots.
5077fa9c 26
a4c5f9aa 27It expects to be dealing with one project only. If it sees
f73ae1fc
CM
28branches that have different roots, it will refuse to run. In that case,
29edit your <archive/branch> parameters to define clearly the scope of the
30import.
a4c5f9aa 31
f73ae1fc
CM
32`git-archimport` uses `tla` extensively in the background to access the
33Arch repository.
a4c5f9aa
ML
34Make sure you have a recent version of `tla` available in the path. `tla` must
35know about the repositories you pass to `git-archimport`.
36
37For the initial import `git-archimport` expects to find itself in an empty
38directory. To follow the development of a project that uses Arch, rerun
f73ae1fc
CM
39`git-archimport` with the same parameters as the initial import to perform
40incremental imports.
a4c5f9aa 41
a5c500b7
ML
42MERGES
43------
72e9340c 44Patch merge data from Arch is used to mark merges in git as well. git
a4c5f9aa
ML
45does not care much about tracking patches, and only considers a merge when a
46branch incorporates all the commits since the point they forked. The end result
72e9340c 47is that git will have a good idea of how far branches have diverged. So the
a4c5f9aa
ML
48import process does lose some patch-trading metadata.
49
50Fortunately, when you try and merge branches imported from Arch,
72e9340c 51git will find a good merge base, and it has a good chance of identifying
a4c5f9aa 52patches that have been traded out-of-sequence between the branches.
5077fa9c
JH
53
54OPTIONS
55-------
5077fa9c 56
a4c5f9aa
ML
57-h::
58 Display usage.
59
60-v::
61 Verbose output.
62
63-T::
64 Many tags. Will create a tag for every commit, reflecting the commit
65 name in the Arch repository.
66
42f4570c
EW
67-f::
68 Use the fast patchset import strategy. This can be significantly
69 faster for large trees, but cannot handle directory renames or
70 permissions changes. The default strategy is slow and safe.
71
72-o::
73 Use this for compatibility with old-style branch names used by
74 earlier versions of git-archimport. Old-style branch names
75 were category--branch, whereas new-style branch names are
76 archive,category--branch--version.
77
78-D <depth>::
79 Follow merge ancestry and attempt to import trees that have been
80 merged from. Specify a depth greater than 1 if patch logs have been
81 pruned.
82
83-a::
84 Attempt to auto-register archives at http://mirrors.sourcecontrol.net
85 This is particularly useful with the -D option.
86
a4c5f9aa
ML
87-t <tmpdir>::
88 Override the default tempdir.
89
90
91<archive/branch>::
92 Archive/branch identifier in a format that `tla log` understands.
5077fa9c
JH
93
94
95Author
96------
97Written by Martin Langhoff <martin@catalyst.net.nz>.
98
99Documentation
100--------------
a4c5f9aa 101Documentation by Junio C Hamano, Martin Langhoff and the git-list <git@vger.kernel.org>.
5077fa9c
JH
102
103GIT
104---
a7154e91 105Part of the gitlink:git[7] suite
5077fa9c 106