Skip to content

Переклад book/08-customizing-git/sections/hooks.asc#98

Merged
tbudurovych merged 4 commits intoprogit:masterfrom
hedrok:08-hooks
Feb 11, 2016
Merged

Переклад book/08-customizing-git/sections/hooks.asc#98
tbudurovych merged 4 commits intoprogit:masterfrom
hedrok:08-hooks

Conversation

@hedrok
Copy link
Copy Markdown
Member

@hedrok hedrok commented Dec 4, 2015

fix #33

You can use these hooks for all sorts of reasons.
Як і багато інших Систем Керування Версіями, Git має спосіб запускати користувацькі скрипти, коли виконує якісь важливі дії.
Існує дві групи таких гаків: клієнтські та серверні.
Клієнтські гаки викликаються операціями на кшталт збереження коміту та зливання, у той час як серверні гаки виконується під час мережевих операцій на кшталт отримання надісланих змін.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

виконуЮться

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

один "на кшталт" можна замінити б на шось на кшталт "типу".

пардон за каламбур

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Замінив, я зазвичай просто якщо в оригіналі повторення, то й в перекладі роблю повторення.

@hedrok
Copy link
Copy Markdown
Member Author

hedrok commented Feb 6, 2016

Ці виправив.

Наступний гак -- `pre-applypatch` -- викликається під час застосування латок командою `git am`.
Це може збити з пантелику, проте він виконується _після_ того, як латку застосовано, проте перед тим, як створюється коміт. Отже, його можна використати для перевірки відбитку перед додаванням коміту.
Ви можете виконати тести, чи іншим чином перевірити робоче дерево в цьому скрипті.
Якщо чогось бракує, чи тести не пройшли, вихід з не нульовим значенням припиняє скрипт `git am` без створення коміту з латкою.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не нульовим

разом

tbudurovych added a commit that referenced this pull request Feb 11, 2016
Переклад book/08-customizing-git/sections/hooks.asc
@tbudurovych tbudurovych merged commit 287119b into progit:master Feb 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

08-customizing-git/sections/hooks.asc

2 participants