>From the comments at the beginning of the prepare-commit-msg.sample script:

# An example hook script to prepare the commit log message.
# Called by "git commit" with the name of the file that has the
# commit message, followed by the description of the commit
# message's source.  The hook's purpose is to edit the commit
# message file.

So basically the first argument passed to the hook is the name of the
file which will contain the commit message. By getting your hook
script to amend the contents of that file, you will amend the commit
message. There are many examples of the use of this script that you
can find by Googling.

Thanks
Tim

On Thu, 19 Dec 2019 at 22:11, Python Prog <python.beginne...@gmail.com> wrote:
>
> i am aware of that hook ,prepare-commit-msg hook runs in the background on a 
> "git commit" and does some checks,I am looking for a UI to pop-up (via 
> plugin) on git commit so that user can the requested commit message fields 
> which can then be saved as a commit message,anyone know how this can be 
> achieved?
>
> On Thursday, December 19, 2019 at 1:01:06 AM UTC-8, Tim Schofield wrote:
>>
>> I think it is the prepare-commit-msg hook that you require.
>>
>> Thanks
>> Tim
>>
>> On Thu, 19 Dec 2019 at 00:31, Python Prog <python.b...@gmail.com> wrote:
>> >
>> > @Philip - I looked at https://githooks.com/  before but not clear if these 
>> > will provide the functionality am looking for,I am looking for something 
>> > like a UI popup ,may be after a "git commit" event where folks can enter 
>> > the commit message info.All these hooks seems like they run in the 
>> > background and not something i am looking for ,I am looking for guidance 
>> > on how this can be done?
>> >
>> > On Wednesday, December 18, 2019 at 3:55:45 PM UTC-8, Philip Oakley wrote:
>> >>
>> >> Look up the 'hooks' which are scripts that are run on various events
>> >> happening, such as a commit, etc.
>> >>
>> >> I believe there will be a suitable hook that can be set.
>> >>
>> >> Philip
>> >>
>> >> On 18/12/2019 23:42, Python Prog wrote:
>> >> > Hello
>> >> >
>> >> > I am looking to develop a commit message plugin where developers
>> >> > working on committing changes has an easy way to enter all the
>> >> > required info using the plugin and it gets saved as commit message?has
>> >> > anyone done something like this before?how do I get started ?
>> >> >
>> >>
>> > --
>> > You received this message because you are subscribed to the Google Groups 
>> > "Git for human beings" group.
>> > To unsubscribe from this group and stop receiving emails from it, send an 
>> > email to git-...@googlegroups.com.
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msgid/git-users/fe340fee-132b-4201-b3c0-33b1cc38c631%40googlegroups.com.
>>
>>
>>
>> --
>> Course View Towers,
>> Plot 21 Yusuf Lule Road,
>> Kampala
>> T   +256 (0) 312 314 418
>> M +256 (0) 752 963 325
>> www.kwamoja.org
>> Twitter: @TimSchofield2
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to git-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/git-users/e2856a16-4378-465a-8ada-8255eee551cc%40googlegroups.com.



-- 
Course View Towers,
Plot 21 Yusuf Lule Road,
Kampala
T   +256 (0) 312 314 418
M +256 (0) 752 963 325
www.weberpafrica.com
Twitter: @TimSchofield2

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/CABsfisiJkKe%3D1CRO_F2TiNQUru-Md3c6VVzX1rmL%2BobNb5pgVw%40mail.gmail.com.

Reply via email to