Skip to content

Commit 42f4570

Browse files
Eric WongJunio C Hamano
authored andcommitted
Documentation/git-archimport: document -o, -a, f, -D options
Also, ensure usage help switches are in the same order. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 3af849a commit 42f4570

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

Documentation/git-archimport.txt

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ git-archimport - Import an Arch repository into git
88

99
SYNOPSIS
1010
--------
11-
`git-archimport` [ -h ] [ -v ] [ -T ] [ -t tempdir ]
11+
`git-archimport` [ -h ] [ -v ] [ -o ] [ -a ] [ -f ] [ -T ]
12+
[ -D depth ] [ -t tempdir ]
1213
<archive/branch> [ <archive/branch> ]
1314

1415
DESCRIPTION
@@ -63,6 +64,26 @@ OPTIONS
6364
Many tags. Will create a tag for every commit, reflecting the commit
6465
name in the Arch repository.
6566

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+
6687
-t <tmpdir>::
6788
Override the default tempdir.
6889

git-archimport.perl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
=head1 Invocation
1111
12-
git-archimport [ -h ] [ -v ] [ -T ] [ -t tempdir ] <archive>/<branch> [ <archive>/<branch> ]
12+
git-archimport [ -h ] [ -v ] [ -o ] [ -a ] [ -f ] [ -T ]
13+
[ -D depth] [ -t tempdir ] <archive>/<branch> [ <archive>/<branch> ]
1314
1415
Imports a project from one or more Arch repositories. It will follow branches
1516
and repositories within the namespaces defined by the <archive/branch>
@@ -74,7 +75,7 @@ =head1 Devel Notes
7475
sub usage() {
7576
print STDERR <<END;
7677
Usage: ${\basename $0} # fetch/update GIT from Arch
77-
[ -f ] [ -o ] [ -h ] [ -v ] [ -T ] [ -a ] [ -D depth ] [ -t tempdir ]
78+
[ -h ] [ -v ] [ -o ] [ -a ] [ -f ] [ -T ] [ -D depth ] [ -t tempdir ]
7879
repository/arch-branch [ repository/arch-branch] ...
7980
END
8081
exit(1);

0 commit comments

Comments
 (0)