From: "Eugene Prokopiev" <enp@altlinux.org> To: Devel@lists.altlinux.org Subject: [devel] gear: tar by sha-1/tag Date: Sun, 6 Apr 2008 18:05:24 +0400 Message-ID: <f7a739430804060705o437911e2rd2f9c13c65e115a2@mail.gmail.com> (raw) Здравствуйте! Как с помощью gear сделать tar по идентификатору коммита? $ mkdir mypackage $ cd mypackage $ git-init $ mkdir .gear $ touch .gear/rules $ git-add . $ git-commit -a -m 'initial commit' $ git-branch upstream $ touch file $ git-add . $ git-commit -a -m '0.1' $ git-checkout master $ touch mypackage.spec $ git-add . $ PAGER=cat git-log commit 15c4e518bc37a8277dc72d3d4cb2321edc0b812b ... $ echo "tar: 15c4e518bc37a8277dc72d3d4cb2321edc0b812b:mypackage" > .gear/rules $ gear -v --commit --export-dir=/tmp Created commit b9d4f7d: Temporary commit by gear. 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 mypackage.spec gear: Temporarily committed local changes. gear: .gear/rules line 1: Empty @version@ "" specified gear: Reverted temporary commit b9d4f7dfa330e40ba4f619c0840446453c52442e. Или по тегу? $ git-checkout upstream $ git-tag last $ git-checkout master $ echo "tar: last:mypackage" > .gear/rules $ gear -v --commit --export-dir=/tmp Created commit 1deec5b: Temporary commit by gear. 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 mypackage.spec gear: Temporarily committed local changes. gear: .gear/rules line 1: Empty @version@ "" specified gear: Reverted temporary commit 1deec5b1bd5b7569f517ada84d31b0efa42625c6. @version@ использовать обязательно? Если да, то как вывернуться в такой ситуации: у меня в спеке version - 1.2 и вряд ли в ближайшее время изменится, а release - alt0.svnNNNN или 0.alt0.svnNNNN.M40 (для branch/4.0). Планировал иметь тег, который при каждом обновлении из апстрима будет сдвигаться на последний коммит и уже этот тег указывать в .gear/rules -- С уважением, Прокопьев Евгений
next reply other threads:[~2008-04-06 14:05 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-04-06 14:05 Eugene Prokopiev [this message] 2008-04-06 14:49 ` Alexey I. Froloff 2008-04-06 17:25 ` Eugene Prokopiev 2008-04-06 14:51 ` Alexey I. Froloff 2008-04-06 17:31 ` Eugene Prokopiev 2008-04-06 19:35 ` Anton Farygin 2008-04-07 5:04 ` Eugene Prokopiev
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=f7a739430804060705o437911e2rd2f9c13c65e115a2@mail.gmail.com \ --to=enp@altlinux.org \ --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