Bug 39804 - добавить в man gear-rules для exclude отсылку к glob в git
Summary: добавить в man gear-rules для exclude отсылку к glob в git
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: gear (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-16 07:02 MSK by Anton Farygin
Modified: 2022-01-14 19:22 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Farygin 2021-03-16 07:02:38 MSK
пример:
diff v@version:. . exclude=.gear/* 
в патч пролезают .gear/tags/*
приходится указывать ещё один exclude, что не очень удобно.
Comment 1 Alexey Gladkov 2021-03-16 11:34:35 MSK
Из gear-rules(5):

diff: v@version@:. . exclude=.gear/** exclude=*.spec
Comment 2 Anton Farygin 2021-03-16 15:57:45 MSK
Спасибо. С .gear/** из man было не очень очевидно и я этого не заметил, может быть явно это описать в какой-то секции ?

Что-то вроде "if you want to add recursive subdirectories into exclude mask, use a double asterisk (**)"
Comment 3 Alexey Gladkov 2021-03-16 16:07:10 MSK
Тут скорее стоит дать ссылку на формат glob в git.

https://git-scm.com/docs/gitignore#_pattern_format
Comment 4 Anton Farygin 2021-03-16 18:14:17 MSK
Точно, так будет лучше. Спасибо.
Comment 6 Repository Robot 2022-01-14 19:22:52 MSK
gear-2.5.1-alt1 -> sisyphus:

 Fri Jan 14 2022 Dmitry V. Levin <ldv@altlinux> 2.5.1-alt1
 - gear-rules.5: added references to git glob syntax (closes: #39804).
 - gear-store-tags: fixed the warning about specsubst directive (closes: #39898).
 - gear-edit-spec: do not invoke an editor when no spec file was found (closes: #40023).
 - gear: added git worktree support (closes: #40990).