Een editor, vaak vi, zal openen en de commit boodschap kan worden opgesteld.
An editor, often vi, will open and the commit message can be composed.
Je moet uit zien te vinden hoe je de commit boodschap kunt krijgen van alle te testen commits.
You have to figure out how to get the commit message from each of these commits to test.
Sommige informatie is verkeerd ingevuld of de commit boodschap is verkeerd, of iets anders is kapot.
Either some information isn't filled out, the commit message is wrong, or something else is just messed up.
De prepare-commit-msg hook wordt uitgevoerd voordat de commit boodschap editor gestart wordt, maar nadat de standaard boodschap aangemaakt is.
The prepare-commit-msg hook is run before the commit message editor is fired up but after the default message is created.
Je kunt die spreuk gebruiken om de commit boodschap te pakken van iedere commit die probeert te worden gepushed en eindigen als je ziet dat er iets is wat niet past.
You can use that incantation to grab the commit message from each commit that is trying to be pushed and exit if you see anything that doesn't match.
Om te beginnen zou je je commit boodschap moeten controleren, vlak voordat iedere commit opgeslagen wordt, zodat je weet dat de server je wijzigingen niet gaat weigeren omdat de commit boodschap een verkeerd formaat heeft.
To begin, you should check your commit message just before each commit is recorded, so you know the server won't reject your changes due to badly formatted commit messages.
Je moet dus kijken naar iedere commit die gepusht wordt, zien of die tekst in de commit boodschap zit en als de tekst in één van de commits ontbreekt, met niet nul eindigen zodat de push geweigerd wordt.
You must look at each commit being pushed up, see if that string is in the commit message, and, if the string is absent from any of the commits, exit non-zero so the push is rejected.
Om die commit te taggen, specificeer je de commit boodschap (of een gedeelte daarvan) aan het einde van het commando
To tag that commit, you specify the commit checksum (or part of it) at the end of the command
In het laatste gedeelte van dit hoofdstuk, zal ik met deze hook demonstreren hoe te controleren dat de commit boodschap aan een bepaald patroon voldoet.
In the last section of this chapter, We'll demonstrate using this hook to check that your commit message is conformant to a required pattern.
Een simpele manier om de commit boodschap uit een commit waarvan je de SHA-1 waarde hebt te krijgen, is naar de eerste lege regel gaan en alles wat daarna komt pakken.
A simple way to get the commit message from a commit when you have the SHA-1 value is to go to the first blank line and take everything after that.
Zoals je kunt zien, toont dit commando iedere commit met zijn SHA-1 checksum, de naam van de maker en zijn e-mail, de datum van opslaan, en de commit boodschap.
As you can see, this command lists each commit with its SHA-1 checksum, the author's name and e-mail, the date written, and the commit message.