<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>39801</bug_id>
          
          <creation_ts>2021-03-15 15:11:01 +0300</creation_ts>
          <short_desc>add exclude to tar options</short_desc>
          <delta_ts>2021-03-19 01:30:23 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gear</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton Farygin">rider</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>placeholder</cc>
    
    <cc>rider</cc>
    
    <cc>vseleznv</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>196971</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2021-03-15 15:11:01 +0300</bug_when>
    <thetext>По аналогии с опцией exclude для diff было бы неплохо добавить exclude для tar.

неожиданно мне это понравилось в том месте, где я делаю tar не из апстримного тэга, а из нашего, а т.к. помимо добавлений в .gitattribute там же присутствует каталог .gear, то я бы предпочёл его заэксклюдить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196973</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2021-03-15 15:32:19 +0300</bug_when>
    <thetext>Для архивов, в отличие от diff, ещё есть способ добиться аналогичного эффекта средставми самого git.
Например, если закоммитить файл .gitattributes, содержащий
/.gitattributes	export-ignore
/.gear-rules	export-ignore
то в архив не попадут ни .gitattributes, ни .gear-rules.

Но ретроспективно такой способ не работает, конечно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196987</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2021-03-16 14:20:34 +0300</bug_when>
    <thetext>Код в апстриме: http://git.altlinux.org/people/ldv/packages/gear.git</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197079</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-03-19 01:30:23 +0300</bug_when>
    <thetext>gear-2.5.0-alt1 -&gt; sisyphus:

 Wed Mar 17 2021 Dmitry V. Levin &lt;ldv@altlinux&gt; 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 -&gt; 644).
 - Moved gear-sh-functions and describe-specfile to separate
   subpackages (by Gleb Fotengauer-Malinovskiy).
 - Updated bash completions.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>