From: Sergey Vlasov <vsu@altlinux.ru> To: devel@lists.altlinux.org Subject: Re: [devel] .gear/rules diff: и .gitignore Date: Fri, 14 Jan 2011 17:03:58 +0300 Message-ID: <20110114140358.GC6580@newmaster.mivlgu.local> (raw) In-Reply-To: <201101141526.45477.hsv@altlinux.org> [-- Attachment #1: Type: text/plain, Size: 1195 bytes --] On Fri, Jan 14, 2011 at 03:26:45PM +0200, Sergey Shilov wrote: > Начиная с версии R13B03 апстрим переехал на https://github.com/erlang/otp.git > :-) Ага, и там есть файл .gitattributes: .gitattributes export-ignore .gitignore export-ignore Вот как раз из-за этого файла (а не .gitignore) git archive и выбрасывает из создаваемого архива файлы, для которых указан атрибут export-ignore. Явной опции для отключения этой функции у git archive нет, но можно перед его вызовом вписать в .git/info/attributes строку: * -export-ignore В этом случае git archive добавит в создаваемый архив все файлы независимо от содержимого .gitattributes. Т.е., создаваемый таким образом архив не будет в точности совпадать с апстримным из-за таких "лишних" файлов, зато будет содержать все файлы, которые могут встретится в выводе последующего git diff. > Кстати, для gear было-бы логично игнорировать файлы попадающие под --ignore- > exclude при diff: так же, как и при tar: Такой вариант (точнее, обработку export-ignore) реализовать существенно сложнее - git diff сам по себе не умеет даже исключать отдельные файлы, не говоря уже о том, чтобы смотреть в .gitattributes. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2011-01-14 14:03 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-01-14 7:20 Sergey Shilov 2011-01-14 8:05 ` REAL 2011-01-14 8:38 ` Ivan A. Melnikov 2011-01-14 9:03 ` REAL 2011-01-14 9:08 ` Ildar Mulyukov 2011-01-14 10:00 ` REAL 2011-01-14 10:29 ` Sergey Vlasov 2011-01-14 13:26 ` Sergey Shilov 2011-01-14 14:03 ` Sergey Vlasov [this message] 2011-01-14 14:49 ` Dmitry V. Levin 2011-01-14 16:09 ` [devel] .gear/rules tar:, diff: и .gitattributes export-ignore Sergey Vlasov 2011-01-14 15:53 ` [devel] .gear/rules diff: и .gitignore Sergey Shilov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20110114140358.GC6580@newmaster.mivlgu.local \ --to=vsu@altlinux.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git