Bug 39801

Summary: add exclude to tar options
Product: Sisyphus Reporter: Anton Farygin <rider>
Component: gearAssignee: Alexey Gladkov <legion>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: glebfm, ldv, legion, placeholder, rider, vseleznv
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Anton Farygin 2021-03-15 15:11:01 MSK
По аналогии с опцией exclude для diff было бы неплохо добавить exclude для tar.

неожиданно мне это понравилось в том месте, где я делаю tar не из апстримного тэга, а из нашего, а т.к. помимо добавлений в .gitattribute там же присутствует каталог .gear, то я бы предпочёл его заэксклюдить.
Comment 1 Dmitry V. Levin 2021-03-15 15:32:19 MSK
Для архивов, в отличие от diff, ещё есть способ добиться аналогичного эффекта средставми самого git.
Например, если закоммитить файл .gitattributes, содержащий
/.gitattributes	export-ignore
/.gear-rules	export-ignore
то в архив не попадут ни .gitattributes, ни .gear-rules.

Но ретроспективно такой способ не работает, конечно.
Comment 2 Alexey Gladkov 2021-03-16 14:20:34 MSK
Код в апстриме: http://git.altlinux.org/people/ldv/packages/gear.git
Comment 3 Repository Robot 2021-03-19 01:30:23 MSK
gear-2.5.0-alt1 -> sisyphus:

 Wed Mar 17 2021 Dmitry V. Levin <ldv@altlinux> 2.5.0-alt1
 - Added exclude= option for tar: and zip: directives
   (by Alexey Gladkov; closes: #39801).
 - describe-specfile (by Gleb Fotengauer-Malinovskiy):
   + new utility, prints name and version info for specfile.
 - gear:
   + change the current workdir back before the last command invocation.
 - gear-changelog (by Arseny Maslennikov):
   + added --header-only option to only print changelog header.
 - gear-create-tag:
   + refuse to create tags that do not define all specsubst variables;
   + implemented -s/--specsubst option (closes: #39783).
 - gear-update-sh-functions (by Gleb Fotengauer-Malinovskiy):
   + fixed permissions (755 -> 644).
 - Moved gear-sh-functions and describe-specfile to separate
   subpackages (by Gleb Fotengauer-Malinovskiy).
 - Updated bash completions.