gear-import(1)

GEAR-IMPORT(1) User Commands GEAR-IMPORT(1)

NAME

gear-import - import source code into repository

SYNOPSIS

gear-import [options] <archive> [<archive>...]

DESCRIPTION

The gear-import allows to import a project sources from the archives into gear repository. Each archive is added as subdirectory by individual commit and has the tag with its version. Subdirectory name and tag name is calculated from the archive name.

OPTIONS

--dry-run
show parser results and exit;
--no-commit
do not commit new changes;
--no-tag
do not add tag;
--time=STR
use time described by STR;
--time=FILE
use the last modification time of FILE;
--ignore-exclude
pass --ignore-exclude to gear-update;
--honor-exclude
pass --honor-exclude to gear-update;
-C, --create
pass --create to gear-update;
-f, --force
pass --force to gear-update;
-a, --all
pass --all to gear-update;
-s, --sign
add sign to commit and tag;
-S, --subdir=DIR
unpack archives into DIR;
-c, --commit=MSG
use MSG as commit message;
-t, --tag=NAME
use NAME as tag name;
-T, --tag-message=MSG
use MSG as tag message;
-r, --rules=FILE
override import rules file name;
-v, --verbose
print a message for each action;
-V, --version
print program version and exit;
-h, --help
show this text and exit.

CONFIGURATION

gear-import reads following configuration options from git-config:

gear.import.commit-message

commit message template, defaults to 'Import archive @archive@'.

gear.import.rules

rules file name, defaults to /usr/share/gear/gear-import-rules.

gear.import.tag

tag name template, defaults to 'v@archive_version@'.

gear.import.tag-message

tag message template, defaults to '@archive_name@ @archive_version@'.

gear.import.archive-pattern

gear.import.name-template

gear.import.version-template

gear.import.name-transform

gear.import.version-transform

gear.import.case-sense

single parser rule description, see gear-import-rules(5) for more information.

ENVIRONMENT

IMPORT_RULES
Specifies a custom gear-import rules filename.

AUTHOR

Written by Alexey Gladkov <legion@altlinux.org>

REPORTING BUGS

Report bugs to https://bugzilla.altlinux.org/

COPYRIGHT

Copyright © 2009-2018 Alexey Gladkov <legion@altlinux.org>
Copyright © 2009-2010 Alexey I. Froloff <raorn@altlinux.org>
Copyright © 2010-2017 Dmitry V. Levin <ldv@altlinux.org>
Copyright © 2019 Vladimir D. Seleznev <vseleznv@altlinux.org>
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

gear-update(1), gear-import-rules(5), git-config(1).

November 2022 gear 2.6.0