gear-update(1)
| GEAR-UPDATE(1) | User Commands | GEAR-UPDATE(1) |
NAME
gear-update - update subdirectory from source directory or archive file
SYNOPSIS
gear-update [Options] <source> <subdirectory>
DESCRIPTION
gear-update - update subdirectory from source directory or archive file.
OPTIONS
- --exclude=PATTERN
- exclude files matching posix-egrep regular expression PATTERN;
- --ignore-exclude
- ignore .gitignore and .git/info/exclude (the default);
- --honor-exclude
- honor .gitignore and .git/info/exclude;
- --remove-source
- remove the <source> after updating;
- --strip-components=NUMBER
- strip NUMBER of leading path components from file names;
- -a,--all
- extract all files and directories from archive;
- -c,--create
- create the <subdirectory> before unpacking the <source>, the <subdirectory> should not exist;
- -s,--subdir=DIR
- extract specified directory name from archive;
- -t,--type=TYPE
- define source type: 'cpio', 'cpio.bz2', 'cpio.gz', 'cpio.xz', 'cpio.zst', 'dir', 'gem', 'tar', 'zip';
- -f,--force
- remove files from <subdirectory> even if untracked or modified files found;
- -v,--verbose
- print a message for each action;
- -V,--version
- print program version and exit;
- -h,--help
- show this text and exit.
CONFIGURATION
gear-update reads following configuration options from git-config:
gear.update.exclude-pattern
ENVIRONMENT
- GIT_DIR
- If the GIT_DIR environment variable is set then it specifies a path to use instead of the default for the base of the repository.
AUTHOR
Written by Alexey Gladkov <legion@altlinux.org>
REPORTING BUGS
Report bugs to http://bugzilla.altlinux.org/
COPYRIGHT
Copyright © 2006-2018 Alexey Gladkov
<legion@altlinux.org>
Copyright © 2006-2012 Dmitry V. Levin <ldv@altlinux.org>
Copyright © 2006 Sergey Vlasov <vsu@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
| March 2021 | gear 2.5.0 |
